summaryrefslogtreecommitdiffstats
path: root/textproc/p5-XML-Directory
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-05 10:24:06 +0000
committeredwin <edwin@FreeBSD.org>2003-02-05 10:24:06 +0000
commitc731ba0f1890db588828750cf0abc4e50df39380 (patch)
tree8361cd9ca92f10cd67c7ef414fc40c50c9a446c0 /textproc/p5-XML-Directory
parent8f570c3f5d71d63831f560625883b878646fb100 (diff)
downloadFreeBSD-ports-c731ba0f1890db588828750cf0abc4e50df39380.zip
FreeBSD-ports-c731ba0f1890db588828750cf0abc4e50df39380.tar.gz
Remove dependency on p5-File-Spec is PERL_LEVEL >= 5.6.1
PR: ports/44727 Submitted by: Alan Eldridge <alane@geeksrus.net>
Diffstat (limited to 'textproc/p5-XML-Directory')
-rw-r--r--textproc/p5-XML-Directory/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/textproc/p5-XML-Directory/Makefile b/textproc/p5-XML-Directory/Makefile
index 3492341..d7dab3b 100644
--- a/textproc/p5-XML-Directory/Makefile
+++ b/textproc/p5-XML-Directory/Makefile
@@ -14,8 +14,7 @@ PKGNAMEPREFIX= p5-
MAINTAINER= skv@protey.ru
-BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
- ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Notation3.pm:${PORTSDIR}/textproc/p5-RDF-Notation3
+BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Notation3.pm:${PORTSDIR}/textproc/p5-RDF-Notation3
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
@@ -30,4 +29,10 @@ pre-patch:
@find ${WRKSRC} -name "*.pm" | xargs ${PERL} -pi -e \
'$$package=$$1 if /^package\s+([^\s;]*);/; s!^require 5.005_62;!!; s!^use warnings;!!; s!^our\s+(\$$|@)(VERSION|ISA|EXPORT|EXPORT_OK)\s+=!$$1$${package}::$$2=!;'
-.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>
OpenPOWER on IntegriCloud