summaryrefslogtreecommitdiff
path: root/dev-perl/GD
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/GD
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
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/Manifest7
-rw-r--r--dev-perl/GD/files/GD-2.560.0-rt106594.patch40
-rw-r--r--dev-perl/GD/metadata.xml21
6 files changed, 277 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..c4df93414b3a
--- /dev/null
+++ b/dev-perl/GD/GD-2.560.0-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 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..39361b4c158e
--- /dev/null
+++ b/dev-perl/GD/Manifest
@@ -0,0 +1,7 @@
+AUX GD-2.560.0-rt106594.patch 1253 BLAKE2B d7d05d2c492782a90e877932dd9a12aeedc5d206fa41a4bbf35b871c6d3fd27557f2d9e0606f39cddee92f4b132e6d57f0f83dc90d0c82689b52f36ae7ec5c6b SHA512 6bb62f4dd24076f1d99a99e6adbba8daba6c94366ac6e0bdd5a9c18758f7090d6a387d1405b8402fe0463a25825542100d46768f56f80d64d05f34a0b20f0881
+DIST GD-2.56.tar.gz 273441 BLAKE2B eb8d27a1a18f3ee8474138c82d1305b6bc8248e6b4ba4ab0bc4470d070eae0207a837e54e8f02c8f6c06e813663396561c0ac2d191e9884ea1f0ff65d23bc166 SHA512 51c4b46b199625a12ae1ad1003cafe4e66913d1e0c0b51d9bccbc7c14a86dfe29144caefbeca2927a66a44d4ba8b134550ee4a63eb86aceaa13513c46a4e71f4
+DIST GD-2.66.tar.gz 253000 BLAKE2B 1a1d5374c06fcb07849e504c8c5c6f00443890cfb728fd02b4c94838d754c2f04bbda80cfa8e2a7b08a3c07cbed32aa6a499468dfb044865f833b3486965d2b8 SHA512 37d3da70f4e0b89b0166488a1f8a48c508ff5e515653fe1b10602cb708ae0ce713c617dcae21c48ec795799fb0e061762696e6a65bb8ba359859223d15677c61
+EBUILD GD-2.560.0-r1.ebuild 1400 BLAKE2B f6453b677f0e2e0f2d587ace85cb2f19416c589a93b2bf0373e77c6fcf2e3ece7cd8d486eb20c6bcea3f0c56e919622cf565636e24984b5e38c08d77da8e7069 SHA512 b496fa5d38fc26b33a0252a5b752414134e8af27b8264bc1be4c1dbd049068f6d11c2b50438a0341cf728b432c554631005a079a82522f3352d7f2550544d5f9
+EBUILD GD-2.560.0-r2.ebuild 1488 BLAKE2B 45c6b2078e79dd93bf26348d7ff7697d1053f45415c1efd32c4c93024bfc9465361802c40ea892cbdbb878c0603bd07a6a97a8f1937c72935cb2a4de6dfc4de1 SHA512 ab2616acfc2d466f98c8272cbb22eff269bd527cc06da45783e9d40fc5a03932efac31f1b03f3864482745a197312346f461a7aeddc2fd7b69280d487570830a
+EBUILD GD-2.660.0.ebuild 1517 BLAKE2B f712e46495d11359ab865b20355730a178862bc7214298f060e2f781d4be5b5754d4ce8f63390f033782047931a96185c4486743c51886041a8049db1c21bcf0 SHA512 5bbc50f783d91c015fa2bd7673c7121c380865d6013ffeab16b6576cf6227a0f9cd78accc1a6405b8d928579c3b2022531b8bd348df5ad872beaae933f081812
+MISC metadata.xml 852 BLAKE2B ab7abbcbf4d6d62266365794525899c41cb9119ac9173363eebb2573e682671c3e7b7cf032d450d90c19a9ba692915f2cbf706e2a90260c80f8e8eb251cee763 SHA512 7b5fe91b323a991d33efaa0b4eb5e4cb96ae8b279035e72a9d9937e08d64cfc7ae39d6ee720becabaa434d55088f05bb4352ff57e7abd63abe0c1949771a3f86
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>