use strict;
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', # Compress tarball using gzip
SUFFIX => 'gz', # File suffix for tarball
};
if($^O eq 'darwin') {
$dist->{'TAR'} = 'gtar';
}
WriteMakefile(
NAME => 'CGI::Info',
AUTHOR => q{Nigel Horne <njh@bandsman.co.uk>},
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,
'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,
'ExtUtils::MakeMaker' => 6.64, # Minimum version for TEST_REQUIRES
'Scalar::Util' => 0,
'URI::Heuristic' => 0,
# 'Sub::Private' => 0,
'Sys::Hostname' => 0,
'File::Spec' => 3.4,
'Cwd' => 0,
'Socket' => 0,
'List::Util' => 1.33,
'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-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
}, bugtracker => {
mailto => 'bug-CGI-Info@rt.cpan.org',
}
},
},
MIN_PERL_VERSION => '5.008'
);