e69b3cc982
"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@
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
$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') ) {
|