diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-09 13:13:10 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-09 13:13:10 +0800 |
commit | d10953211d89ab61c35f4893961d4cf8fdfb1f95 (patch) | |
tree | 86c87a966cf19be24e8415c8d83193244885eeea /www | |
parent | 0ba6c294317f58faf5e6c49a3ab8ea64b2cfeb9f (diff) | |
download | freebsd-ports-gnome-d10953211d89ab61c35f4893961d4cf8fdfb1f95.tar.gz freebsd-ports-gnome-d10953211d89ab61c35f4893961d4cf8fdfb1f95.tar.zst freebsd-ports-gnome-d10953211d89ab61c35f4893961d4cf8fdfb1f95.zip |
www/p5-CGI.pm: p5-File-Spec should only be used if perl < 5.8
PR: ports/44730
Submitted by: Alan Eldridge <alane@geeksrus.net>
Reviewed by: tobez@
Diffstat (limited to 'www')
-rw-r--r-- | www/p5-CGI.pm/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/www/p5-CGI.pm/Makefile b/www/p5-CGI.pm/Makefile index 76c6d2906010..6a011a83fcbd 100644 --- a/www/p5-CGI.pm/Makefile +++ b/www/p5-CGI.pm/Makefile @@ -15,16 +15,22 @@ PKGNAMEPREFIX= p5- MAINTAINER= tobez@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec -RUN_DEPENDS= ${BUILD_DEPENDS} - PERL_CONFIGURE= yes -MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 CGI::Fast.3 \ - CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 CGI::Util.3 +MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 \ + CGI::Fast.3 CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 \ + CGI::Util.3 + MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} pre-patch: @${PERL} -pi -e '$$_ = "" if /INSTALLDIRS|5\.6\.0/' ${WRKSRC}/Makefile.PL -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500601 +BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif + +.include <bsd.port.post.mk> |