Date: Sat, 9 Mar 2013 21:22:52 +0000 (UTC) From: Ashish SHUKLA <ashish@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313756 - head/security/p5-Digest-SHA-PurePerl Message-ID: <201303092122.r29LMq0K013784@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303092122.r29LMq0K013784>