diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 08:56:11 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 08:56:11 +0000 |
commit | 1ec49070df349629e2807010fd4166c9d5b3dbaf (patch) | |
tree | 03b219398ec26a351bf9861044a5d16ecb5b13ba /www | |
parent | d14bd94cc9bd23dd39a77e4540bfff32bce52515 (diff) | |
download | FreeBSD-ports-1ec49070df349629e2807010fd4166c9d5b3dbaf.zip FreeBSD-ports-1ec49070df349629e2807010fd4166c9d5b3dbaf.tar.gz |
Generate correct *_DEPENDS line for File::Spec 0.82 on 4.x and 5.x.
Seach File::Spec module by using "perl -MFile::Spec" and switching by
evaluating $File::Spec::VERSION which actually loaded.
Diffstat (limited to 'www')
-rw-r--r-- | www/p5-HTML-Template/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/www/p5-HTML-Template/Makefile b/www/p5-HTML-Template/Makefile index 5509f81..6728591 100644 --- a/www/p5-HTML-Template/Makefile +++ b/www/p5-HTML-Template/Makefile @@ -14,20 +14,19 @@ 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 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 + ${PERL} -i -pe 's@%%PERL_INC%%@${SITE_PERL}@' ${WRKSRC}/Template.pm -.include <bsd.port.post.mk> +.include <bsd.port.mk> + +# ${PERL} defined after bsd.port.post.mk. So place this after .include line. +USE_FILESPEC!= ${PERL} -MFile::Spec -e 'print $$File::Spec::VERSION<0.82' +.if (${USE_FILESPEC} == 1) +BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif |