ports/171428: [PATCH] devel/p5-Parse-CPAN-Meta: fix *_DEPENDS for perl5.16

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Sep 8 00:30:02 UTC 2012


>Number:         171428
>Category:       ports
>Synopsis:       [PATCH] devel/p5-Parse-CPAN-Meta: fix *_DEPENDS for perl5.16
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 08 00:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD bonjour.sunpoet.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sun Sep  2 03:56:34 CST
>Description:
- Fix *_DEPENDS: p5-JSON-PP >= 2.27200 is already in Perl 5.16.0+

Port maintainer (lth at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- p5-Parse-CPAN-Meta-1.44.04.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 303847)
+++ Makefile	(working copy)
@@ -16,13 +16,18 @@
 MAINTAINER=	lth at FreeBSD.org
 COMMENT=	Parse META.yml and other similar CPAN metadata files
 
-BUILD_DEPENDS=	p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
-		p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
-RUN_DEPENDS=	p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
-		p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
+BUILD_DEPENDS=	p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML
+RUN_DEPENDS=	p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML
 
 PERL_CONFIGURE=	yes
 
 MAN3=		Parse::CPAN::Meta.3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501600
+BUILD_DEPENDS+=	p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
+RUN_DEPENDS+=	p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP
+.endif
+
+.include <bsd.port.post.mk>
--- p5-Parse-CPAN-Meta-1.44.04.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list