my
$module
= __PACKAGE__;
(
my
$dist
=
$module
) =~ s/::/-/g;
my
$main_file
= catfile(
'lib'
,
split
/::/,
"$module.pm"
);
my
%WriteMakefile
= (
'MIN_PERL_VERSION'
=>
'5.008'
,
'NAME'
=>
$module
,
'VERSION_FROM'
=>
$main_file
,
'ABSTRACT_FROM'
=>
$main_file
,
'LICENSE'
=>
'artistic_2'
,
'AUTHOR'
=>
'brian d foy <briandfoy@pobox.com>'
,
'CONFIGURE_REQUIRES'
=> {
'ExtUtils::MakeMaker'
=>
'6.64'
,
'File::Spec::Functions'
=>
'0'
,
},
'BUILD_REQUIRES'
=> {
},
'TEST_REQUIRES'
=> {
'Test::More'
=>
'1'
,
'Test::Builder::Tester'
=>
'1.04'
,
'Test::Builder'
=>
'1.001006'
,
},
'PREREQ_PM'
=> {
},
'META_MERGE'
=> {
'meta-spec'
=> {
version
=> 2 },
keywords
=> [
'testing'
,
'file'
],
resources
=> {
repository
=> {
type
=>
'git'
,
url
=>
$github
,
web
=>
$github
,
},
bugtracker
=> {
web
=>
"$github/issues"
,
},
homepage
=>
$github
,
},
no_index
=> {
package
=> [
qw( version Local )
],
directory
=> [
qw( t/inc inc )
],
file
=> [
qw( t/lib/test.pm )
],
namespace
=> [
qw( Local )
],
},
},
clean
=> {
FILES
=>
qq|$dist-*|
},
test
=> {
TESTS
=>
't/*.t t/*/*.t'
},
);
sub
arguments { \
%WriteMakefile
}
do_it()
unless
caller
;
sub
do_it {
my
$MM
=
'ExtUtils::MakeMaker'
;
my
$MM_version
=
eval
{
"$MM "
.
$WriteMakefile
{
'CONFIGURE_REQUIRES'
}{
'ExtUtils::MakeMaker'
} }
||
"$MM 6.64"
;
eval
"use $MM_version; 1"
or
die
"Could not load $MM_version: $@"
;
eval
"use Test::Manifest 1.21"
;
my
$arguments
= arguments();
my
$minimum_perl
=
$arguments
->{MIN_PERL_VERSION} ||
'5.008'
;
eval
"require $minimum_perl;"
or
die
$@;
WriteMakefile(
%$arguments
);
}
no
warnings;
__PACKAGE__;