aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-Digest-SHA-PurePerl
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2009-03-29 04:45:10 +0800
committerskv <skv@FreeBSD.org>2009-03-29 04:45:10 +0800
commit0845a9092be27f06f835de5f7ab85a6ad1f99157 (patch)
tree893a11ba9c38666479720f77b2a35d21e8b42f6c /security/p5-Digest-SHA-PurePerl
parent6ec98793d23a422c2da73eeb226c51d29415ccc7 (diff)
downloadfreebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.tar.gz
freebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.tar.zst
freebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.zip
Introduce Perl 5.10.0
Diffstat (limited to 'security/p5-Digest-SHA-PurePerl')
-rw-r--r--security/p5-Digest-SHA-PurePerl/Makefile13
-rw-r--r--security/p5-Digest-SHA-PurePerl/pkg-plist2
2 files changed, 13 insertions, 2 deletions
diff --git a/security/p5-Digest-SHA-PurePerl/Makefile b/security/p5-Digest-SHA-PurePerl/Makefile
index 27c9f25dc0dd..43f586ca6aa8 100644
--- a/security/p5-Digest-SHA-PurePerl/Makefile
+++ b/security/p5-Digest-SHA-PurePerl/Makefile
@@ -14,7 +14,6 @@ COMMENT= Perl extension for SHA-1/224/256/384/512 in pure Perl
PERL_CONFIGURE= yes
-MAN1= shasum.1
MAN3= Digest::SHA::PurePerl.3
.include <bsd.port.pre.mk>
@@ -27,6 +26,18 @@ RUN_DEPENDS+= ${SITE_PERL}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
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:
@${MKDIR} ${EXAMPLESDIR}
diff --git a/security/p5-Digest-SHA-PurePerl/pkg-plist b/security/p5-Digest-SHA-PurePerl/pkg-plist
index f5970d2061b8..dc5712fcf580 100644
--- a/security/p5-Digest-SHA-PurePerl/pkg-plist
+++ b/security/p5-Digest-SHA-PurePerl/pkg-plist
@@ -1,4 +1,4 @@
-bin/shasum
+%%EXE_FILES%%bin/shasum
%%SITE_PERL%%/Digest/SHA/PurePerl.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/PurePerl/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/PurePerl/