/[gentoo-x86]/dev-perl/GD/GD-2.460.0.ebuild
Gentoo

Contents of /dev-perl/GD/GD-2.460.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Nov 30 06:01:53 2012 UTC (16 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Keyworded amd64-linux and x86-linux

(Portage version: 2.2.01.21313-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.460.0.ebuild,v 1.9 2012/03/09 13:45:33 ranger Exp $
4
5 EAPI=4
6
7 MODULE_AUTHOR=LDS
8 MODULE_VERSION=2.46
9 inherit perl-module
10
11 DESCRIPTION="interface to Thomas Boutell's gd library"
12
13 LICENSE="|| ( Artistic-2 GPL-1 GPL-2 GPL-3 )" # Artistic-2 or GPL1+
14 SLOT="0"
15 KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x86-solaris"
16 IUSE="animgif gif jpeg png truetype xpm"
17
18 RDEPEND=">=media-libs/gd-2.0.33
19 png? (
20 media-libs/gd[png]
21 media-libs/libpng
22 sys-libs/zlib
23 )
24 jpeg? (
25 media-libs/gd[jpeg]
26 virtual/jpeg
27 )
28 truetype? (
29 media-libs/gd[truetype]
30 media-libs/freetype:2
31 )
32 xpm? (
33 media-libs/gd[xpm]
34 x11-libs/libXpm
35 )
36 gif? ( media-libs/giflib )"
37 DEPEND="${RDEPEND}"
38
39 SRC_TEST=do
40
41 src_prepare(){
42 perl-module_src_prepare
43 sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \
44 "${S}"/Makefile.PL || die
45 }
46
47 src_configure() {
48 local myconf
49 use gif && use animgif && myconf+=",ANIMGIF"
50 use jpeg && myconf+=",JPEG"
51 use truetype && myconf+=",FREETYPE"
52 use png && myconf+=",PNG"
53 use xpm && myconf+=",XPM"
54 use gif && myconf+=",GIF"
55 myconf="-options '${myconf:1}'"
56 perl-module_src_configure
57 }
58
59 src_test() {
60 if use png || use jpeg || use gif ; then
61 if has_version ">=media-libs/jpeg-7" || \
62 has_version "media-libs/libjpeg-turbo" ; then
63 # https://rt.cpan.org/Public/Bug/Display.html?id=49053
64 ewarn "Tests fail with >=media-libs/jpeg-7 or media-libs/libjpeg-turbo. Skipping tests..."
65 return
66 fi
67 perl-module_src_test
68 else
69 ewarn "The test fails if neither of png, jpeg, gif is in USE!"
70 ewarn "Skipping tests..."
71 fi
72 }
73 mydoc="GD.html"

  ViewVC Help
Powered by ViewVC 1.1.20