- simplify dependencies
- encode_utf8($uri) only when needed - bump PORTREVISION PR: ports/141178 Submitted by: leeym Approved by: maintainer timeout (skv; > 1 month)
This commit is contained in:
parent
b89ef10dab
commit
113e33a964
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247578
2 changed files with 18 additions and 6 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= Test-HTTP
|
||||
PORTVERSION= 0.14
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
@ -14,15 +15,15 @@ PKGNAMEPREFIX= p5-
|
|||
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 <bsd.port.mk>
|
||||
|
|
11
www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
Normal file
11
www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
Normal file
|
@ -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;
|
Loading…
Reference in a new issue