From 0f01847cbccfb31935e55ccfe2a45c8ee74072b1 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sun, 13 Jan 2013 02:22:44 +0000 Subject: [PATCH] AnyEvent::HTTP::LWP::UserAgent uses AnyEvent::HTTP inside but have an interface of LWP::UserAgent. You can safely use this module in Coro environment (and possibly in AnyEvent too). WWW: http://search.cpan.org/dist/AnyEvent-HTTP-LWP-UserAgent/ --- www/Makefile | 1 + www/p5-AnyEvent-HTTP-LWP-UserAgent/Makefile | 24 ++++++++++++++++++++ www/p5-AnyEvent-HTTP-LWP-UserAgent/distinfo | 2 ++ www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-descr | 5 ++++ www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-plist | 6 +++++ 5 files changed, 38 insertions(+) create mode 100644 www/p5-AnyEvent-HTTP-LWP-UserAgent/Makefile create mode 100644 www/p5-AnyEvent-HTTP-LWP-UserAgent/distinfo create mode 100644 www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-descr create mode 100644 www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-plist diff --git a/www/Makefile b/www/Makefile index 41f3f12d80d5..2b36749a2c88 100644 --- a/www/Makefile +++ b/www/Makefile @@ -605,6 +605,7 @@ SUBDIR += p5-Acme-Monta SUBDIR += p5-Any-Template SUBDIR += p5-AnyEvent-HTTP + SUBDIR += p5-AnyEvent-HTTP-LWP-UserAgent SUBDIR += p5-AnyEvent-HTTPD SUBDIR += p5-AnyEvent-Mojo SUBDIR += p5-AnyEvent-ReverseHTTP diff --git a/www/p5-AnyEvent-HTTP-LWP-UserAgent/Makefile b/www/p5-AnyEvent-HTTP-LWP-UserAgent/Makefile new file mode 100644 index 000000000000..23cd878ea9bc --- /dev/null +++ b/www/p5-AnyEvent-HTTP-LWP-UserAgent/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= AnyEvent-HTTP-LWP-UserAgent +PORTVERSION= 0.10 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= kuriyama@FreeBSD.org +COMMENT= Perl extension for LWP::UserAgent interface using AnyEvent::HTTP + +RUN_DEPENDS= \ + p5-AnyEvent>=5:${PORTSDIR}/devel/p5-AnyEvent \ + p5-AnyEvent-HTTP>=2.1:${PORTSDIR}/www/p5-AnyEvent-HTTP \ + p5-HTTP-Message>=0:${PORTSDIR}/www/p5-HTTP-Message \ + p5-libwww>0:${PORTSDIR}/www/p5-libwww \ + p5-libwww>=5.815:${PORTSDIR}/www/p5-libwww +BUILD_DEPENDS= ${RUN_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= AnyEvent::HTTP::LWP::UserAgent.3 + +.include diff --git a/www/p5-AnyEvent-HTTP-LWP-UserAgent/distinfo b/www/p5-AnyEvent-HTTP-LWP-UserAgent/distinfo new file mode 100644 index 000000000000..217f2be476ac --- /dev/null +++ b/www/p5-AnyEvent-HTTP-LWP-UserAgent/distinfo @@ -0,0 +1,2 @@ +SHA256 (AnyEvent-HTTP-LWP-UserAgent-0.10.tar.gz) = 0bf225f058be4b77c7a4e0401093aa245c10511b272e0d4b13be7a322a70972a +SIZE (AnyEvent-HTTP-LWP-UserAgent-0.10.tar.gz) = 15847 diff --git a/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-descr b/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-descr new file mode 100644 index 000000000000..93eab85bc50d --- /dev/null +++ b/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-descr @@ -0,0 +1,5 @@ +AnyEvent::HTTP::LWP::UserAgent uses AnyEvent::HTTP inside but have an +interface of LWP::UserAgent. You can safely use this module in Coro +environment (and possibly in AnyEvent too). + +WWW: http://search.cpan.org/dist/AnyEvent-HTTP-LWP-UserAgent/ diff --git a/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-plist b/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-plist new file mode 100644 index 000000000000..c7020d7fd081 --- /dev/null +++ b/www/p5-AnyEvent-HTTP-LWP-UserAgent/pkg-plist @@ -0,0 +1,6 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/AnyEvent/HTTP/LWP/UserAgent/.packlist +%%SITE_PERL%%/AnyEvent/HTTP/LWP/UserAgent.pm +@dirrmtry %%SITE_PERL%%/AnyEvent/HTTP/LWP +@dirrmtry %%SITE_PERL%%/AnyEvent/HTTP +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/AnyEvent/HTTP/LWP/UserAgent +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/AnyEvent/HTTP/LWP