aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-crypt-des
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-23 07:07:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-23 07:07:08 +0000
commit9b010371b91e323c7b270892d05514058d22c05f (patch)
tree647a5e38992aab2b2a24b4d8401283e1f21f4e93 /main/perl-crypt-des
parenta84fabeff41561ab9ab11847b500dd3647cdac1b (diff)
downloadaports-9b010371b91e323c7b270892d05514058d22c05f.tar.bz2
aports-9b010371b91e323c7b270892d05514058d22c05f.tar.xz
main/perl-crypt-des: rebuild against perl-5.18
Diffstat (limited to 'main/perl-crypt-des')
-rw-r--r--main/perl-crypt-des/APKBUILD19
-rw-r--r--main/perl-crypt-des/svupgrade.patch13
2 files changed, 28 insertions, 4 deletions
diff --git a/main/perl-crypt-des/APKBUILD b/main/perl-crypt-des/APKBUILD
index cc898a3364..fe4e89310d 100644
--- a/main/perl-crypt-des/APKBUILD
+++ b/main/perl-crypt-des/APKBUILD
@@ -2,7 +2,7 @@
pkgname=perl-crypt-des
_pkgreal=Crypt-DES
pkgver=2.05
-pkgrel=1
+pkgrel=2
pkgdesc="unknown"
url="http://search.cpan.org/dist/Crypt-DES/"
arch="all"
@@ -12,17 +12,23 @@ cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/$_pkgreal-$pkgver.tar.gz
+ svupgrade.patch"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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 && make test
}
@@ -32,4 +38,9 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="a8a0bea7064e11d2af434f3e468c17bb Crypt-DES-2.05.tar.gz"
+md5sums="a8a0bea7064e11d2af434f3e468c17bb Crypt-DES-2.05.tar.gz
+9b421edb0638fa417fd5b77c5e53ff7b svupgrade.patch"
+sha256sums="b7be9e4113eea37554a33c4d738a9226662c3ee53a5f0f281e1b1974569822f0 Crypt-DES-2.05.tar.gz
+7c011781f70bfdf1d03f7b26db174ef711480f8671144a9f1fa8d154c8d6864d svupgrade.patch"
+sha512sums="006b7299351389ab3ca71f082cb4f12e33aad45e1c06e5394ffef618ddc0d28d14431abd90c23be6e2a86cd2ca34ae70fb6b72dd613d17421b5427e13e405532 Crypt-DES-2.05.tar.gz
+1fca98a8cd79d5db2f6ce91824ec852d9cf44b642b84562388f6e419f00327679a9af8656eaf813382477eb5e3b3dca646fb49dfe02f6ba79c6e17acd2cce710 svupgrade.patch"
diff --git a/main/perl-crypt-des/svupgrade.patch b/main/perl-crypt-des/svupgrade.patch
new file mode 100644
index 0000000000..b68eaadbe2
--- /dev/null
+++ b/main/perl-crypt-des/svupgrade.patch
@@ -0,0 +1,13 @@
+--- a/DES.xs 2005-12-08 15:52:50.000000000 +0000
++++ b/DES.xs 2013-03-13 15:02:29.000000000 +0000
+@@ -64,8 +64,7 @@
+ output = sv_newmortal();
+ output_len = 8;
+
+- if (!SvUPGRADE(output, SVt_PV))
+- croak("cannot use output argument as lvalue");
++ (void) SvUPGRADE(output, SVt_PV);
+
+ perl_des_crypt(input, SvGROW(output, output_len), (i32 *)ks, enc_flag);
+
+