aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-io-gzip
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 07:07:47 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 07:07:47 +0000
commitfdb0bf4733c299d6aef8f37fce2bc4ac8a416ff0 (patch)
tree9572908b3436eff1addb5c4e7fd8301a3926e44e /community/perl-io-gzip
parentfe2b511062ead140b197af07e5a8f7e0ace3dfd8 (diff)
downloadaports-fdb0bf4733c299d6aef8f37fce2bc4ac8a416ff0.tar.bz2
aports-fdb0bf4733c299d6aef8f37fce2bc4ac8a416ff0.tar.xz
community/perl-io-gzip: upgraded to 0.19, moved from testing
Diffstat (limited to 'community/perl-io-gzip')
-rw-r--r--community/perl-io-gzip/APKBUILD42
-rw-r--r--community/perl-io-gzip/PerlIO-gzip-0.18-RT92412.patch12
2 files changed, 54 insertions, 0 deletions
diff --git a/community/perl-io-gzip/APKBUILD b/community/perl-io-gzip/APKBUILD
new file mode 100644
index 0000000000..005ec2fbc4
--- /dev/null
+++ b/community/perl-io-gzip/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-io-gzip
+pkgver=0.19
+pkgrel=0
+pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip"
+url="http://search.cpan.org/dist/PerlIO-gzip/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="perl-dev zlib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz"
+
+_builddir="$srcdir"/PerlIO-gzip-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="dbcfc1450f6b593b65048b8ced061c98 PerlIO-gzip-0.19.tar.gz"
+sha256sums="d2e9351d58b8a93c86811e25a898ee651fc393a157413652bf42f9aada2eb284 PerlIO-gzip-0.19.tar.gz"
+sha512sums="514b4e224bb66f00c1e7e4678ede625b6fd0ce0c2687bb7bf662d8ffe942c6a711426f27399343a9c02b0313dae8aa41a7e4551f7d9e59a178cc1a6d067d8608 PerlIO-gzip-0.19.tar.gz"
diff --git a/community/perl-io-gzip/PerlIO-gzip-0.18-RT92412.patch b/community/perl-io-gzip/PerlIO-gzip-0.18-RT92412.patch
new file mode 100644
index 0000000000..8c325d659a
--- /dev/null
+++ b/community/perl-io-gzip/PerlIO-gzip-0.18-RT92412.patch
@@ -0,0 +1,12 @@
+--- a/Makefile.PL 2006-10-01 21:28:25.000000000 +0000
++++ b/Makefile.PL 2014-01-23 15:40:56.784222851 +0000
+@@ -4,7 +4,8 @@
+ use ExtUtils::MakeMaker;
+ use Config;
+
+-unless ($Config{useperlio} eq 'define' and $Config{usesfio} eq 'false') {
++unless ($Config{useperlio} eq 'define' and
++ (defined($Config{usesfio}) ? $Config{usesfio} : 'false') eq 'false') {
+ die <<BARF;
+ You need perl 5.8.0 or later, configured to use perlio (and not to use sfio)
+ BARF