diff options
author | minskim <minskim> | 2004-04-16 21:37:30 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-04-16 21:37:30 +0000 |
commit | 7c902fe245e3b9af5242d8a818f2c33c40a955e4 (patch) | |
tree | 71996b8ea047dad002b7c0813e25b77585692495 /www | |
parent | c678aace727558736b92c086363deb78f09a7d05 (diff) | |
download | pkgsrc-7c902fe245e3b9af5242d8a818f2c33c40a955e4.tar.gz |
Import p5-WWW-Mechanize from pkgsrc-wip. Packaged by dieter Roelants.
"WWW::Mechanize", or Mech for short, helps you automate interaction
with a website. It supports performing a sequence of page fetches
including following links and submitting forms. Each fetched page
is parsed and its links and forms are extracted. A link or a form
can be selected, form fields can be filled and the next page can
be fetched. Mech also stores a history of the URLs you've visited,
which can be queried and revisited.
Diffstat (limited to 'www')
-rw-r--r-- | www/p5-WWW-Mechanize/DESCR | 7 | ||||
-rw-r--r-- | www/p5-WWW-Mechanize/Makefile | 24 | ||||
-rw-r--r-- | www/p5-WWW-Mechanize/PLIST | 1 | ||||
-rw-r--r-- | www/p5-WWW-Mechanize/distinfo | 5 | ||||
-rw-r--r-- | www/p5-WWW-Mechanize/patches/patch-aa | 16 |
5 files changed, 53 insertions, 0 deletions
diff --git a/www/p5-WWW-Mechanize/DESCR b/www/p5-WWW-Mechanize/DESCR new file mode 100644 index 00000000000..5fe0f74e806 --- /dev/null +++ b/www/p5-WWW-Mechanize/DESCR @@ -0,0 +1,7 @@ +"WWW::Mechanize", or Mech for short, helps you automate interaction +with a website. It supports performing a sequence of page fetches +including following links and submitting forms. Each fetched page +is parsed and its links and forms are extracted. A link or a form +can be selected, form fields can be filled and the next page can +be fetched. Mech also stores a history of the URLs you've visited, +which can be queried and revisited. diff --git a/www/p5-WWW-Mechanize/Makefile b/www/p5-WWW-Mechanize/Makefile new file mode 100644 index 00000000000..8cbfbb3756c --- /dev/null +++ b/www/p5-WWW-Mechanize/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/04/16 21:37:30 minskim Exp $ +# + +DISTNAME= WWW-Mechanize-1.02 +PKGNAME= p5-${DISTNAME} +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=WWW/} + +MAINTAINER= dieter.NetBSD@pandora.be +HOMEPAGE= http://search.cpan.org/dist/WWW-Mechanize/ +COMMENT= Automates web page form & link interaction + +DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww +DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser +DEPENDS+= p5-URI>=1.30:../../www/p5-URI + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +USE_BUILDLINK3= yes +USE_LANGUAGES= # empty +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/WWW/Mechanize/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/p5-WWW-Mechanize/PLIST b/www/p5-WWW-Mechanize/PLIST new file mode 100644 index 00000000000..b274d8d7c7b --- /dev/null +++ b/www/p5-WWW-Mechanize/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/16 21:37:30 minskim Exp $ diff --git a/www/p5-WWW-Mechanize/distinfo b/www/p5-WWW-Mechanize/distinfo new file mode 100644 index 00000000000..c2bf918f800 --- /dev/null +++ b/www/p5-WWW-Mechanize/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/04/16 21:37:30 minskim Exp $ + +SHA1 (WWW-Mechanize-1.02.tar.gz) = 839e4b36eab00a741f14d60b45703108ac93417a +Size (WWW-Mechanize-1.02.tar.gz) = 86219 bytes +SHA1 (patch-aa) = 1c72f07c8796b7f8593e7222dfd00f5c93a1c863 diff --git a/www/p5-WWW-Mechanize/patches/patch-aa b/www/p5-WWW-Mechanize/patches/patch-aa new file mode 100644 index 00000000000..3052e67fa15 --- /dev/null +++ b/www/p5-WWW-Mechanize/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/04/16 21:37:30 minskim Exp $ + +--- Makefile.PL.orig 2004-03-28 06:51:10.000000000 +0200 ++++ Makefile.PL +@@ -6,6 +6,11 @@ use strict; + + use constant FLAG_SKIPMECHDUMP => File::Spec->catfile( "t", "SKIP-MECH-DUMP" ); + ++sub prompt ($;$) { ++ my($mess,$def)=@_; ++ return $def; ++} ++ + # Much logic stolen fromm libwww-perl's Makefile.PL + my $skiplive = grep /--nolive/i, @ARGV; + my $skiplocal = grep /--nolocal/i, @ARGV; |