aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Digest-SHA-PurePerl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/p5-Digest-SHA-PurePerl/Makefile')
-rw-r--r--security/p5-Digest-SHA-PurePerl/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/security/p5-Digest-SHA-PurePerl/Makefile b/security/p5-Digest-SHA-PurePerl/Makefile
index 9fd7ef8a8a25..6f65e9d83975 100644
--- a/security/p5-Digest-SHA-PurePerl/Makefile
+++ b/security/p5-Digest-SHA-PurePerl/Makefile
@@ -16,8 +16,23 @@ PERL_CONFIGURE= yes
MAN3= Digest::SHA::PurePerl.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500803
+RUN_DEPENDS+= ${SITE_PERL}/Digest/base.pm:${PORTSDIR}/security/p5-Digest
+.endif
+
+.if ${PERL_LEVEL} >= 501000
+PLIST_SUB+= EXE_FILES="@comment "
+.else
+PLIST_SUB+= EXE_FILES=""
+MAN1= shasum.1
+.endif
+
post-patch:
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
.if !defined(NOPORTEXAMPLES)
post-install:
@@ -25,4 +40,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/examples/dups ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>