aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-09 13:08:38 +0800
committeredwin <edwin@FreeBSD.org>2003-02-09 13:08:38 +0800
commit0ba6c294317f58faf5e6c49a3ab8ea64b2cfeb9f (patch)
treeed49ff276e3b7235a953f745dffb2f5f5c4e3d60 /mail
parent42bdfcc01938a4c694904aef8b07ca622ac0d49d (diff)
downloadfreebsd-ports-gnome-0ba6c294317f58faf5e6c49a3ab8ea64b2cfeb9f.tar.gz
freebsd-ports-gnome-0ba6c294317f58faf5e6c49a3ab8ea64b2cfeb9f.tar.zst
freebsd-ports-gnome-0ba6c294317f58faf5e6c49a3ab8ea64b2cfeb9f.zip
mail/p5-Mail-Box: p5-File-Spec should only be used if perl < 5.8
PR: ports/44722 Submitted by: Alan Eldridge <alane@geeksrus.net> Approved by: tobez
Diffstat (limited to 'mail')
-rw-r--r--mail/p5-Mail-Box/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/mail/p5-Mail-Box/Makefile b/mail/p5-Mail-Box/Makefile
index dff9ecc5e149..5411c19b4c83 100644
--- a/mail/p5-Mail-Box/Makefile
+++ b/mail/p5-Mail-Box/Makefile
@@ -14,8 +14,7 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
-BUILD_DEPENDS= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
- ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
+BUILD_DEPENDS= ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate
RUN_DEPENDS= ${BUILD_DEPENDS}
@@ -43,4 +42,10 @@ post-patch:
${PERL} -pi -e 's/^our\s+([\$$\@]\w+)/use vars qw($$1);$$1/' \
${WRKSRC}/Message.pm
-.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>