Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2011 15:21:12 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lth@FreeBSD.org
Subject:   ports/160778: [PATCH] devel/p5-Parse-CPAN-Meta: set CPAN::Meta::YAML and JSON:PP as conditional dependencies
Message-ID:  <20110917072112.D63913E5E@sunpoet.net>
Resent-Message-ID: <201109170730.p8H7UAY1004775@freefall.freebsd.org>

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

>Number:         160778
>Category:       ports
>Synopsis:       [PATCH] devel/p5-Parse-CPAN-Meta: set CPAN::Meta::YAML and JSON:PP as conditional dependencies
>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 17 07:30:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Sat Jul  9 23:23:51 CST
>Description:
- Set CPAN::Meta::YAML and JSON:PP as conditional dependencies as they are bundled in Perl 5.14
- Bump PORTREVISION for dependency change

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

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- p5-Parse-CPAN-Meta-1.44.01_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/p5-Parse-CPAN-Meta/Makefile,v
retrieving revision 1.7
diff -u -u -r1.7 Makefile
--- Makefile	21 Jun 2011 06:58:11 -0000	1.7
+++ Makefile	17 Sep 2011 07:19:17 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	Parse-CPAN-Meta
 PORTVERSION=	1.44.01
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:DAGOLDEN
@@ -16,12 +17,17 @@
 MAINTAINER=	lth@FreeBSD.org
 COMMENT=	Parse META.yml and other similar CPAN metadata files
 
-BUILD_DEPENDS=	p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
-		p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
-RUN_DEPENDS=	${BUILD_DEPENDS}
-
 PERL_CONFIGURE=	yes
 
 MAN3=		Parse::CPAN::Meta.3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+BUILD_DEPENDS+=	p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
+		p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
+RUN_DEPENDS+=	p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
+		p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
+.endif
+
+.include <bsd.port.post.mk>
--- p5-Parse-CPAN-Meta-1.44.01_1.patch ends here ---

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



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