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
|
use strict;
use ExtUtils::MakeMaker;
my %conf = (
NAME => 'CGI::Simple',
AUTHOR => 'Andy Armstrong <andy@hexten.net>',
VERSION_FROM => 'lib/CGI/Simple.pm',
ABSTRACT_FROM => 'lib/CGI/Simple.pm',
TEST_REQUIRES => {
'Test::More' => 0,
'Test::NoWarnings' => 0,
'Test::Exception' => 0,
'File::Temp' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'CGI-Simple-*' },
);
if (eval { ExtUtils::MakeMaker->VERSION(6.3002) }) {
$conf{LICENSE} = 'perl';
}
if (eval { ExtUtils::MakeMaker->VERSION(6.46) }) {
$conf{META_MERGE} = {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'http://github.com/manwar/CGI--Simple.git',
web => 'http://github.com/manwar/CGI--Simple',
license => 'http://dev.perl.org/licenses/',
},
},
};
}
if (!eval { ExtUtils::MakeMaker->VERSION(6.64) }) {
$conf{BUILD_REQUIRES} = {
%{ $conf{BUILD_REQUIRES} || {} },
%{ delete $conf{TEST_REQUIRES} || {} },
};
}
if (!eval { ExtUtils::MakeMaker->VERSION(6.5503) }) {
$conf{PREREQ_PM} = {
%{ $conf{PREREQ_PM} || {} },
%{ delete $conf{BUILD_REQUIRES} || {} },
};
}
WriteMakefile(%conf);
|