1#! perl -w
2
3use strict ;
4require 5.006 ;
5
6$::VERSION = '2.212' ;
7$::DEP_VERSION = '2.212';
8
9use lib '.';
10use private::MakeUtil;
11use ExtUtils::MakeMaker 5.16 ;
12
13UpDowngrade(getPerlFiles('MANIFEST'))
14    unless $ENV{PERL_CORE};
15
16WriteMakefile(
17    NAME         => 'IO::Compress',
18    VERSION_FROM => 'lib/IO/Compress/Base.pm',
19    'dist'       => { COMPRESS     => 'gzip',
20                      TARFLAGS     => '-chvf',
21                      SUFFIX       => 'gz',
22                      DIST_DEFAULT => 'MyTrebleCheck tardist',
23                    },
24
25    (
26      $ENV{SKIP_FOR_CORE}
27        ? ()
28	    : (PREREQ_PM   => { 'Compress::Raw::Bzip2' => $::DEP_VERSION,
29		                    'Compress::Raw::Zlib'  => $::DEP_VERSION,
30		                    'Scalar::Util'  => 0,
31                            'Encode'        => 0,
32                            'Time::Local'   => 0,
33		                    $] >= 5.005 && $] < 5.006
34                                ? ('File::BSDGlob' => 0)
35                                : () }
36	      )
37    ),
38
39    (
40    $] >= 5.005
41        ? (ABSTRACT => 'IO Interface to compressed data files/buffers',
42            AUTHOR  => 'Paul Marquess <pmqs@cpan.org>')
43        : ()
44    ),
45
46    INSTALLDIRS => ($] >= 5.009 && $] < 5.011 ? 'perl' : 'site'),
47
48    EXE_FILES => ['bin/zipdetails', 'bin/streamzip'],
49
50    (
51    $] >= 5.009 && $] <= 5.011001 && ! $ENV{PERL_CORE}
52        ? (INSTALLPRIVLIB    => '$(INSTALLARCHLIB)')
53        : ()
54    ),
55
56     ( eval { ExtUtils::MakeMaker->VERSION(6.46) }
57        ? ( META_MERGE  => {
58
59                "meta-spec" => { version => 2 },
60
61                no_index => {
62                    directory => [ 't', 'private' ],
63                },
64
65                resources   => {
66
67                    bugtracker  => {
68                        web     => 'https://github.com/pmqs/IO-Compress/issues'
69                    },
70
71                    homepage    => 'https://github.com/pmqs/IO-Compress',
72
73                    repository  => {
74                        type    => 'git',
75                        url     => 'git://github.com/pmqs/IO-Compress.git',
76                        web     => 'https://github.com/pmqs/IO-Compress',
77                    },
78                },
79              }
80            )
81        : ()
82    ),
83
84    ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
85        ('LICENSE'  => 'perl')         : ()),
86
87) ;
88
89# end of file Makefile.PL
90