Lines 1-56
Link Here
|
1 |
--- Makefile.PL.orig Mon Aug 18 03:35:42 2003 |
1 |
--- Makefile.PL.orig Sun Mar 28 06:06:04 2004 |
2 |
+++ Makefile.PL Fri Oct 3 11:47:30 2003 |
2 |
+++ Makefile.PL Fri May 21 13:02:17 2004 |
3 |
@@ -5,28 +5,7 @@ |
3 |
@@ -1,4 +1,3 @@ |
4 |
use constant FLAG_SKIPMECHDUMP => "t/SKIP-MECH-FORMS"; |
4 |
-require 5.6.1; |
5 |
|
5 |
use ExtUtils::MakeMaker qw( WriteMakefile prompt ); |
6 |
# Much logic stolen fromm libwww-perl's Makefile.PL |
6 |
use ExtUtils::Command qw( touch rm_f ); |
7 |
-my $skiplive = 0; |
7 |
use File::Spec; |
8 |
- |
8 |
@@ -63,7 +62,7 @@ |
9 |
-require IO::Socket; |
9 |
clean => { FILES => join( " ", FLAG_SKIPMECHDUMP, 'WWW-Mechanize-0*' ) }, |
10 |
-my $s = IO::Socket::INET->new(PeerAddr => "www.google.com:80", |
|
|
11 |
- Timeout => 10, |
12 |
- ); |
13 |
-if ($s) { |
14 |
- close($s); |
15 |
- $skiplive = 0; |
16 |
-} else { |
17 |
- print <<EOT; |
18 |
- |
19 |
-It seems that you are not directly connected to the Internet. Some |
20 |
-of the WWW::Mechanize tests interact with websites such as Google, |
21 |
-in addition to its own internal tests. |
22 |
- |
23 |
-EOT |
24 |
- |
25 |
- if ( prompt("Do you want to skip these tests?", "y") =~ /^y/i ) { |
26 |
- $skiplive = 1; |
27 |
- } |
28 |
-} # failed connect |
29 |
+my $skiplive = 1; |
30 |
|
31 |
my $tests = 't/*.t'; |
32 |
$tests .= ' t/live/*.t' unless $skiplive; |
33 |
@@ -53,17 +32,17 @@ |
34 |
'test' => { TESTS => $tests }, |
35 |
}; |
10 |
}; |
36 |
|
11 |
|
37 |
-if ( prompt( "Do you want to install the mech-dump utility?", "y" ) =~ /^y/i ) { |
12 |
-if ( prompt( "Do you want to install the mech-dump utility?", "y" ) =~ /^y/i ) { |
38 |
+#if ( prompt( "Do you want to install the mech-dump utility?", "y" ) =~ /^y/i ) { |
13 |
+if (1 or prompt( "Do you want to install the mech-dump utility?", "y" ) =~ /^y/i ) { |
39 |
$parms->{EXE_FILES} = [ 'script/mech-dump' ]; |
14 |
$parms->{EXE_FILES} = [ 'bin/mech-dump' ]; |
40 |
$parms->{PREREQ_PM}->{'Getopt::Long'} = 0; |
15 |
$parms->{PREREQ_PM}->{'Getopt::Long'} = 0; |
41 |
$parms->{PREREQ_PM}->{'Pod::Usage'} = 0; |
16 |
$parms->{PREREQ_PM}->{'Pod::Usage'} = 0; |
42 |
|
|
|
43 |
- local @ARGV = FLAG_SKIPMECHDUMP; |
44 |
+ local @ARGV = (@ARGV, FLAG_SKIPMECHDUMP); |
45 |
rm_f(); |
46 |
-} else { |
47 |
- local @ARGV = FLAG_SKIPMECHDUMP; |
48 |
- touch(); |
49 |
-} |
50 |
+#} else { |
51 |
+# local @ARGV = FLAG_SKIPMECHDUMP; |
52 |
+# touch(); |
53 |
+#} |
54 |
|
55 |
|
56 |
eval { require IO::Socket::SSL }; |