diff options
-rw-r--r-- | www/p5-HTML-Template/Makefile | 7 | ||||
-rw-r--r-- | www/p5-HTML-Template/files/patch-Template.pm | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/www/p5-HTML-Template/Makefile b/www/p5-HTML-Template/Makefile index d268043..a06a347 100644 --- a/www/p5-HTML-Template/Makefile +++ b/www/p5-HTML-Template/Makefile @@ -7,6 +7,7 @@ PORTNAME= HTML-Template PORTVERSION= 2.5 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= HTML @@ -14,8 +15,12 @@ PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org +.include <bsd.port.pre.mk> + +.if !exists(${PREFIX}/lib/perl5/5.6.1/File/Spec.pm) BUILD_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec RUN_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif PERL_CONFIGURE= yes @@ -26,4 +31,4 @@ PERL_INC= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} post-patch: ${PERL} -i -pe 's@%%PERL_INC%%@${PERL_INC}@' ${WRKSRC}/Template.pm -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/p5-HTML-Template/files/patch-Template.pm b/www/p5-HTML-Template/files/patch-Template.pm index 684a48b..4e71f9d 100644 --- a/www/p5-HTML-Template/files/patch-Template.pm +++ b/www/p5-HTML-Template/files/patch-Template.pm @@ -1,5 +1,5 @@ ---- Template.pm.orig Tue Feb 19 22:15:56 2002 -+++ Template.pm Tue Feb 19 22:18:31 2002 +--- Template.pm.orig Sat Feb 2 08:01:37 2002 ++++ Template.pm Tue Mar 12 11:24:20 2002 @@ -863,7 +863,9 @@ use strict; # and no funny business, either. @@ -10,3 +10,12 @@ # define accessor constants used to improve readability of array # accesses into "objects". I used to use 'use constant' but that +@@ -2011,7 +2013,7 @@ + push(@ifstack, $cond); + + } elsif ($which eq '/TMPL_IF' or $which eq '/TMPL_UNLESS') { +- $options->{debug} and print STDERR "### HTML::Template Debug ###$fname : line $fcounter : $which end\n"; ++ $options->{debug} and print STDERR "### HTML::Template Debug ### $fname : line $fcounter : $which end\n"; + + my $cond = pop(@ifstack); + die "HTML::Template->new() : found </${which}> with no matching <TMPL_IF> at $fname : line $fcounter." unless defined $cond; |