1use 5.006;
2use ExtUtils::MakeMaker;
3# See lib/ExtUtils/MakeMaker.pm for details of how to influence
4# the contents of the Makefile that is written.
5WriteMakefile1(
6    LICENSE => 'perl',
7    MIN_PERL_VERSION => '5.006',
8    META_MERGE => {
9        resources => {
10            repository => 'http://github.com/boumenot/p5-Net-Amazon',
11        },
12    },
13    #BUILD_REQUIRES => {
14    #},
15
16    'NAME'		=> 'Net::Amazon',
17    'VERSION_FROM'	=> 'lib/Net/Amazon.pm', # finds $VERSION
18    'PREREQ_PM'		=> { Log::Log4perl  => 0.30,
19                             XML::Simple    => 2.08,
20                             LWP::UserAgent => 5.814, # need HTTP::Message::decodable()
21                             Time::HiRes    => 1,
22                             Data::Dumper   => 0,
23                             URI            => 0,
24                             Digest::SHA    => 0,
25                             URI::Escape    => 0,
26                             HTTP::Message  => 0,
27                           }, # e.g., Module::Name => 1.1
28    ABSTRACT_FROM => 'lib/Net/Amazon.pm',
29    AUTHOR => 'Mike <m@perlmeister.com>',
30);
31
32sub WriteMakefile1 {  #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
33    my %params=@_;
34    my $eumm_version=$ExtUtils::MakeMaker::VERSION;
35    $eumm_version=eval $eumm_version;
36    die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
37    die "License not specified" if not exists $params{LICENSE};
38    if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
39        #EUMM 6.5502 has problems with BUILD_REQUIRES
40        $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
41        delete $params{BUILD_REQUIRES};
42    }
43    delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
44    delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
45    delete $params{META_MERGE} if $eumm_version < 6.46;
46    delete $params{META_ADD} if $eumm_version < 6.46;
47    delete $params{LICENSE} if $eumm_version < 6.31;
48    delete $params{AUTHOR} if $] < 5.005;
49    delete $params{ABSTRACT_FROM} if $] < 5.005;
50    delete $params{BINARY_LOCATION} if $] < 5.005;
51
52    WriteMakefile(%params);
53}
54
55