-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.PL
105 lines (87 loc) · 3.6 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#! perl -w
use strict ;
require 5.006 ;
use lib '.';
use private::MakeUtil;
use ExtUtils::MakeMaker 5.16 ;
my $ParentVersion = 2.213 ;
# Check if th eother IO::Compress::* modules are installed.
# If any are, add to PREREQ_PM.
my %extra_prereq = ();
$extra_prereq{'IO::Compress::Lzma'} = $ParentVersion
if eval { require IO::Compress::Lzma; 1 } ;
$extra_prereq{'IO::Compress::Bzip2'} = $ParentVersion
if eval { require IO::Compress::Bzip2; 1 } ;
$extra_prereq{'IO::Compress::Xz'} = $ParentVersion
if eval { require IO::Compress::Xz; 1 } ;
$extra_prereq{'IO::Compress::Zstd'} = $ParentVersion
if eval { require IO::Compress::Zstd; 1 } ;
WriteMakefile(
NAME => 'Archive::Zip::SimpleZip',
VERSION_FROM => 'lib/Archive/Zip/SimpleZip.pm',
'dist' => { COMPRESS => 'gzip',
TARFLAGS => '-chvf',
SUFFIX => 'gz',
DIST_DEFAULT => 'MyTrebleCheck tardist',
},
PREREQ_PM => {
'IO::Compress::Base' => $ParentVersion,
'IO::Uncompress::Base' => $ParentVersion,
'Perl::OSType' => 0,
%extra_prereq,
} ,
( $] >= 5.005
? (ABSTRACT => 'Read and Write Zip Archives',
AUTHOR => 'Paul Marquess <pmqs@cpan.org>')
: ()
),
( eval { ExtUtils::MakeMaker->VERSION(6.31) }
? ('LICENSE' => 'perl')
: ()
),
( eval { ExtUtils::MakeMaker->VERSION(6.46) }
? ( META_MERGE => {
"meta-spec" => { version => 2 },
no_index => {
directory => [ 't', 'private' ],
},
resources => {
bugtracker => {
web => 'https://github.com/pmqs/Archive-Zip-SimpleZip/issues'
},
homepage => 'https://github.com/pmqs/Archive-Zip-SimpleZip',
repository => {
type => 'git',
url => 'git://github.com/pmqs/Archive-Zip-SimpleZip.git',
web => 'https://github.com/pmqs/Archive-Zip-SimpleZip',
},
},
prereqs => {
runtime => {
requires => {
'IO::Compress::Base' => $ParentVersion,
'IO::Uncompress::Base' => $ParentVersion,
'IO::Compress::Zip' => $ParentVersion,
'IO::Uncompress::Unzip' => $ParentVersion,
'IO::Compress::RawDeflate' => $ParentVersion,
'IO::Uncompress::RawInflate'=> $ParentVersion,
'Perl::OSType' => 0,
},
recommends => {
'IO::Compress::Lzma' => $ParentVersion,
'IO::Uncompress::UnLzma' => $ParentVersion,
'IO::Compress::Zstd' => $ParentVersion,
'IO::Uncompress::UnZstd' => $ParentVersion,
'IO::Compress::Bzip2' => $ParentVersion,
'IO::Uncompress::Bunzip2' => $ParentVersion,
'IO::Compress::Xz' => $ParentVersion,
'IO::Uncompress::UnXz' => $ParentVersion,
},
},
},
}
)
: ()
),
) ;
# end of file Makefile.PL