aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/p5-Template-Toolkit/Makefile7
-rw-r--r--www/p5-Template-Toolkit/distinfo4
-rw-r--r--www/p5-Template-Toolkit/files/5.005-lib-Template-Document.pm21
3 files changed, 29 insertions, 3 deletions
diff --git a/www/p5-Template-Toolkit/Makefile b/www/p5-Template-Toolkit/Makefile
index b4fec66e74a6..c4ebd1cc6402 100644
--- a/www/p5-Template-Toolkit/Makefile
+++ b/www/p5-Template-Toolkit/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Template-Toolkit
-PORTVERSION= 2.13
+PORTVERSION= 2.14
CATEGORIES= www textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Template
@@ -123,6 +123,11 @@ MAN3= Template.3 \
post-patch:
${PERL} -pi -e 's,/usr/local/tt2,${PREFIX}/share/tt2,g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+.if ${PERL_LEVEL} < 500601
+ ${FIND} ${WRKSRC} -name '*.orig' -delete
+
+EXTRA_PATCHES= ${PATCHDIR}/5.005-lib-Template-Document.pm
+.endif
.if ${PERL_LEVEL} >= 500800
MAN3+= Template::Config.3
diff --git a/www/p5-Template-Toolkit/distinfo b/www/p5-Template-Toolkit/distinfo
index 83658129c575..1c8d320f7439 100644
--- a/www/p5-Template-Toolkit/distinfo
+++ b/www/p5-Template-Toolkit/distinfo
@@ -1,2 +1,2 @@
-MD5 (Template-Toolkit-2.13.tar.gz) = 251c7fb54f522ab11c27ca406beaefe3
-SIZE (Template-Toolkit-2.13.tar.gz) = 839389
+MD5 (Template-Toolkit-2.14.tar.gz) = 0eed60763ef2465c50f9b6a33e51cc14
+SIZE (Template-Toolkit-2.14.tar.gz) = 843175
diff --git a/www/p5-Template-Toolkit/files/5.005-lib-Template-Document.pm b/www/p5-Template-Toolkit/files/5.005-lib-Template-Document.pm
new file mode 100644
index 000000000000..6617e52d3e52
--- /dev/null
+++ b/www/p5-Template-Toolkit/files/5.005-lib-Template-Document.pm
@@ -0,0 +1,21 @@
+--- lib/Template/Document.pm~ Mon Oct 4 12:27:39 2004
++++ lib/Template/Document.pm Tue Oct 5 16:08:42 2004
+@@ -37,17 +37,7 @@
+
+ BEGIN {
+ # UNICODE is supported in versions of Perl from 5.008 onwards
+- if ($UNICODE = $] > 5.007 ? 1 : 0) {
+- if ($^V gt v5.8.0) {
+- # utf8::is_utf8() available from Perl 5.8.1 onwards
+- *is_utf8 = \&utf8::is_utf8;
+- }
+- elsif ($^V eq v5.8.0) {
+- # use Encode::is_utf8() for Perl 5.8.0
+- require Encode;
+- *is_utf8 = \&Encode::is_utf8;
+- }
+- }
++ $UNICODE = 0;
+ }
+
+