7 use ExtUtils::MakeMaker qw( WriteMakefile );
16 'all' => sub { print "All tests are on by default. This option is deprecated.\n" },
17 'mech-dump!' => sub { print "mech-dump is always installed now. This option is deprecated.\n" },
20 my @tests = glob File::Spec->catfile( 't', '*.t' );
21 push( @tests, glob File::Spec->catfile( 't', 'local', '*.t' ) ) if $local;
22 push( @tests, glob File::Spec->catfile( 't', 'live', '*.t' ) ) if $live;
23 push( @tests, glob File::Spec->catfile( 't', 'mech-dump', '*.t' ) );
26 NAME => 'WWW::Mechanize',
27 VERSION_FROM => 'lib/WWW/Mechanize.pm', # finds $VERSION
28 ABSTRACT_FROM => 'lib/WWW/Mechanize.pm', # retrieve abstract from module
29 AUTHOR => 'Andy Lester <andy@petdance.com>',
30 EXE_FILES => [ 'bin/mech-dump' ],
36 'HTML::Form' => 1.038,
37 'HTML::HeadParser' => 0,
38 'HTML::Parser' => 3.33,
39 'HTML::TokeParser' => 2.28,
41 'HTTP::Request' => 1.30,
44 'LWP::UserAgent' => 2.024,
51 test => { TESTS => join( ' ', @tests ) },
52 clean => { FILES => 'WWW-Mechanize-*' },
55 if ( $ExtUtils::MakeMaker::VERSION eq '6.36' ) {
56 $parms->{EXTRA_META} = <<EOF;
58 license: http://dev.perl.org/licenses/
59 homepage: http://code.google.com/p/www-mechanize/
60 bugtracker: http://code.google.com/p/www-mechanize/issues/list
61 Repository: http://code.google.com/p/www-mechanize/source
62 MailingList: http://groups.google.com/group/www-mechanize-users
67 eval { require LWP; };
69 if ( ! LWP::Protocol::implementor('https') ) {
72 It looks like you don't have SSL capability (like IO::Socket::SSL) installed.
73 You will not be able to process https:// URLs correctly.
80 my @nice = qw( Test::Pod Test::Memory::Cycle Test::Warn Test::Taint );
81 for my $nice ( @nice ) {
83 push( @missing, $nice ) if $@;
87 @missing = map { "\t$_\n" } @missing;
90 WWW::Mechanize likes to have a lot of test modules for some of its tests.
91 The following are modules that would be nice to have, but not required.
98 WriteMakefile( %$parms );
101 return <<'MAKE_FRAG';
105 ctags -f tags --recurse --totals \
109 --languages=Perl --langmap=Perl:+.t \
112 perlcritic -1 -q -profile perlcriticrc bin/ lib/ t/