-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.PL
93 lines (89 loc) · 2.48 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
use strict;
use warnings;
use ExtUtils::MakeMaker 6.64; # 6.64 for TEST_REQUIRES
use File::Spec 3.4;
my $tmpdir = File::Spec->tmpdir();
if(!-w $tmpdir) {
print STDERR "NA: Your temporary directory '$tmpdir' isn't writable, fix your configuration and try again";
exit(0);
}
my $dist = {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz'
};
if($^O eq 'darwin') {
$dist->{'TAR'} = 'gtar';
}
WriteMakefile(
NAME => 'CGI::Info',
AUTHOR => q{Nigel Horne <[email protected]>},
VERSION_FROM => 'lib/CGI/Info.pm',
ABSTRACT_FROM => 'lib/CGI/Info.pm',
((defined($ExtUtils::MakeMaker::VERSION) && ($ExtUtils::MakeMaker::VERSION >= 6.3002))
? ('LICENSE'=> 'GPL')
: ()),
'LIBS' => [''], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
PL_FILES => {},
TEST_REQUIRES => {
'LWP::UserAgent' => 0,
'JSON::PP' => 4.02, # Fix http://www.cpantesters.org/cpan/report/78a1401c-42de-11e9-bf31-80c71e9d5857
'Test::Carp' => 0,
'Test::Compile' => 0,
'Test::DescribeMe' => 0,
'Test::Most' => 0,
'Test::Needs' => 0,
'Test::NoWarnings' => 0,
'Test::Script' => 1.12,
'Test::CleanNamespaces' => 0,
# 'Test::Kwalitee' => 0,
'autodie' => 0,
'strict' => 0,
'warnings' => 0,
'IPC::System::Simple' => 0,
'Taint::Runtime' => 0,
'Test::Warn' => 0,
'Tie::Filehandle::Preempt::Stdin' => 0,
}, PREREQ_PM => {
'Carp' => 0,
'Scalar::Util' => 0,
'URI::Heuristic' => 0,
# 'Sub::Private' => 0,
'Sys::Hostname' => 0,
'File::Spec' => 3.4,
'Cwd' => 0,
'Socket' => 0,
'List::MoreUtils' => 0,
'HTTP::BrowserDetect' => 3.10, # Include bingbot
'File::Basename' => 0,
'String::Clean::XSS' => 0,
'Log::Any' => 0,
'JSON::MaybeXS' => 0,
# 'String::EscapeCage' => 0.02,
'Class::Autouse' => 0,
'namespace::clean' => 0,
'Sys::Path' => 0
}, dist => $dist,
clean => { FILES => 'CGI-Info-*' },
# META_ADD => {
# provides => {}
# },
META_MERGE => { # https://perldoc.perl.org/CPAN::Meta::Spec
'meta-spec' => { version => 2 },
resources => {
repository => {
repository => 'https://github.com/nigelhorne/CGI-Info',
type => 'git',
url => 'git://github.com/nigelhorne/CGI-Info.git',
web => 'https://github.com/nigelhorne/CGI-Info'
}, bugtracker => {
mailto => '[email protected]',
url => 'https://github.com/nigelhorne/CGI-Info/issues',
# web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Info',
web => 'https://github.com/nigelhorne/CGI-Info/issues'
}
},
},
MIN_PERL_VERSION => '5.008'
);