blob: 968e1b9a77c1c44f4db63139dc45faf555b2f9f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.07.ebuild,v 1.7 2004/03/25 09:19:08 kumba Exp $
inherit eutils perl-module
DESCRIPTION="interface to Thomas Boutell's gd library"
HOMEPAGE="http://www.cpan.org/modules/by-module/GD/${P}.readme"
SRC_URI="http://www.cpan.org/modules/by-module/GD/${P}.tar.gz"
LICENSE="Artistic | GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha hppa ia64 ~amd64 ~mips"
IUSE="jpeg truetype X gif"
DEPEND=">=media-libs/libgd-2.0.5
media-libs/libpng
sys-libs/zlib
jpeg? ( media-libs/jpeg )
truetype? ( =media-libs/freetype-2* )
X? ( virtual/x11 )
gif? ( media-libs/giflib )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-makefile-opts.patch
use gif && epatch ${FILESDIR}/${PV}-gif-support.patch
use jpeg \
&& jpeg=1 \
|| jpeg=0
use truetype \
&& freetype=1 \
|| freetype=0
use X \
&& x=1 \
|| x=0
cp Makefile.PL{,.orig}
sed \
-e "s:GENTOO_JPEG:${jpeg}:" \
-e "s:GENTOO_FREETYPE:${freetype}:" \
-e "s:GENTOO_XPM:${x}:" \
Makefile.PL.orig > Makefile.PL
perl-module_src_prep
}
mydoc="GD.html"
|