X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;fp=Makefile.PL;h=6db0d23b744e9b1b744637b7ec8f89d348bac633;hb=0ea9db7cfa27076056bb5185a19a8fdf23d91ef5;hp=0000000000000000000000000000000000000000;hpb=e6ea26dce721742d58f0e07c0de040f74d659b1e;p=gitmo%2FAlgorithm-C3.git diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..6db0d23 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,40 @@ +use strict; +use warnings FATAL => 'all'; +use 5.006; +use ExtUtils::MakeMaker; +(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; + +my %BUILD_DEPS = ( + 'Test::More' => 0.47, +); + +# have to do this since old EUMM dev releases miss the eval $VERSION line +my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02; +my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07; + +WriteMakefile( + NAME => 'Algorithm::C3', + VERSION_FROM => 'lib/Algorithm/C3.pm', + PREREQ_PM => { + 'Carp' => 0.01, + ($mymeta_works ? () : (%BUILD_DEPS)), + }, + $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), + ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), + + -f 'META.yml' ? () : (META_MERGE => { + 'meta-spec' => { version => 2 }, + resources => { + # r/w: gitmo@git.shadowcat.co.uk:Algorithm-C3.git + repository => { + url => 'git://git.shadowcat.co.uk/gitmo/Algorithm-C3.git', + web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Algorithm-C3.git', + type => 'git', + }, + bugtracker => { + mailto => 'bug-Algorithm-C3@rt.cpan.org', + web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Algorithm-C3', + }, + }, + }), +);