update p5-WWW-Curl to a non-ancient version and extend DESCR.
(this is a fast www module for Perl; it's an XS binding to libcurl).
This commit is contained in:
parent
8094f0cd34
commit
a0d19f416b
@ -1,34 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.17 2011/04/25 15:01:28 jolan Exp $
|
||||
# $OpenBSD: Makefile,v 1.18 2011/06/15 13:31:44 sthen Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= perl binding for curl
|
||||
|
||||
MODULES= cpan
|
||||
DISTNAME= p5-WWW-Curl-20040519
|
||||
PKGNAME= ${DISTNAME}
|
||||
REVISION= 3
|
||||
DISTNAME= WWW-Curl-4.15
|
||||
EPOCH= 0
|
||||
CATEGORIES= www net
|
||||
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
||||
USE_GROFF = Yes
|
||||
|
||||
HOMEPAGE= http://curl.haxx.se/libcurl/perl/
|
||||
|
||||
# MIT
|
||||
# Your choice of MIT or MPL
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
WANTLIB += crypto curl>=2.2 idn ssl z
|
||||
WANTLIB += crypto curl>=2.2 idn ssl z
|
||||
|
||||
LIB_DEPENDS= net/curl
|
||||
|
||||
MAKE_ENV+= CURL_TEST_URL="http://www.openbsd.org/"
|
||||
|
||||
MODCPAN_EXAMPLES= Yes
|
||||
MODCPAN_EXAMPLES_DIR= ${PREFIX}/share/examples/p5-WWW-Curl
|
||||
|
||||
post-configure:
|
||||
@perl -pi -e s,'t/\*.t','t/new/\*.t',g ${WRKSRC}/Makefile
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (p5-WWW-Curl-20040519.tar.gz) = SYg9m6ggJeYbTaXhPS2Azg==
|
||||
RMD160 (p5-WWW-Curl-20040519.tar.gz) = AbRv10cpshEkPwmMPBVKWt+32dw=
|
||||
SHA1 (p5-WWW-Curl-20040519.tar.gz) = m28wgB8K2Wg/6jlXx9gp6PU2KZ8=
|
||||
SHA256 (p5-WWW-Curl-20040519.tar.gz) = qgOEljxqkg9FZOYsnL2UbI9v3w8cGQNoEvxOjMPVgEA=
|
||||
SIZE (p5-WWW-Curl-20040519.tar.gz) = 23568
|
||||
MD5 (WWW-Curl-4.15.tar.gz) = McC4x+Xi0mvMghPXAhhtXw==
|
||||
RMD160 (WWW-Curl-4.15.tar.gz) = uuttS8hmjY1ARhlRFun8LhZV1ZU=
|
||||
SHA1 (WWW-Curl-4.15.tar.gz) = HxabL9VbuxeD1f3IZkQga1FnjUw=
|
||||
SHA256 (WWW-Curl-4.15.tar.gz) = PvQElFN6HOf4SPO1JPVpDPR9tFjAu2YuFcRkLcE8X6E=
|
||||
SIZE (WWW-Curl-4.15.tar.gz) = 53741
|
||||
|
@ -1,22 +0,0 @@
|
||||
$OpenBSD: patch-Curl_xs,v 1.1.1.1 2004/05/21 17:21:54 jolan Exp $
|
||||
--- Curl.xs.orig 2004-04-20 08:24:18.000000000 -0500
|
||||
+++ Curl.xs 2004-05-19 10:57:20.000000000 -0500
|
||||
@@ -30,6 +30,10 @@
|
||||
#define header_callback_func writeheader_callback_func
|
||||
#endif
|
||||
|
||||
+#ifdef __CURL_MULTI_H
|
||||
+int remaining;
|
||||
+#endif
|
||||
+
|
||||
typedef enum {
|
||||
CALLBACK_WRITE = 0,
|
||||
CALLBACK_READ,
|
||||
@@ -927,7 +931,6 @@ curl_multi_perform(self)
|
||||
WWW::Curl::Multi self
|
||||
CODE:
|
||||
#ifdef __CURL_MULTI_H
|
||||
- int remaining;
|
||||
while(CURLM_CALL_MULTI_PERFORM ==
|
||||
curl_multi_perform(self->curlm, &remaining));
|
||||
while(remaining) {
|
@ -1 +1,18 @@
|
||||
WWW::Curl is a perl binding for curl.
|
||||
WWW::Curl is a thin binding on top of libcurl, to make using libcurl
|
||||
possible from Perl land. Because of this, the module is less like Perl
|
||||
and more like C in coding style.
|
||||
|
||||
There is a new module, http://search.cpan.org/perldoc?WWW::Curl::Simple,
|
||||
which wraps this module into a more Perlish and userfriendly package.
|
||||
|
||||
The standard Perl WWW module, LWP should probably be used in most cases
|
||||
to work with HTTP or FTP from Perl. However, there are some cases where
|
||||
LWP doesn't perform well. One is speed and the other is parallelism.
|
||||
WWW::Curl is much faster, uses much less CPU cycles and it's capable of
|
||||
non-blocking parallel requests.
|
||||
|
||||
In some cases, for example when building a web crawler, cpu usage and
|
||||
parallel downloads are important considerations. It can be desirable to
|
||||
use WWW::Curl to do the heavy-lifting of a large number of downloads and
|
||||
wrap the resulting data into a Perl-friendly structure by HTTP::Response
|
||||
or use WWW::Curl::Simple to do that for you.
|
||||
|
@ -1,28 +1,15 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2004/09/15 18:49:52 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.3 2011/06/15 13:31:45 sthen Exp $
|
||||
${P5ARCH}/
|
||||
@comment ${P5ARCH}/Makefile.am
|
||||
${P5ARCH}/WWW/
|
||||
${P5ARCH}/WWW/Curl/
|
||||
${P5ARCH}/WWW/Curl.pm
|
||||
${P5ARCH}/WWW/Curl/Easy.pm
|
||||
${P5ARCH}/WWW/Curl/Form.pm
|
||||
@comment ${P5ARCH}/WWW/Curl/Makefile.am
|
||||
${P5ARCH}/WWW/Curl/Multi.pm
|
||||
${P5ARCH}/WWW/Curl/easy.pm
|
||||
@comment ${P5ARCH}/WWW/Makefile.am
|
||||
${P5ARCH}/WWW/Curl/Share.pm
|
||||
${P5ARCH}/auto/
|
||||
${P5ARCH}/auto/WWW/
|
||||
${P5ARCH}/auto/WWW/Curl/
|
||||
${P5ARCH}/auto/WWW/Curl/Curl.bs
|
||||
${P5ARCH}/auto/WWW/Curl/Curl.so
|
||||
${P5ARCH}/auto/WWW/Curl/Easy/
|
||||
${P5ARCH}/auto/WWW/Curl/Easy/autosplit.ix
|
||||
@man man/man3p/WWW::Curl.3p
|
||||
@man man/man3p/WWW::Curl::Easy.3p
|
||||
@man man/man3p/WWW::Curl::Multi.3p
|
||||
@man man/man3p/WWW::Curl::easy.3p
|
||||
share/examples/p5-WWW-Curl/
|
||||
share/examples/p5-WWW-Curl/basicfirst.pl
|
||||
share/examples/p5-WWW-Curl/easy.pl
|
||||
@comment share/examples/p5-WWW-Curl/multi-threaded.pl
|
||||
share/examples/p5-WWW-Curl/multi.pl
|
||||
|
Loading…
Reference in New Issue
Block a user