blob: 52e70009d0d56d3f39163a9ec1a1e46e2aa18130 (
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 Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.12.ebuild,v 1.5 2004/11/01 01:46:16 vapier 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="alpha amd64 hppa ia64 mips ppc sparc x86"
IUSE="jpeg truetype X gif"
DEPEND=">=media-libs/gd-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"
|