Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/GD/
Date: Mon, 26 Dec 2016 21:00:15
Message-Id: 1482785923.437aa9460a636f7f700873fe19ffe2491e0be9aa.dilfridge@gentoo
1 commit: 437aa9460a636f7f700873fe19ffe2491e0be9aa
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 26 20:57:02 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 26 20:58:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=437aa946
7
8 dev-perl/GD: Revision bump to add missing GD features, bug 502546 - thanks to Jorge Nerin
9
10 Package-Manager: portage-2.3.3
11
12 dev-perl/GD/GD-2.560.0-r2.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 71 insertions(+)
14
15 diff --git a/dev-perl/GD/GD-2.560.0-r2.ebuild b/dev-perl/GD/GD-2.560.0-r2.ebuild
16 new file mode 100644
17 index 00000000..4c52efb
18 --- /dev/null
19 +++ b/dev-perl/GD/GD-2.560.0-r2.ebuild
20 @@ -0,0 +1,71 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +DIST_AUTHOR=LDS
28 +DIST_VERSION=2.56
29 +inherit perl-module
30 +
31 +DESCRIPTION="Interface to Thomas Boutell's gd library"
32 +
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
35 +IUSE="animgif gif jpeg png truetype xpm"
36 +PATCHES=(
37 + "${FILESDIR}/${P}-rt106594.patch"
38 +)
39 +RDEPEND="
40 + virtual/perl-Math-Complex
41 + >=media-libs/gd-2.2.3
42 + png? (
43 + media-libs/gd[png]
44 + media-libs/libpng:0
45 + sys-libs/zlib
46 + )
47 + jpeg? (
48 + media-libs/gd[jpeg]
49 + virtual/jpeg:0
50 + )
51 + truetype? (
52 + media-libs/gd[truetype]
53 + media-libs/freetype:2
54 + )
55 + xpm? (
56 + media-libs/gd[xpm]
57 + x11-libs/libXpm
58 + )
59 + gif? ( media-libs/giflib )
60 +"
61 +DEPEND="${RDEPEND}
62 + virtual/perl-ExtUtils-CBuilder
63 + virtual/perl-ExtUtils-MakeMaker
64 +"
65 +
66 +PREFER_BUILDPL="no"
67 +
68 +src_prepare(){
69 + perl-module_src_prepare
70 +
71 + # bug 572000
72 + ln -s "${S}"/lib/GD.xs "${S}"/GD.xs
73 +
74 + sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \
75 + "${S}"/Makefile.PL || die
76 +}
77 +
78 +src_configure() {
79 + local myconf
80 + myconf="VERSION_33,GD_UNCLOSEDPOLY,GD_FTCIRCLE" # Per line 284 of Makefile.PL
81 + use gif && use animgif && myconf+=",ANIMGIF"
82 + use jpeg && myconf+=",JPEG"
83 + use truetype && myconf+=",FT"
84 + use png && myconf+=",PNG"
85 + use xpm && myconf+=",XPM"
86 + use gif && myconf+=",GIF"
87 + myconf="-options '${myconf}'"
88 + perl-module_src_configure
89 +}
90 +
91 +mydoc="GD.html"