From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 4 23:10:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 241431065676 for ; Fri, 4 Dec 2009 23:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DCE498FC15 for ; Fri, 4 Dec 2009 23:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB4NA19B044525 for ; Fri, 4 Dec 2009 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB4NA1e0044524; Fri, 4 Dec 2009 23:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 4 Dec 2009 23:10:01 GMT Resent-Message-Id: <200912042310.nB4NA1e0044524@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yen-Ming Lee Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B361106566C; Fri, 4 Dec 2009 23:05:34 +0000 (UTC) (envelope-from leeym@cn1.leeym.com) Received: from cn1.leeym.com (b06s56le.corenetworks.net [64.85.165.237]) by mx1.freebsd.org (Postfix) with ESMTP id 220268FC14; Fri, 4 Dec 2009 23:05:33 +0000 (UTC) Received: from cn1.leeym.com (localhost [127.0.0.1]) by cn1.leeym.com (8.14.2/8.14.2) with ESMTP id nB4N5Xmt050038; Fri, 4 Dec 2009 15:05:33 -0800 (PST) (envelope-from leeym@cn1.leeym.com) Received: (from leeym@localhost) by cn1.leeym.com (8.14.3/8.14.3/Submit) id nB4N5X4w050037; Fri, 4 Dec 2009 15:05:33 -0800 (PST) (envelope-from leeym) Message-Id: <200912042305.nB4N5X4w050037@cn1.leeym.com> Date: Fri, 4 Dec 2009 15:05:33 -0800 (PST) From: Yen-Ming Lee To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: skv@FreeBSD.org Subject: ports/141178: [PATCH] www/p5-Test-HTTP: patch for utf8 URI X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 23:10:02 -0000 >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@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@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 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: