Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 13:54:08 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clsung@FreeBSD.org
Subject:   ports/167142: [PATCH] devel/p5-MetaCPAN-API: fix *_DEPENDS
Message-ID:  <3VZNRN4hcSz8ww@sunpoet.net>
Resent-Message-ID: <201204210600.q3L60BdE066804@freefall.freebsd.org>

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

>Number:         167142
>Category:       ports
>Synopsis:       [PATCH] devel/p5-MetaCPAN-API: fix *_DEPENDS
>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 Apr 21 06:00:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD bonjour.sunpoet.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Mar 19 09:07:46 CST 2012
>Description:
- Fix *_DEPENDS: p5-HTTP-Tiny is in core since Perl 5.13.9 (check PERL_LEVEL against 501400)
- Bump PORTREVISION for dependency change

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

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

--- p5-MetaCPAN-API-0.42_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/p5-MetaCPAN-API/Makefile,v
retrieving revision 1.4
diff -u -u -r1.4 Makefile
--- Makefile	13 Mar 2012 16:14:56 -0000	1.4
+++ Makefile	21 Apr 2012 05:55:09 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	MetaCPAN-API
 PORTVERSION=	0.42
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:XSAWYERX
@@ -16,7 +17,6 @@
 COMMENT=	A comprehensive, DWIM-featured API to MetaCPAN
 
 BUILD_DEPENDS=	p5-Any-Moose>=0:${PORTSDIR}/devel/p5-Any-Moose \
-		p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny \
 		p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
 		p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
 		p5-URI>=0:${PORTSDIR}/net/p5-URI
@@ -38,4 +38,11 @@
 	cd ${WRKSRC} && ${PERL5} ${PL_BUILD} test
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+BUILD_DEPENDS+=	p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny
+RUN_DEPENDS+=	p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny
+.endif
+
+.include <bsd.port.post.mk>
--- p5-MetaCPAN-API-0.42_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?3VZNRN4hcSz8ww>