ports/141178: [PATCH] www/p5-Test-HTTP: patch for utf8 URI

Yen-Ming Lee leeym at FreeBSD.org
Fri Dec 4 23:10:02 UTC 2009


>Number:         141178
>Category:       ports
>Synopsis:       [PATCH] www/p5-Test-HTTP: patch for utf8 URI
>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:   Fri Dec 04 23:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 7.2-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD cn1.leeym.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009
>Description:
- simplify dependencies
- encode_utf8($uri) only when needed
- bump PORTREVISION

Added file(s):
- files/patch-lib__Test__HTTP.pm

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

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

--- p5-Test-HTTP-0.14_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/p5-Test-HTTP/Makefile,v
retrieving revision 1.3
diff -u -d -b -w -u -r1.3 Makefile
--- Makefile	26 Nov 2008 11:24:10 -0000	1.3
+++ Makefile	4 Dec 2009 23:04:38 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	Test-HTTP
 PORTVERSION=	0.14
+PORTREVISION=	1
 CATEGORIES=	www perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -14,15 +15,15 @@
 MAINTAINER=	skv at FreeBSD.org
 COMMENT=	Test HTTP interactions
 
-BUILD_DEPENDS=	${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
-		${SITE_PERL}/Text/Balanced.pm:${PORTSDIR}/textproc/p5-Text-Balanced \
-		${SITE_PERL}/Filter/Simple.pm:${PORTSDIR}/textproc/p5-Filter-Simple \
-		${SITE_PERL}/Class/Field.pm:${PORTSDIR}/devel/p5-Class-Field \
-		${SITE_PERL}/Test/Builder/Module.pm:${PORTSDIR}/devel/p5-Test-Simple
-RUN_DEPENDS=	${BUILD_DEPENDS}
+RUN_DEPENDS=	p5-Class-Field>=0:${PORTSDIR}/devel/p5-Class-Field \
+		p5-libwww>=0:${PORTSDIR}/www/p5-libwww
+BUILD_DEPENDS=	${RUN_DEPENDS}
 
 PERL_CONFIGURE=	YES
 
 MAN3=		Test::HTTP.3 Test::HTTP::Syntax.3
 
+post-patch:
+	@${FIND} ${WRKSRC} -name "*.orig" -delete
+
 .include <bsd.port.mk>
Index: files/patch-lib__Test__HTTP.pm
===================================================================
RCS file: files/patch-lib__Test__HTTP.pm
diff -N files/patch-lib__Test__HTTP.pm
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-lib__Test__HTTP.pm	4 Dec 2009 23:04:38 -0000
@@ -0,0 +1,11 @@
+--- lib/Test/HTTP.pm.orig	2009-12-04 12:44:29.000000000 -0800
++++ lib/Test/HTTP.pm	2009-12-04 12:45:12.000000000 -0800
+@@ -234,7 +234,7 @@
+ sub new_request {
+     my ( $self, $method, $uri, @args ) = @_;
+     $self->request(
+-        HTTP::Request->new( $method => encode_utf8($uri), @args ) );
++        HTTP::Request->new( $method => (is_utf8($uri) ? encode_utf8($uri) : $uri), @args ) );
+     $self->request->authorization_basic($self->username, $self->password)
+         if (defined $self->username) || (defined $self->password);
+     return $self->request;
--- p5-Test-HTTP-0.14_1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list