aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-05 18:36:49 +0800
committeredwin <edwin@FreeBSD.org>2003-02-05 18:36:49 +0800
commitaedcd4250b2d811ffa0f2a0314cf1655cb2b5267 (patch)
tree7c1c08cedc84a61f24e0514f3a40083d1206bb96 /www
parent78f8ad39bae6b1031c68037579ce3342c765dc8d (diff)
downloadfreebsd-ports-gnome-aedcd4250b2d811ffa0f2a0314cf1655cb2b5267.tar.gz
freebsd-ports-gnome-aedcd4250b2d811ffa0f2a0314cf1655cb2b5267.tar.zst
freebsd-ports-gnome-aedcd4250b2d811ffa0f2a0314cf1655cb2b5267.zip
www/p5-Bundle-Slash: p5-File-Spec should only be used if perl < 5.8
PR: ports/44735 Submitted by: Alan Eldridge <alane@geeksrus.net>
Diffstat (limited to 'www')
-rw-r--r--www/p5-Bundle-Slash/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/p5-Bundle-Slash/Makefile b/www/p5-Bundle-Slash/Makefile
index 87adf1128b87..6577743663fc 100644
--- a/www/p5-Bundle-Slash/Makefile
+++ b/www/p5-Bundle-Slash/Makefile
@@ -20,7 +20,6 @@ BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-D
${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
${SITE_PERL}/${PERL_ARCH}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
- ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
@@ -53,4 +52,10 @@ PERL_CONFIGURE= yes
MAN3= Bundle::Slash.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif
+
+.include <bsd.port.post.mk>