Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-perl/GD: ChangeLog GD-2.45.ebuild
Date: Sun, 02 May 2010 21:47:06
Message-Id: 20100502214703.9B7552C27F@corvid.gentoo.org
1 robbat2 10/05/02 21:47:03
2
3 Modified: ChangeLog
4 Added: GD-2.45.ebuild
5 Log:
6 Version bump via perl-bump experimental tool.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.94 dev-perl/GD/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/GD/ChangeLog?rev=1.94&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/GD/ChangeLog?rev=1.94&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/GD/ChangeLog?r1=1.93&r2=1.94
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-perl/GD/ChangeLog,v
19 retrieving revision 1.93
20 retrieving revision 1.94
21 diff -p -w -b -B -u -u -r1.93 -r1.94
22 --- ChangeLog 19 Apr 2010 08:56:24 -0000 1.93
23 +++ ChangeLog 2 May 2010 21:47:03 -0000 1.94
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-perl/GD
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/ChangeLog,v 1.93 2010/04/19 08:56:24 tove Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/ChangeLog,v 1.94 2010/05/02 21:47:03 robbat2 Exp $
29 +
30 +*GD-2.45 (02 May 2010)
31 +
32 + 02 May 2010; Robin H. Johnson <robbat2@g.o> +GD-2.45.ebuild:
33 + Version bump via perl-bump experimental tool.
34
35 19 Apr 2010; Torsten Veller <tove@g.o> GD-2.44.ebuild:
36 Skip tests if >=media-libs/jpeg-7 is installed (#316049)
37
38
39
40 1.1 dev-perl/GD/GD-2.45.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/GD/GD-2.45.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/GD/GD-2.45.ebuild?rev=1.1&content-type=text/plain
44
45 Index: GD-2.45.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.45.ebuild,v 1.1 2010/05/02 21:47:03 robbat2 Exp $
50
51 EAPI=2
52
53 MODULE_AUTHOR=LDS
54 inherit perl-module
55
56 DESCRIPTION="interface to Thomas Boutell's gd library"
57
58 LICENSE="|| ( Artistic-2 GPL-2 )"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris"
61 IUSE="animgif gif jpeg png truetype xpm"
62
63 DEPEND=">=media-libs/gd-2.0.33
64 png? (
65 media-libs/gd[png]
66 media-libs/libpng
67 sys-libs/zlib
68 )
69 jpeg? (
70 media-libs/gd[jpeg]
71 media-libs/jpeg
72 )
73 truetype? (
74 media-libs/gd[truetype]
75 media-libs/freetype:2
76 )
77 xpm? (
78 media-libs/gd[xpm]
79 x11-libs/libXpm
80 )
81 gif? ( media-libs/giflib )"
82
83 SRC_TEST=do
84
85 src_prepare(){
86 perl-module_src_prepare
87 sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \
88 "${S}"/Makefile.PL || die
89 }
90
91 src_configure() {
92 myconf=""
93 use gif && use animgif && myconf="${myconf},ANIMGIF"
94 use jpeg && myconf="${myconf},JPEG"
95 use truetype && myconf="${myconf},FREETYPE"
96 use png && myconf="${myconf},PNG"
97 use xpm && myconf="${myconf},XPM"
98 use gif && myconf="${myconf},GIF"
99 myconf="-options \"${myconf:1}\""
100 perl-module_src_configure
101 }
102
103 src_test() {
104 if use png || use jpeg || use gif ; then
105 if has_version ">=media-libs/jpeg-7" ; then
106 # https://rt.cpan.org/Public/Bug/Display.html?id=49053
107 ewarn "Tests fail with >=media-libs/jpeg-7. Skipping tests..."
108 return
109 fi
110 perl-module_src_test
111 else
112 ewarn "The test fails if neither of png, jpeg, gif is in USE!"
113 ewarn "Skipping tests..."
114 fi
115 }
116 mydoc="GD.html"