Gentoo Archives: gentoo-commits

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