freebsd-ports/www/p5-HTML-Template-JIT/Makefile
Mathieu Arnold 26f397025e Update to 0.05
PR:		98648
Submitted by:	Rong-En Fan <rafan@infor.org>
2006-06-14 11:41:35 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: p5-HTML-Template-JIT
# Date Created: 2004/04/30
# Whom: alex@kapranoff.ru
#
# $FreeBSD$
#
PORTNAME= HTML-Template-JIT
PORTVERSION= 0.05
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
PKGNAMEPREFIX= p5-
MAINTAINER= mat@FreeBSD.org
COMMENT= Perl module to compile HTML Templates with Inline::C
BUILD_DEPENDS= p5-HTML-Template>=2.8:${PORTSDIR}/www/p5-HTML-Template \
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
p5-Inline>=0.43:${PORTSDIR}/devel/p5-Inline
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
.if ${PERL_LEVEL} < 500600
@${PERL} -i -pe '$$_ = "" if /warnings|5\.006/g;' \
-e 's/\bour ([^ ;]+)/use vars qw{$$1};$$1/g;' \
${WRKSRC}/Makefile.PL ${WRKSRC}/JIT.pm \
${WRKSRC}/JIT/Base.pm ${WRKSRC}/JIT/Compiler.pm
.endif
@${FIND} ${WRKSRC} -name '*.orig' -delete
.include <bsd.port.post.mk>