aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-16 13:26:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-16 13:56:38 +0000
commit193d2bb63d10349573a3f543a22253a18d8e7992 (patch)
tree60f72504a69cbcb02a183ae7b0cd35e259bec27e /testing
parent1ee02d3cff358bcebf76f39673cfecabba1b3b4a (diff)
downloadaports-193d2bb63d10349573a3f543a22253a18d8e7992.tar.bz2
aports-193d2bb63d10349573a3f543a22253a18d8e7992.tar.xz
testing/perl-unicode-string: rebuild against perl-5.22
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-unicode-string/APKBUILD20
-rw-r--r--testing/perl-unicode-string/perl-Unicode-String-2.09-undefined.patch12
2 files changed, 27 insertions, 5 deletions
diff --git a/testing/perl-unicode-string/APKBUILD b/testing/perl-unicode-string/APKBUILD
index 287eb44b53..c42c45c647 100644
--- a/testing/perl-unicode-string/APKBUILD
+++ b/testing/perl-unicode-string/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-unicode-string
_pkgreal=Unicode-String
pkgver=2.09
-pkgrel=2
+pkgrel=3
pkgdesc="String of Unicode characters for perl (UCS2/UTF16)"
url="http://search.cpan.org/dist/Unicode-String/"
arch="all"
@@ -14,12 +14,19 @@ cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz
+ perl-Unicode-String-2.09-undefined.patch
+ "
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
@@ -36,6 +43,9 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="553e68e603723bf7c631f8701ab0d678 Unicode-String-2.09.tar.gz"
-sha256sums="c817bedb954ea2d488bade56059028b99e0198f6826482e2f68fd6d78653faad Unicode-String-2.09.tar.gz"
-sha512sums="88bd5fe4a1e8ac05b7da5f75411f3e2cb17fb756ca926ace7f46d047ba7a7f22e54462efb61c2f0bf651d2c63d6fe74bffa8b7bcf49aa59847135a43b5cde759 Unicode-String-2.09.tar.gz"
+md5sums="553e68e603723bf7c631f8701ab0d678 Unicode-String-2.09.tar.gz
+b08a47f2bd8b046a98fe4951f3eb6e43 perl-Unicode-String-2.09-undefined.patch"
+sha256sums="c817bedb954ea2d488bade56059028b99e0198f6826482e2f68fd6d78653faad Unicode-String-2.09.tar.gz
+7128483d06c846a9fbfbc1dc501b755b879914885f12559fec30ac4f6fb12d39 perl-Unicode-String-2.09-undefined.patch"
+sha512sums="88bd5fe4a1e8ac05b7da5f75411f3e2cb17fb756ca926ace7f46d047ba7a7f22e54462efb61c2f0bf651d2c63d6fe74bffa8b7bcf49aa59847135a43b5cde759 Unicode-String-2.09.tar.gz
+b25a6c91d5ecc11dd3c8a675024111a3dfadaf3b22f2b3000f5fb3f7e79741b28aafa709b3c72ff7e6f4f936d8fbc38f50ca5994513b47badb57a31872e99450 perl-Unicode-String-2.09-undefined.patch"
diff --git a/testing/perl-unicode-string/perl-Unicode-String-2.09-undefined.patch b/testing/perl-unicode-string/perl-Unicode-String-2.09-undefined.patch
new file mode 100644
index 0000000000..184b447e95
--- /dev/null
+++ b/testing/perl-unicode-string/perl-Unicode-String-2.09-undefined.patch
@@ -0,0 +1,12 @@
+diff -ru libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm libunicode-string-perl-2.09/lib/Unicode/CharName.pm
+--- libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm 2005-10-25 19:11:00.000000000 +0100
++++ libunicode-string-perl-2.09/lib/Unicode/CharName.pm 2012-01-24 12:56:59.730653088 +0000
+@@ -77,7 +77,7 @@
+ return join("", "HANGUL SYLLABLE ", @s)
+ }
+ }
+- _init_names() unless defined %NAMES;
++ _init_names() unless %NAMES;
+ $NAMES{sprintf("%04X",$code)}
+ }
+