summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/perl-template-toolkit/APKBUILD17
-rw-r--r--testing/perl-template-toolkit/split_pattern.patch31
2 files changed, 45 insertions, 3 deletions
diff --git a/testing/perl-template-toolkit/APKBUILD b/testing/perl-template-toolkit/APKBUILD
index 25bdcd03a..c05403c33 100644
--- a/testing/perl-template-toolkit/APKBUILD
+++ b/testing/perl-template-toolkit/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-template-toolkit
_pkgreal=Template-Toolkit
pkgver=2.24
-pkgrel=0
+pkgrel=1
pkgdesc="comprehensive template processing system"
url="http://search.cpan.org/dist/Template-Toolkit/"
arch="all"
@@ -14,12 +14,18 @@ cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_pkgreal-$pkgver.tar.gz
+ split_pattern.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,4 +42,9 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="c25fdab1beebf8818c2e624bc9f9d212 Template-Toolkit-2.24.tar.gz"
+md5sums="c25fdab1beebf8818c2e624bc9f9d212 Template-Toolkit-2.24.tar.gz
+ba157cb82e67488bf562ca9456efa346 split_pattern.patch"
+sha256sums="38834aa8c249f7b7fb8b7238f086a08947ea7d472d78f1f5e2b9f3dbf49d01c8 Template-Toolkit-2.24.tar.gz
+2a93ce763aa3bc2dcfcf0d5b69c2b20ad1aec5c6e44084fbf59625006f9d4250 split_pattern.patch"
+sha512sums="3ea88b0d308070b6b30dd48af4f97ab285e9d67d32b6a59c17c374c620a26287eac267e1b8d901b7dacb6922ca052e3aaec561025967acf5b342200706978739 Template-Toolkit-2.24.tar.gz
+d95c9e674fd1c56991fb715908eb206da53c9573e17b7a30d5b69e63cad95824726548f0da900d08a68fecd9722416fa0124f715635a0f953f1340412045f8bd split_pattern.patch"
diff --git a/testing/perl-template-toolkit/split_pattern.patch b/testing/perl-template-toolkit/split_pattern.patch
new file mode 100644
index 000000000..b0b1152e4
--- /dev/null
+++ b/testing/perl-template-toolkit/split_pattern.patch
@@ -0,0 +1,31 @@
+https://rt.cpan.org/Public/Bug/Display.html?id=84778
+
+--- a/lib/Template/VMethods.pm 2012-02-07 09:06:38.000000000 +0000
++++ b/lib/Template/VMethods.pm 2013-04-22 16:58:34.000000000 +0000
+@@ -261,12 +261,12 @@
+
+ if (defined $limit) {
+ return [ defined $split
+- ? split($split, $str, $limit)
++ ? split("(?:)".$split, $str, $limit)
+ : split(' ', $str, $limit) ];
+ }
+ else {
+ return [ defined $split
+- ? split($split, $str)
++ ? split("(?:)".$split, $str)
+ : split(' ', $str) ];
+ }
+ }
+--- a/lib/Template/Plugin/String.pm 2011-12-20 07:41:35.000000000 +0000
++++ b/lib/Template/Plugin/String.pm 2013-04-22 16:55:36.000000000 +0000
+@@ -363,7 +363,7 @@
+ my $split = CORE::shift;
+ my $limit = CORE::shift || 0;
+ $split = '\s+' unless defined $split;
+- return [ split($split, $self->{ text }, $limit) ];
++ return [ split("(?:)".$split, $self->{ text }, $limit) ];
+ }
+
+
+