- initial import of WWW-Mechanize-1.12
"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. ok alek@
This commit is contained in:
parent
f87e0d5ddb
commit
e69b3cc982
33
www/p5-WWW-Mechanize/Makefile
Normal file
33
www/p5-WWW-Mechanize/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/04/01 19:57:26 msf Exp $
|
||||
|
||||
COMMENT= "handy web browsing in a Perl object"
|
||||
|
||||
DISTNAME= WWW-Mechanize-1.12
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= www perl5
|
||||
|
||||
MAINTAINER= Mathieu Sauve-Frankel <msf@openbsd.org>
|
||||
|
||||
# Artistic + GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=WWW/}
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= :p5-libwww->=5.78:www/p5-libwww
|
||||
|
||||
REGRESS_DEPENDS= ::devel/p5-Test-Memory-Cycle \
|
||||
::devel/p5-Test-Pod \
|
||||
::devel/p5-Test-Pod-Coverage \
|
||||
::devel/p5-Test-Taint \
|
||||
::devel/p5-Test-Warn
|
||||
|
||||
CONFIGURE_STYLE= perl
|
||||
CONFIGURE_ARGS= --nolive
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
.include <bsd.port.mk>
|
4
www/p5-WWW-Mechanize/distinfo
Normal file
4
www/p5-WWW-Mechanize/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (WWW-Mechanize-1.12.tar.gz) = 82657389b029c42c4fdadd30f419c4ea
|
||||
RMD160 (WWW-Mechanize-1.12.tar.gz) = 1429d3b55f2b1e063d759814905277d00b0741fd
|
||||
SHA1 (WWW-Mechanize-1.12.tar.gz) = 6735fc6701d3c4f59b923a400f2778bc239eabd2
|
||||
SIZE (WWW-Mechanize-1.12.tar.gz) = 102204
|
43
www/p5-WWW-Mechanize/patches/patch-Makefile_PL
Normal file
43
www/p5-WWW-Mechanize/patches/patch-Makefile_PL
Normal file
@ -0,0 +1,43 @@
|
||||
$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2005/04/01 19:57:26 msf Exp $
|
||||
--- Makefile.PL.orig Mon Dec 20 21:10:09 2004
|
||||
+++ Makefile.PL Mon Dec 27 22:26:47 2004
|
||||
@@ -43,10 +43,12 @@ my $parms = {
|
||||
'VERSION_FROM' => 'lib/WWW/Mechanize.pm', # finds $VERSION
|
||||
'ABSTRACT_FROM' => 'lib/WWW/Mechanize.pm', # retrieve abstract from module
|
||||
'AUTHOR' => 'Andy Lester <andy@petdance.com>',
|
||||
+ 'EXE_FILES' => ['bin/mech-dump'],
|
||||
'PREREQ_PM' => {
|
||||
'Carp' => 0,
|
||||
'File::Temp' => 0,
|
||||
'FindBin' => 0,
|
||||
+ 'Getopt::Long' => 0,
|
||||
'HTML::Form' => 1.038,
|
||||
'HTML::HeadParser' => 0,
|
||||
'HTML::TokeParser' => 2.28,
|
||||
@@ -55,6 +57,7 @@ my $parms = {
|
||||
'HTTP::Status' => 0,
|
||||
'LWP' => 5.76,
|
||||
'LWP::UserAgent' => 2.024,
|
||||
+ 'Pod::Usage' => 0,
|
||||
'Test::More' => 0.34,
|
||||
'URI' => 1.25,
|
||||
'URI::URL' => 0,
|
||||
@@ -63,18 +66,6 @@ my $parms = {
|
||||
test => { TESTS => join( " ", @tests ) },
|
||||
clean => { FILES => join( " ", FLAG_SKIPMECHDUMP, 'WWW-Mechanize-0*' ) },
|
||||
};
|
||||
-
|
||||
-if ( prompt( "Do you want to install the mech-dump utility?", "y" ) =~ /^y/i ) {
|
||||
- $parms->{EXE_FILES} = [ 'bin/mech-dump' ];
|
||||
- $parms->{PREREQ_PM}->{'Getopt::Long'} = 0;
|
||||
- $parms->{PREREQ_PM}->{'Pod::Usage'} = 0;
|
||||
-
|
||||
- local @ARGV = FLAG_SKIPMECHDUMP;
|
||||
- rm_f();
|
||||
-} else {
|
||||
- local @ARGV = FLAG_SKIPMECHDUMP;
|
||||
- touch();
|
||||
-}
|
||||
|
||||
eval { require LWP; };
|
||||
if ($@ or ! LWP::Protocol::implementor('https') ) {
|
7
www/p5-WWW-Mechanize/pkg/DESCR
Normal file
7
www/p5-WWW-Mechanize/pkg/DESCR
Normal file
@ -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.
|
16
www/p5-WWW-Mechanize/pkg/PLIST
Normal file
16
www/p5-WWW-Mechanize/pkg/PLIST
Normal file
@ -0,0 +1,16 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/04/01 19:57:26 msf Exp $
|
||||
bin/mech-dump
|
||||
${P5SITE}/WWW/Mechanize/
|
||||
${P5SITE}/WWW/Mechanize.pm
|
||||
${P5SITE}/WWW/Mechanize/Cookbook.pod
|
||||
${P5SITE}/WWW/Mechanize/Examples.pod
|
||||
${P5SITE}/WWW/Mechanize/FAQ.pod
|
||||
${P5SITE}/WWW/Mechanize/Image.pm
|
||||
${P5SITE}/WWW/Mechanize/Link.pm
|
||||
@man man/man1/mech-dump.1
|
||||
@man man/man3p/WWW::Mechanize.3p
|
||||
@man man/man3p/WWW::Mechanize::Cookbook.3p
|
||||
@man man/man3p/WWW::Mechanize::Examples.3p
|
||||
@man man/man3p/WWW::Mechanize::FAQ.3p
|
||||
@man man/man3p/WWW::Mechanize::Image.3p
|
||||
@man man/man3p/WWW::Mechanize::Link.3p
|
Loading…
x
Reference in New Issue
Block a user