summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-04-16 21:37:30 +0000
committerminskim <minskim@pkgsrc.org>2004-04-16 21:37:30 +0000
commit4c3aa02ff68f6586354c4d4c664812a71f4becef (patch)
tree71996b8ea047dad002b7c0813e25b77585692495 /www
parent32d0becd8bb6b7df785c74c1620ce3b453f5e242 (diff)
downloadpkgsrc-4c3aa02ff68f6586354c4d4c664812a71f4becef.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/DESCR7
-rw-r--r--www/p5-WWW-Mechanize/Makefile24
-rw-r--r--www/p5-WWW-Mechanize/PLIST1
-rw-r--r--www/p5-WWW-Mechanize/distinfo5
-rw-r--r--www/p5-WWW-Mechanize/patches/patch-aa16
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;