| 1 |
|
| 2 |
use inc::Module::Install; |
| 3 |
include 'Module::AutoInstall'; |
| 4 |
|
| 5 |
version(3.056); |
| 6 |
all_from('lib/WWW/Search/Ebay.pm'); |
| 7 |
|
| 8 |
requires(perl => 5.005); |
| 9 |
test_requires('Bit::Vector'); |
| 10 |
requires('Date::Manip'); |
| 11 |
# requires('DateTime::TimeZone'); |
| 12 |
test_requires('Date::Manip'); |
| 13 |
requires('HTML::TreeBuilder'); |
| 14 |
test_requires('IO::Capture::Stderr'); |
| 15 |
requires('LWP::Simple'); |
| 16 |
# Test::More is needed for `make test`: |
| 17 |
test_requires('Test::More'); |
| 18 |
# We need the version where approximate_result_count() can return undef: |
| 19 |
requires('WWW::Search' => 2.566); |
| 20 |
# We need the version that has the bidder and seller methods: |
| 21 |
requires('WWW::SearchResult' => 2.067); |
| 22 |
# We need the version of WWW::Search::Test that checks for undefined approximate result count: |
| 23 |
test_requires('WWW::Search::Test' => 2.294); |
| 24 |
|
| 25 |
author_tests('xt'); |
| 26 |
|
| 27 |
my $ret = <<'PART0'; |
| 28 |
coverage : |
| 29 |
$(RM_RF) cover_db/* |
| 30 |
$(MAKE) HARNESS_PERL_SWITCHES=-MDevel::Cover test |
| 31 |
cover |
| 32 |
PART0 |
| 33 |
postamble $ret; |
| 34 |
|
| 35 |
use Env; |
| 36 |
if ($ENV{MTHURN_PERL_DEV}) |
| 37 |
{ |
| 38 |
warn "DDD This is author's development environment\n"; |
| 39 |
use_ptar(); |
| 40 |
} # if |
| 41 |
|
| 42 |
WriteAll; |
| 43 |
|
| 44 |
if (0 && $ENV{MTHURN_PERL_DEV}) |
| 45 |
{ |
| 46 |
my $sFnameMakefile = q{Makefile}; |
| 47 |
eval "use File::Slurp"; |
| 48 |
my $s = read_file($sFnameMakefile); |
| 49 |
if ($s !~ s/(DIRFILESEP\s*=\s*).+$/$1\//m) |
| 50 |
{ |
| 51 |
warn " EEE did not find DIRFILESEP in Makefile\n"; |
| 52 |
} # if |
| 53 |
if ($s !~ s/(pm_to_blib\()\{\{\@ARGV\}\}/$1 . '{@ARGV}'/e) |
| 54 |
{ |
| 55 |
warn " EEE did not find pm_to_blib@ARGV in Makefile\n"; |
| 56 |
} # if |
| 57 |
if ($s !~ s/(from_to\s+=>\s+)\{\{\@ARGV\}\}/$1 . '{@ARGV}'/e) |
| 58 |
{ |
| 59 |
warn " EEE did not find from_to@ARGV in Makefile\n"; |
| 60 |
} # if |
| 61 |
write_file($sFnameMakefile, $s); |
| 62 |
} # if |
| 63 |
|
| 64 |
__END__ |
| 65 |
|