diff options
-rw-r--r-- | dev-perl/GD/GD-2.660.0.ebuild | 69 | ||||
-rw-r--r-- | dev-perl/GD/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/GD/metadata.xml | 3 |
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-perl/GD/GD-2.660.0.ebuild b/dev-perl/GD/GD-2.660.0.ebuild new file mode 100644 index 000000000000..7d4ed1b9bc0e --- /dev/null +++ b/dev-perl/GD/GD-2.660.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=RURBAN +DIST_VERSION=2.66 +DIST_EXAMPLES=("demos/*") +inherit perl-module + +DESCRIPTION="Interface to Thomas Boutell's gd library" + +SLOT="0" +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" +IUSE="animgif fcgi gif jpeg png truetype xpm" + +RDEPEND=" + >=media-libs/gd-2.2.3 + png? ( + media-libs/gd[png] + media-libs/libpng:0 + sys-libs/zlib + ) + jpeg? ( + media-libs/gd[jpeg] + virtual/jpeg:0 + ) + truetype? ( + media-libs/gd[truetype] + media-libs/freetype:2 + ) + xpm? ( + media-libs/gd[xpm] + x11-libs/libXpm + ) + fcgi? ( + dev-libs/fcgi + ) + gif? ( media-libs/giflib ) +" +DEPEND="${RDEPEND} + >=virtual/perl-ExtUtils-Constant-0.230.0 + virtual/perl-ExtUtils-MakeMaker +" + +src_prepare(){ + perl-module_src_prepare + sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \ + "${S}"/Makefile.PL || die +} + +src_configure() { + local myconf + myconf="VERSION_33,GD_UNCLOSEDPOLY,GD_FTCIRCLE" # Per line 284 of Makefile.PL + use gif && use animgif && myconf+=",ANIMGIF" + use jpeg && myconf+=",JPEG" + use truetype && myconf+=",FT" + use png && myconf+=",PNG" + use xpm && myconf+=",XPM" + use gif && myconf+=",GIF" + myconf="-options '${myconf}'" + use fcgi && myconf+=" --fcgi" + perl-module_src_configure +} + +src_test() { + perl_rm_files t/z_*.t + perl-module_src_test +} diff --git a/dev-perl/GD/Manifest b/dev-perl/GD/Manifest index 58c5a6623bc7..cd1801f644b0 100644 --- a/dev-perl/GD/Manifest +++ b/dev-perl/GD/Manifest @@ -1 +1,2 @@ DIST GD-2.56.tar.gz 273441 SHA256 1f103d1c98de8621504642ed7fb79f1b40f5f6a63c2abe9390a8ab78617248f9 SHA512 51c4b46b199625a12ae1ad1003cafe4e66913d1e0c0b51d9bccbc7c14a86dfe29144caefbeca2927a66a44d4ba8b134550ee4a63eb86aceaa13513c46a4e71f4 WHIRLPOOL 5c59b6361bdfbbe5294739bf49f398d9483994353422b3839c068b651bf91195027c8d44bf348fd135674479ad333c77949ec28526c985e3dab12efc554585f7 +DIST GD-2.66.tar.gz 253000 SHA256 ea28343301b82ea862bc58c0c2d1953a074e23cf8d1d09df94c05c52f1c98281 SHA512 37d3da70f4e0b89b0166488a1f8a48c508ff5e515653fe1b10602cb708ae0ce713c617dcae21c48ec795799fb0e061762696e6a65bb8ba359859223d15677c61 WHIRLPOOL 01ed0c0aa9572a1d61ec4c360e1384f089e0417e6c64faa290faa4e2216a256c51721caaaab1adbbc1af798dabb372b0e7af36f1302c6dfc6425c564b2d005f8 diff --git a/dev-perl/GD/metadata.xml b/dev-perl/GD/metadata.xml index a38a82b09765..6e11ab60848e 100644 --- a/dev-perl/GD/metadata.xml +++ b/dev-perl/GD/metadata.xml @@ -6,7 +6,8 @@ <name>Gentoo Perl Project</name> </maintainer> <use> - <flag name="animgif">Enable animated gif support</flag> + <flag name="animgif">Enable animated gif support</flag> + <flag name="fcgi">Build for FastCGI compatibility via <pkg>dev-libs/fcgi</pkg> instead of using PerlIO</flag> </use> <upstream> <remote-id type="cpan">GD</remote-id> |