From f3a28dc8eabe66c5f1daa7591f9fc16c33dbca59 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sat, 21 Apr 2012 11:43:18 +0000 Subject: - New depends added in previous commit are actually test depends. - Two tests are failed when $ENV{HTTP_TIMEOUT} and $ENV{HTTP_PROXY} is defined. Fix them. --- www/p5-HTTP-Engine/Makefile | 28 ++++++++++++---------- .../files/patch-request-as_http_request.t | 12 ++++++++++ www/p5-HTTP-Engine/files/patch-request-as_string.t | 12 ++++++++++ 3 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 www/p5-HTTP-Engine/files/patch-request-as_http_request.t create mode 100644 www/p5-HTTP-Engine/files/patch-request-as_string.t (limited to 'www/p5-HTTP-Engine') diff --git a/www/p5-HTTP-Engine/Makefile b/www/p5-HTTP-Engine/Makefile index d2e9ee9383e0..c7b53c36dc52 100644 --- a/www/p5-HTTP-Engine/Makefile +++ b/www/p5-HTTP-Engine/Makefile @@ -7,7 +7,7 @@ PORTNAME= HTTP-Engine PORTVERSION= 0.03005 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -15,19 +15,21 @@ PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org COMMENT= Perl extension for HTTP Server Engine Drivers -BUILD_DEPENDS= p5-Any-Moose>=0.13:${PORTSDIR}/devel/p5-Any-Moose \ - p5-CGI-Simple>=1.103:${PORTSDIR}/www/p5-CGI-Simple \ - p5-Filter>0:${PORTSDIR}/devel/p5-Filter \ - p5-HTTP-Body>=1.05:${PORTSDIR}/www/p5-HTTP-Body \ - p5-HTTP-Headers-Fast>=0.11:${PORTSDIR}/www/p5-HTTP-Headers-Fast \ - p5-HTTP-Request-AsCGI>0:${PORTSDIR}/www/p5-HTTP-Request-AsCGI \ - p5-HTTP-Server-Simple>=0.35:${PORTSDIR}/www/p5-HTTP-Server-Simple \ - p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \ - p5-Mouse>=0.62:${PORTSDIR}/devel/p5-Moose \ - p5-MouseX-Types>=0.05:${PORTSDIR}/devel/p5-MouseX-Types \ - p5-URI>=1.36:${PORTSDIR}/net/p5-URI \ - p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML +BUILD_DEPENDS= \ + p5-Any-Moose>=0.13:${PORTSDIR}/devel/p5-Any-Moose \ + p5-CGI-Simple>=1.103:${PORTSDIR}/www/p5-CGI-Simple \ + p5-Filter>0:${PORTSDIR}/devel/p5-Filter \ + p5-HTTP-Body>=1.05:${PORTSDIR}/www/p5-HTTP-Body \ + p5-HTTP-Headers-Fast>=0.11:${PORTSDIR}/www/p5-HTTP-Headers-Fast \ + p5-HTTP-Server-Simple>=0.35:${PORTSDIR}/www/p5-HTTP-Server-Simple \ + p5-Mouse>=0.62:${PORTSDIR}/devel/p5-Moose \ + p5-URI>=1.36:${PORTSDIR}/net/p5-URI RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= \ + p5-HTTP-Request-AsCGI>0:${PORTSDIR}/www/p5-HTTP-Request-AsCGI \ + p5-YAML>0:${PORTSDIR}/textproc/p5-YAML \ + p5-IO-stringy>0:${PORTSDIR}/devel/p5-IO-stringy \ + p5-MouseX-Types>=0.05:${PORTSDIR}/devel/p5-MouseX-Types PERL_CONFIGURE= yes diff --git a/www/p5-HTTP-Engine/files/patch-request-as_http_request.t b/www/p5-HTTP-Engine/files/patch-request-as_http_request.t new file mode 100644 index 000000000000..28fadd9b54e8 --- /dev/null +++ b/www/p5-HTTP-Engine/files/patch-request-as_http_request.t @@ -0,0 +1,12 @@ +--- t/010_core/request-as_http_request.t.orig 2012-04-21 18:30:16.644155273 +0900 ++++ t/010_core/request-as_http_request.t 2012-04-21 18:30:36.825851307 +0900 +@@ -4,6 +4,9 @@ + use HTTP::Engine::Request; + use t::Utils; + ++delete $ENV{HTTP_PROXY}; ++delete $ENV{HTTP_TIMEOUT}; ++ + test_req( gen_request()->as_http_request ); + + sub gen_request { diff --git a/www/p5-HTTP-Engine/files/patch-request-as_string.t b/www/p5-HTTP-Engine/files/patch-request-as_string.t new file mode 100644 index 000000000000..bf799ac50b3f --- /dev/null +++ b/www/p5-HTTP-Engine/files/patch-request-as_string.t @@ -0,0 +1,12 @@ +--- t/010_core/request-as_string.t.orig 2012-04-21 19:35:27.611579798 +0900 ++++ t/010_core/request-as_string.t 2012-04-21 19:35:44.449321956 +0900 +@@ -4,6 +4,9 @@ + use HTTP::Engine; + use t::Utils; + ++delete $ENV{HTTP_PROXY}; ++delete $ENV{HTTP_TIMEOUT}; ++ + test_req( gen_request() ); + + sub gen_request { -- cgit v1.2.3