Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (32 sloc) 965 Bytes
use ExtUtils::MakeMaker;
my %opts = (
'NAME' => 'Class::Base',
'VERSION_FROM' => 'lib/Class/Base.pm',
'PREREQ_PM' => { },
'TEST_REQUIRES' => {
'Test::More' => 0.47,
},
LICENSE => 'perl',
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
web => 'https://github.com/szabgab/Class-Base',
url => 'https://github.com/szabgab/Class-Base',
type => 'git',
},
},
},
);
if ($ExtUtils::MakeMaker::VERSION >= 5.43) {
$opts{ AUTHOR } = 'Andy Wardley <abw@kfs.org>';
$opts{ ABSTRACT } = 'useful base class for other modules',
}
if ($ExtUtils::MakeMaker::VERSION <= 6.64) {
if ($ExtUtils::MakeMaker::VERSION >= 6.55_01) {
$opts{ BUILD_REQUIRES } = delete $opts{ TEST_REQUIRES };
} else {
$opts{ PREREQ_PM } = delete $opts{ TEST_REQUIRES };
}
}
WriteMakefile( %opts );