1use strict;
2
3BEGIN {
4    require 5.004;
5}
6
7use Config;
8use ExtUtils::MakeMaker;
9
10WriteMakefile1(
11    #BUILD_REQUIRES => {
12    #},
13
14    META_MERGE => {
15        'meta-spec' => { version => 2 },
16        dynamic_config => 0,
17        resources => {
18            repository => {
19                url => 'https://github.com/redhotpenguin/perl-Archive-Zip.git',
20                web => 'https://github.com/redhotpenguin/perl-Archive-Zip',
21                type => 'git',
22            },
23            bugtracker => {
24                web => 'https://github.com/redhotpenguin/perl-Archive-Zip/issues',
25            },
26        },
27    },
28    NAME         => 'Archive::Zip',
29    VERSION_FROM => 'lib/Archive/Zip.pm',
30    macro        => { TARFLAGS => "--format=ustar -c -v -f", },
31    EXE_FILES    => ['script/crc32'],
32    PREREQ_PM    => {
33        'Compress::Raw::Zlib' => '2.017',
34
35        # 'Data::Dumper'      => 0,      # examples/zipinfo.pl
36        'File::Path'     => 0,
37        'File::Find'     => 0,
38        'File::Basename' => 0,
39        'File::Spec'     => '0.80',    # need splitpath()
40        'File::Copy'     => 0,
41        'File::Temp'     => 0,
42
43        # 'File::Which'       => '0.05', # Embedded in common.pl
44        # 'Getopt::Std'       => 0,      # examples/extract.pl
45        'IO::File'     => 0,
46        'IO::Handle'   => 0,
47        'IO::Seekable' => 0,
48        'Time::Local'  => 0,
49        'Encode'       => 0,
50    },
51    TEST_REQUIRES => {
52        'Test::More' => '0.88',
53    },
54    clean => {
55        FILES => 'testdir',
56    },
57    dist => {
58        COMPRESS => 'gzip',
59        SUFFIX   => '.gz',
60        ZIP      => 'zip',
61        ZIPFLAGS => '-r'
62    },
63    LICENSE          => 'perl',
64    MIN_PERL_VERSION => 5.006,
65    BINARY_LOCATION  => $Config{'archname'} . "/\$(DISTVNAME)-PPD.tar\$(SUFFIX)",
66    AUTHOR           => 'Ned Konz <perl@bike-nomad.com>',
67    ABSTRACT_FROM    => 'lib/Archive/Zip.pm',
68);
69
70
71sub WriteMakefile1 {  #Compatibility code for old versions of EU::MM. Written by Alexandr Ciornii, version 0.23. Added by eumm-upgrade.
72    my %params=@_;
73    my $eumm_version=$ExtUtils::MakeMaker::VERSION;
74    $eumm_version=eval $eumm_version;
75    die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
76    die "License not specified" if not exists $params{LICENSE};
77    if ($params{AUTHOR} and ref($params{AUTHOR}) eq 'ARRAY' and $eumm_version < 6.5705) {
78        $params{META_ADD}->{author}=$params{AUTHOR};
79        $params{AUTHOR}=join(', ',@{$params{AUTHOR}});
80    }
81    if ($params{TEST_REQUIRES} and $eumm_version < 6.64) {
82        $params{BUILD_REQUIRES}={ %{$params{BUILD_REQUIRES} || {}} , %{$params{TEST_REQUIRES}} };
83        delete $params{TEST_REQUIRES};
84    }
85    if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
86        #EUMM 6.5502 has problems with BUILD_REQUIRES
87        $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
88        delete $params{BUILD_REQUIRES};
89    }
90    delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
91    delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
92    delete $params{META_MERGE} if $eumm_version < 6.46;
93    delete $params{META_ADD} if $eumm_version < 6.46;
94    delete $params{LICENSE} if $eumm_version < 6.31;
95
96    WriteMakefile(%params);
97}
98
99