Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 15:39:41 GMT
From:      Alex Kozlov <spam@rm-rf.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176267: [patch] remove perl 5.10- support, various improvements
Message-ID:  <201302191539.r1JFdfU4082224@red.freebsd.org>
Resent-Message-ID: <201302191540.r1JFe6jJ092117@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176267
>Category:       ports
>Synopsis:       [patch] remove perl 5.10- support, various improvements
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 19 15:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        RELENG_9
>Organization:
private
>Environment:
>Description:
- Remove perl 5.10- support (also fixes 'Use of SITE_PERL in dependencies' item from https://wiki.freebsd.org/PortsLongtermTargets)
- Convert to OptionsNG
- Use PORTEXAMPLES
- Convert Makefile headers to new style
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: security/p5-Digest-SHA-PurePerl/Makefile
@@ -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 @@
 
 PERL_CONFIGURE=	yes
 
-MAN3=		Digest::SHA::PurePerl.3
+PORTEXAMPLES=	dups
+MAN3=	Digest::SHA::PurePerl.3
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.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)
+.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>
Index: security/p5-Digest-SHA-PurePerl/pkg-plist
@@ -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%%


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302191539.r1JFdfU4082224>