From sunpoet@sunpoet.net  Sat Apr 21 05:55:53 2012
Return-Path: <sunpoet@sunpoet.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A4C26106564A;
	Sat, 21 Apr 2012 05:55:53 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: from sunpoet.net (sunpoet.net [220.133.12.240])
	by mx1.freebsd.org (Postfix) with ESMTP id 6E3048FC0A;
	Sat, 21 Apr 2012 05:55:53 +0000 (UTC)
Received: by sunpoet.net (Postfix, from userid 1000)
	id 3VZNRN4hcSz8ww; Sat, 21 Apr 2012 13:54:08 +0800 (CST)
Message-Id: <3VZNRN4hcSz8ww@sunpoet.net>
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: [PATCH] devel/p5-MetaCPAN-API: fix *_DEPENDS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         167142
>Category:       ports
>Synopsis:       [PATCH] devel/p5-MetaCPAN-API: fix *_DEPENDS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 21 06:00:11 UTC 2012
>Closed-Date:    Sat May 05 17:25:56 UTC 2012
>Last-Modified:  Sat May 05 17:25:56 UTC 2012
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 21 06:00:37 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167142 
Responsible-Changed-From-To: clsung->sunpoet 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Sat May 5 17:23:27 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167142 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Sat May 5 17:25:56 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167142 
>Unformatted:
