From yasu@home.utahime.org  Sat Mar 18 11:41:11 2006
Return-Path: <yasu@home.utahime.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4872916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 18 Mar 2006 11:41:11 +0000 (UTC)
	(envelope-from yasu@home.utahime.org)
Received: from utahime.as.wakwak.ne.jp (utahime.as.wakwak.ne.jp [61.205.238.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D57F043D49
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 18 Mar 2006 11:41:10 +0000 (GMT)
	(envelope-from yasu@home.utahime.org)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1])
	by utahime.as.wakwak.ne.jp (Postfix) with ESMTP id 5F70EB84E;
	Sat, 18 Mar 2006 20:41:09 +0900 (JST)
Received: from eastasia.home.utahime.org (localhost.home.utahime.org [127.0.0.1])
	by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id E298BED;
	Sat, 18 Mar 2006 20:41:08 +0900 (JST)
Received: by eastasia.home.utahime.org (Postfix, from userid 1000)
	id A4D4F2D; Sat, 18 Mar 2006 20:41:08 +0900 (JST)
Message-Id: <20060318114108.A4D4F2D@eastasia.home.utahime.org>
Date: Sat, 18 Mar 2006 20:41:08 +0900 (JST)
From: KIMURA Yasuhiro <yasu@utahime.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: cyberbotx@cyberbotx.com
Subject: [PATCH] www/validator: add www/p5-CGI.pm to RUN_DEPENDS only when perl is older than 5.8.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify: cyberbotx@cyberbotx.com

>Number:         94638
>Category:       ports
>Synopsis:       [PATCH] www/validator: add www/p5-CGI.pm to RUN_DEPENDS only when perl is older than 5.8.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 18 11:50:16 GMT 2006
>Closed-Date:    Mon Mar 20 23:02:17 GMT 2006
>Last-Modified:  Mon Mar 20 23:02:17 GMT 2006
>Originator:     KIMURA Yasuhiro
>Release:        FreeBSD 6.0-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD xxxx 6.0-RELEASE-p5 FreeBSD 6.0-RELEASE-p5 #0: Thu Mar 2 04:36:25 JST 2006 xxxx i386


	
>Description:
	

	Version of bundled CGI.pm seems to pass the prerequisite when
	perl is 5.8.0 or newer. So add www/p5-CGI.pm to RUN_DEPENDS
	only if perl is older than 5.8.0.

>How-To-Repeat:
	
>Fix:

	

--- patch-www::validator begins here ---
Index: Makefile
===================================================================
RCS file: /usr1/freebsd/cvsroot/ports/www/validator/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	13 Mar 2006 01:42:45 -0000	1.6
+++ Makefile	18 Mar 2006 11:14:48 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	validator
 PORTVERSION=	0.7.2
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://validator.w3.org/dist/ \
 		http://www.cyberbotx.com/w3c-validator/
@@ -16,7 +17,6 @@
 COMMENT=	Markup Validation Service from the World Wide Web Consortium (W3C)
 
 RUN_DEPENDS=	onsgmls:${PORTSDIR}/textproc/opensp \
-		${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
 		${SITE_PERL}/Config/General.pm:${PORTSDIR}/devel/p5-Config-General \
 		${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
 		${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
@@ -110,4 +110,8 @@
 IGNORE=		requires Perl 5.6.0 or better to run
 .endif
 
+.if ${PERL_LEVEL} < 500800
+RUN_DEPENDS+=	${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
+.endif
+
 .include <bsd.port.post.mk>
--- patch-www::validator ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Mar 18 11:55:20 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94638 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sat Mar 18 18:17:17 UTC 2006 
State-Changed-Why:  
From misfiled PR ports/94641: 

Date: Sat, 18 Mar 2006 09:04:36 -0500 
From: "Naram Qashat" <cyberbotx@cyberbotx.com> 

The patch is acceptable.  Go for it. 

Naram Qashat (maintainer) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94638 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon Mar 20 23:02:09 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

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