aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Digest-SHA
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2009-03-28 20:45:10 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2009-03-28 20:45:10 +0000
commit1a9ef9fa6754e0c0f087f4e7a76e65029a75941c (patch)
treee0596dfc5254e65a6f3de0b5eb6d25f4ad08a7d0 /security/p5-Digest-SHA
parent0804fca67c5eda2be61329599da40c5734b4d634 (diff)
downloadports-1a9ef9fa6754e0c0f087f4e7a76e65029a75941c.tar.gz
ports-1a9ef9fa6754e0c0f087f4e7a76e65029a75941c.zip
Notes
Diffstat (limited to 'security/p5-Digest-SHA')
-rw-r--r--security/p5-Digest-SHA/Makefile17
-rw-r--r--security/p5-Digest-SHA/pkg-plist4
2 files changed, 17 insertions, 4 deletions
diff --git a/security/p5-Digest-SHA/Makefile b/security/p5-Digest-SHA/Makefile
index c94cf0975009..a896ab99af71 100644
--- a/security/p5-Digest-SHA/Makefile
+++ b/security/p5-Digest-SHA/Makefile
@@ -16,7 +16,20 @@ COMMENT= Perl extension for SHA-1/224/256/384/512
PERL_CONFIGURE= yes
-MAN1= shasum.1
MAN3= Digest::SHA.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.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 's/5.010/5.666/; /EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-SHA/pkg-plist b/security/p5-Digest-SHA/pkg-plist
index 9f82141b210c..7b40336aaa75 100644
--- a/security/p5-Digest-SHA/pkg-plist
+++ b/security/p5-Digest-SHA/pkg-plist
@@ -1,8 +1,8 @@
-bin/shasum
+%%EXE_FILES%%bin/shasum
%%SITE_PERL%%/%%PERL_ARCH%%/Digest/SHA.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/SHA.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/SHA.so
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest
-@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Digest/
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Digest