From 8466e166a9e201ea8de337bb2b4bd15e7d3629bf Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Sun, 18 Jan 2015 10:55:54 +0000 Subject: [PATCH] New port: www/p5-Test-LWP-UserAgent LWP::UserAgent suitable for simulating and testing network calls. It overrides a few key low-level methods of LWP::UserAgent that are concerned with actually sending your request over the network, allowing an interception of that request and simulating a particular response. This greatly facilitates testing of client networking code where the server follows a known protocol. WWW: http://search.cpan.org/dist/Test-LWP-UserAgent/ --- www/Makefile | 1 + www/p5-Test-LWP-UserAgent/Makefile | 34 +++++++++++++++++++++++++++++ www/p5-Test-LWP-UserAgent/distinfo | 2 ++ www/p5-Test-LWP-UserAgent/pkg-descr | 9 ++++++++ www/p5-Test-LWP-UserAgent/pkg-plist | 4 ++++ 5 files changed, 50 insertions(+) create mode 100644 www/p5-Test-LWP-UserAgent/Makefile create mode 100644 www/p5-Test-LWP-UserAgent/distinfo create mode 100644 www/p5-Test-LWP-UserAgent/pkg-descr create mode 100644 www/p5-Test-LWP-UserAgent/pkg-plist diff --git a/www/Makefile b/www/Makefile index d7ba20708667..57045a150727 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1193,6 +1193,7 @@ SUBDIR += p5-Tenjin SUBDIR += p5-Test-HTTP SUBDIR += p5-Test-HTTP-Server-Simple + SUBDIR += p5-Test-LWP-UserAgent SUBDIR += p5-Test-Nginx SUBDIR += p5-TestGen4Web-Runner SUBDIR += p5-Text-MultiMarkdown-ApacheHandler diff --git a/www/p5-Test-LWP-UserAgent/Makefile b/www/p5-Test-LWP-UserAgent/Makefile new file mode 100644 index 000000000000..983d0e751153 --- /dev/null +++ b/www/p5-Test-LWP-UserAgent/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= Test-LWP-UserAgent +PORTVERSION= 0.026 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= pi@FreeBSD.org +COMMENT= LWP::UserAgent suitable for simulating and testing network calls + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ + p5-URI>=0:${PORTSDIR}/net/p5-URI \ + p5-namespace-clean>=0:${PORTSDIR}/devel/p5-namespace-clean \ + p5-HTTP-Date>=0:${PORTSDIR}/www/p5-HTTP-Date \ + p5-Safe-Isa>=0:${PORTSDIR}/devel/p5-Safe-Isa \ + p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny +RUN_DEPENDS:= ${BUILD_DEPENDS} +TEST_DEPENDS= p5-ExtUtils-MakeMaker>=0:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker \ + p5-Plack>=0:${PORTSDIR}/www/p5-Plack \ + p5-Path-Tiny>=0:${PORTSDIR}/devel/p5-Path-Tiny \ + p5-Test-Deep>=0:${PORTSDIR}/devel/p5-Test-Deep \ + p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \ + p5-Test-Simple>=0:${PORTSDIR}/devel/p5-Test-Simple \ + p5-Test-Requires>=0:${PORTSDIR}/devel/p5-Test-Requires \ + p5-Test-Warnings>=0:${PORTSDIR}/devel/p5-Test-Warnings + +USE_PERL5= configure +USES= perl5 + +.include diff --git a/www/p5-Test-LWP-UserAgent/distinfo b/www/p5-Test-LWP-UserAgent/distinfo new file mode 100644 index 000000000000..6c989a631468 --- /dev/null +++ b/www/p5-Test-LWP-UserAgent/distinfo @@ -0,0 +1,2 @@ +SHA256 (Test-LWP-UserAgent-0.026.tar.gz) = 36ced207f85fb7b8d1b3207a2283e45b3a3a1b7af6975ff69e8ffe4322d3258b +SIZE (Test-LWP-UserAgent-0.026.tar.gz) = 41968 diff --git a/www/p5-Test-LWP-UserAgent/pkg-descr b/www/p5-Test-LWP-UserAgent/pkg-descr new file mode 100644 index 000000000000..1f7170a453f3 --- /dev/null +++ b/www/p5-Test-LWP-UserAgent/pkg-descr @@ -0,0 +1,9 @@ +LWP::UserAgent suitable for simulating and testing network calls. + +It overrides a few key low-level methods of LWP::UserAgent that are +concerned with actually sending your request over the network, +allowing an interception of that request and simulating a particular +response. This greatly facilitates testing of client networking +code where the server follows a known protocol. + +WWW: http://search.cpan.org/dist/Test-LWP-UserAgent/ diff --git a/www/p5-Test-LWP-UserAgent/pkg-plist b/www/p5-Test-LWP-UserAgent/pkg-plist new file mode 100644 index 000000000000..59c06fab6e70 --- /dev/null +++ b/www/p5-Test-LWP-UserAgent/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/Test/LWP/UserAgent.pm +%%SITE_PERL%%/Test/LWP/advent_2012.pod +%%PERL5_MAN3%%/Test::LWP::UserAgent.3.gz +%%PERL5_MAN3%%/Test::LWP::advent_2012.3.gz