aboutsummaryrefslogtreecommitdiff
path: root/www/p5-HTML-Template-JIT/Makefile
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2004-08-19 16:20:11 +0000
committerMathieu Arnold <mat@FreeBSD.org>2004-08-19 16:20:11 +0000
commit0dcbb3207ce6a44cfa30fb333e3d6067bf9223ce (patch)
tree9648b1b78eeba2a08498e52dd9a154a5465d8d2a /www/p5-HTML-Template-JIT/Makefile
parentd4540c96cf197e97f68a88c9d4c56904a6805791 (diff)
downloadports-0dcbb3207ce6a44cfa30fb333e3d6067bf9223ce.tar.gz
ports-0dcbb3207ce6a44cfa30fb333e3d6067bf9223ce.zip
Notes
Diffstat (limited to 'www/p5-HTML-Template-JIT/Makefile')
-rw-r--r--www/p5-HTML-Template-JIT/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/p5-HTML-Template-JIT/Makefile b/www/p5-HTML-Template-JIT/Makefile
index 712f2499eec5..85a8aac7bfe7 100644
--- a/www/p5-HTML-Template-JIT/Makefile
+++ b/www/p5-HTML-Template-JIT/Makefile
@@ -7,7 +7,7 @@
PORTNAME= HTML-Template-JIT
PORTVERSION= 0.04
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
@@ -22,12 +22,17 @@ BUILD_DEPENDS= ${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
+INSTALL_TARGET= pure_install
MAN3= HTML::Template::JIT.3 HTML::Template::JIT::Compiler.3 \
HTML::Template::JIT::Base.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500600
+EXTRA_PATCHES= ${PATCHDIR}/5.005-JIT-Compiler.pm
+.endif
+
post-patch:
@${PERL} -i -pe 's/indent -kr/indent/' \
${WRKSRC}/JIT/Compiler.pm
@@ -36,8 +41,7 @@ post-patch:
-e 's/\bour ([^ ;]+)/use vars qw{$$1};$$1/g;' \
${WRKSRC}/Makefile.PL ${WRKSRC}/JIT.pm \
${WRKSRC}/JIT/Base.pm ${WRKSRC}/JIT/Compiler.pm
-
-EXTRA_PATCHES= ${PATCHDIR}/5.005-JIT-Compiler.pm
.endif
+ @${FIND} ${WRKSRC} -name '*.orig' -delete
.include <bsd.port.post.mk>