svn commit: r313756 - head/security/p5-Digest-SHA-PurePerl
Ashish SHUKLA
ashish at FreeBSD.org
Sat Mar 9 21:22:53 UTC 2013
Author: ashish
Date: Sat Mar 9 21:22:52 2013
New Revision: 313756
URL: http://svnweb.freebsd.org/changeset/ports/313756
Log:
- Remove support for Perl < 5.12
- Convert to OptionsNG
- Use PORTEXAMPLES
- Convert Makefile headers to new style
PR: ports/176267
Submitted by: Alex Kozlov <spam at rm-rf.kiev.ua>
Modified:
head/security/p5-Digest-SHA-PurePerl/Makefile
head/security/p5-Digest-SHA-PurePerl/pkg-plist
Modified: head/security/p5-Digest-SHA-PurePerl/Makefile
==============================================================================
--- head/security/p5-Digest-SHA-PurePerl/Makefile Sat Mar 9 21:02:26 2013 (r313755)
+++ head/security/p5-Digest-SHA-PurePerl/Makefile Sat Mar 9 21:22:52 2013 (r313756)
@@ -1,6 +1,4 @@
-# Ports collection Makefile for: p5-Digest-SHA-PurePerl
-# Date created: 21 Dec, 2005
-# Whom: Gabor Kovesdan
+# Created by: Gabor Kovesdan <gabor at FreeBSD.org>
# $FreeBSD$
PORTNAME= Digest-SHA-PurePerl
@@ -14,30 +12,19 @@ COMMENT= Perl extension for SHA-1/224/25
PERL_CONFIGURE= yes
-MAN3= Digest::SHA::PurePerl.3
+PORTEXAMPLES= dups
+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
+.include <bsd.port.options.mk>
post-patch:
-.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
-.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
post-install:
@${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/dups ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}
+
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/security/p5-Digest-SHA-PurePerl/pkg-plist
==============================================================================
--- head/security/p5-Digest-SHA-PurePerl/pkg-plist Sat Mar 9 21:02:26 2013 (r313755)
+++ head/security/p5-Digest-SHA-PurePerl/pkg-plist Sat Mar 9 21:22:52 2013 (r313756)
@@ -1,4 +1,3 @@
-%%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/
@@ -6,5 +5,3 @@
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/
@dirrmtry %%SITE_PERL%%/Digest/SHA/
@dirrmtry %%SITE_PERL%%/Digest/
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dups
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
More information about the svn-ports-head
mailing list