summaryrefslogtreecommitdiff
path: root/dev-perl/GD
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/GD
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/GD')
-rw-r--r--dev-perl/GD/GD-2.560.0-r1.ebuild69
-rw-r--r--dev-perl/GD/GD-2.560.0-r2.ebuild70
-rw-r--r--dev-perl/GD/GD-2.660.0.ebuild70
-rw-r--r--dev-perl/GD/Manifest9
-rw-r--r--dev-perl/GD/files/GD-2.560.0-rt106594.patch40
-rw-r--r--dev-perl/GD/metadata.xml21
6 files changed, 279 insertions, 0 deletions
diff --git a/dev-perl/GD/GD-2.560.0-r1.ebuild b/dev-perl/GD/GD-2.560.0-r1.ebuild
new file mode 100644
index 000000000000..0bfa3ba2df60
--- /dev/null
+++ b/dev-perl/GD/GD-2.560.0-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=LDS
+DIST_VERSION=2.56
+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 gif jpeg png truetype xpm"
+PATCHES=(
+ "${FILESDIR}/${P}-rt106594.patch"
+)
+RDEPEND="
+ virtual/perl-Math-Complex
+ >=media-libs/gd-2.0.33
+ 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
+ )
+ gif? ( media-libs/giflib )
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-ExtUtils-MakeMaker
+"
+
+PREFER_BUILDPL="no"
+
+src_prepare(){
+ perl-module_src_prepare
+
+ # bug 572000
+ ln -s "${S}"/lib/GD.xs "${S}"/GD.xs
+
+ sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \
+ "${S}"/Makefile.PL || die
+}
+
+src_configure() {
+ local myconf
+ 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:1}'"
+ perl-module_src_configure
+}
+
+mydoc="GD.html"
diff --git a/dev-perl/GD/GD-2.560.0-r2.ebuild b/dev-perl/GD/GD-2.560.0-r2.ebuild
new file mode 100644
index 000000000000..4bb7dcbd161b
--- /dev/null
+++ b/dev-perl/GD/GD-2.560.0-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=LDS
+DIST_VERSION=2.56
+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 gif jpeg png truetype xpm"
+PATCHES=(
+ "${FILESDIR}/${P}-rt106594.patch"
+)
+RDEPEND="
+ virtual/perl-Math-Complex
+ >=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
+ )
+ gif? ( media-libs/giflib )
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-ExtUtils-MakeMaker
+"
+
+PREFER_BUILDPL="no"
+
+src_prepare(){
+ perl-module_src_prepare
+
+ # bug 572000
+ ln -s "${S}"/lib/GD.xs "${S}"/GD.xs
+
+ 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}'"
+ perl-module_src_configure
+}
+
+mydoc="GD.html"
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..58cae8195002
--- /dev/null
+++ b/dev-perl/GD/GD-2.660.0.ebuild
@@ -0,0 +1,70 @@
+# 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
+ dev-perl/ExtUtils-PkgConfig
+ 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
new file mode 100644
index 000000000000..140369063b5c
--- /dev/null
+++ b/dev-perl/GD/Manifest
@@ -0,0 +1,9 @@
+AUX GD-2.560.0-rt106594.patch 1253 SHA256 e4247bb4d1ba3854f754579079e5d318c845bb2d7f952e188734f29175a9277e SHA512 6bb62f4dd24076f1d99a99e6adbba8daba6c94366ac6e0bdd5a9c18758f7090d6a387d1405b8402fe0463a25825542100d46768f56f80d64d05f34a0b20f0881 WHIRLPOOL 337d59d62d257fcedc8c07493b21130749076a58a737a9f344cfe3288e4d798f3a7b505233e344a1932527d24d06d49b79de8bd954e4af1db7222d7644af878f
+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
+EBUILD GD-2.560.0-r1.ebuild 1399 SHA256 cc657ce6ab64e5614786ff052c38e39c902f1e8fc58fc0e95ada9445a7a5359e SHA512 aa1783eac105425612cf18a7d6afc6ede5f944e1ec652f7afe92a39a7268774d597dd4258cb6b7d1479ed8d8ce406c0853c0c79805cd97a1daa9ccc6cf122ae5 WHIRLPOOL 5eac1603a09fe9d296f2f3a8e95889de7730d8e31c2c707972eb943bd1023be2121dfbf06f0ca9e8cfb891431d653c0d585a9be68ec64883da64af20447d11ca
+EBUILD GD-2.560.0-r2.ebuild 1488 SHA256 ddf617069f9e7c227b83240f070dacdea9c8918a052fb311ddf4b51eb31714b3 SHA512 ab2616acfc2d466f98c8272cbb22eff269bd527cc06da45783e9d40fc5a03932efac31f1b03f3864482745a197312346f461a7aeddc2fd7b69280d487570830a WHIRLPOOL 6e7a8310387126228ea395ca2211d632e1cc682b7a0e88673012c36ac247917a945dafd82bceaf41c56cb5b1ab94e686ef73aa507be6f44ba91d17618c1ca1a4
+EBUILD GD-2.660.0.ebuild 1517 SHA256 f24ce87c1b1cf953de5dab102ed62a8629f2b89696a3a00ee010c781a068e479 SHA512 5bbc50f783d91c015fa2bd7673c7121c380865d6013ffeab16b6576cf6227a0f9cd78accc1a6405b8d928579c3b2022531b8bd348df5ad872beaae933f081812 WHIRLPOOL ffcae8b3a7892a5467baa352174e5acfed99edc3d2b2e65ad6324f1c0447e8c49b72d530731570abf8239679b8b85c2cdc1f6990e03d08e8d95ffe9571d41392
+MISC ChangeLog 4087 SHA256 9022829ec499cc6244bc0078f6e947cc0096ce71c9ae3f08e050c09a6458b154 SHA512 e1f85d783ecebdef90c67b960ede86c9bf41b337b4f876ee5a0058c0857f72051aef47425a8a1546111736a7298f994e3a81ba29603ab6ad055112eb3189db1e WHIRLPOOL 577a51b582960773b531b02a03dbe712d7d204fd3de7f18356cb335a460b6da914166bcef2fcb41f263f75ba2767553406fbf9d650953706939b438895315160
+MISC ChangeLog-2015 13021 SHA256 9e20c8630331be40a2325092ce6a068b9920e93f294511f96389febfc15870fb SHA512 26b5f71c95be9a68e1ed1f01330056a67feeabd39e445e8a4fe80c96b7fa96f2c6f08641fe988f158ac4e4261a1d2f8717c55decb6693ef21a730ad435da874c WHIRLPOOL 14015ac3523cda1507237a4c8d8beac630e279a89158fa425a658f402c54769e8dfb4ca4bf7e08181ef6ff42e42007d17c7a67270d342719b2e328373ea6efb4
+MISC metadata.xml 852 SHA256 de71417f3e2e3771512b0b143aa2beb0e3e46ff0ac4b63bb9ab5de53254e381b SHA512 7b5fe91b323a991d33efaa0b4eb5e4cb96ae8b279035e72a9d9937e08d64cfc7ae39d6ee720becabaa434d55088f05bb4352ff57e7abd63abe0c1949771a3f86 WHIRLPOOL 129387014b24d2d17410c132900efa2483d16710a7fce1a89125f4b176c3e5b793a3d08f8e09667b737588fab492bd84d490d4d1df61b462dc72225f44a4c24e
diff --git a/dev-perl/GD/files/GD-2.560.0-rt106594.patch b/dev-perl/GD/files/GD-2.560.0-rt106594.patch
new file mode 100644
index 000000000000..dc8007d5d493
--- /dev/null
+++ b/dev-perl/GD/files/GD-2.560.0-rt106594.patch
@@ -0,0 +1,40 @@
+diff -Naur GD-2.56/t/GD.t GD-2.56b/t/GD.t
+--- GD-2.56/t/GD.t 2014-10-28 01:34:54.000000000 +0000
++++ GD-2.56b/t/GD.t 2016-05-10 10:05:05.838356122 +0000
+@@ -7,8 +7,8 @@
+ use FindBin qw($Bin);
+ use lib "$Bin/../blib/lib","$Bin/../blib/arch","$Bin/../lib";
+ use constant FONT=>"$Bin/test_data/Generic.ttf";
+-use constant IMAGE_TESTS => 7;
+-use Test::More tests => 11;
++use constant IMAGE_TESTS => 6;
++use Test::More tests => 10;
+ use IO::Dir;
+
+ use_ok('GD',':DEFAULT',':cmp');
+@@ -219,25 +219,6 @@
+ return $im;
+ }
+
+-sub test7 {
+- my $im = GD::Image->new(400,250);
+- if (!$im) { printf("Test7: no image");};
+- my($white,$black,$red,$blue,$yellow) =
+- (
+- $im->colorAllocate(255, 255, 255),
+- $im->colorAllocate(0, 0, 0),
+- $im->colorAllocate(255, 0, 0),
+- $im->colorAllocate(0,0,255),
+- $im->colorAllocate(255,250,205)
+- );
+-
+- # Some TTFs
+- $im->stringFT($black,FONT,12.0,0.0,20,20,"Hello world!") || warn $@;
+- $im->stringFT($red,FONT,14.0,0.0,20,80,"Hello world!") || warn $@;
+- $im->stringFT($blue,FONT,30.0,-0.5,60,100,"Goodbye cruel world!") || warn $@;
+- return $im;
+-}
+-
+ sub run_image_regression_tests {
+ my $suffix = $ENV{GDIMAGETYPE} || 'gd2';
+ print STDERR "# Testing using $suffix support.\n";
diff --git a/dev-perl/GD/metadata.xml b/dev-perl/GD/metadata.xml
new file mode 100644
index 000000000000..2199b65b0d23
--- /dev/null
+++ b/dev-perl/GD/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <use>
+ <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>
+ <remote-id type="cpan-module">GD</remote-id>
+ <remote-id type="cpan-module">GD::Group</remote-id>
+ <remote-id type="cpan-module">GD::Image</remote-id>
+ <remote-id type="cpan-module">GD::Polygon</remote-id>
+ <remote-id type="cpan-module">GD::Polyline</remote-id>
+ <remote-id type="cpan-module">GD::Simple</remote-id>
+ </upstream>
+</pkgmetadata>