From 3048651c241b3b007a6c1ad017a45c2e206fb9ae Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Tue, 19 Feb 2002 13:36:15 +0000 Subject: [PATCH] Upgrade to 2.5. Pointed out by: nork@cityfujisawa.ne.jp (Norikatsu Shigemura) --- www/p5-HTML-Template/Makefile | 10 ++++++++-- www/p5-HTML-Template/distinfo | 2 +- www/p5-HTML-Template/files/patch-Template.pm | 12 ++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 www/p5-HTML-Template/files/patch-Template.pm diff --git a/www/p5-HTML-Template/Makefile b/www/p5-HTML-Template/Makefile index effa0057ac5a..d26804301116 100644 --- a/www/p5-HTML-Template/Makefile +++ b/www/p5-HTML-Template/Makefile @@ -6,7 +6,7 @@ # PORTNAME= HTML-Template -PORTVERSION= 2.4 +PORTVERSION= 2.5 CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= HTML @@ -14,10 +14,16 @@ PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org +BUILD_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +RUN_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec + PERL_CONFIGURE= yes MAN3= HTML::Template.3 - MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +PERL_INC= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} + +post-patch: + ${PERL} -i -pe 's@%%PERL_INC%%@${PERL_INC}@' ${WRKSRC}/Template.pm .include diff --git a/www/p5-HTML-Template/distinfo b/www/p5-HTML-Template/distinfo index a8ca2e8893ea..cad2aeddbf71 100644 --- a/www/p5-HTML-Template/distinfo +++ b/www/p5-HTML-Template/distinfo @@ -1 +1 @@ -MD5 (HTML-Template-2.4.tar.gz) = 685845d9fbfcc93b33f8e429d1a6beb0 +MD5 (HTML-Template-2.5.tar.gz) = 2f8cb555618b2d1180534455c1e61d51 diff --git a/www/p5-HTML-Template/files/patch-Template.pm b/www/p5-HTML-Template/files/patch-Template.pm new file mode 100644 index 000000000000..684a48b3e52b --- /dev/null +++ b/www/p5-HTML-Template/files/patch-Template.pm @@ -0,0 +1,12 @@ +--- Template.pm.orig Tue Feb 19 22:15:56 2002 ++++ Template.pm Tue Feb 19 22:18:31 2002 +@@ -863,7 +863,9 @@ + use strict; # and no funny business, either. + + use Carp; # generate better errors with more context ++BEGIN { unshift(@INC, "%%PERL_INC%%"); } + use File::Spec; # generate paths that work on all platforms ++shift(@INC); + + # define accessor constants used to improve readability of array + # accesses into "objects". I used to use 'use constant' but that