Commit | Line | Data |
0ea9db7c |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
3 | use 5.006; |
4 | use ExtUtils::MakeMaker; |
5 | (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; |
6 | |
7 | my %BUILD_DEPS = ( |
8 | 'Test::More' => 0.47, |
9 | ); |
10 | |
11 | # have to do this since old EUMM dev releases miss the eval $VERSION line |
12 | my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02; |
13 | my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07; |
14 | |
15 | WriteMakefile( |
16 | NAME => 'Algorithm::C3', |
17 | VERSION_FROM => 'lib/Algorithm/C3.pm', |
18 | PREREQ_PM => { |
19 | 'Carp' => 0.01, |
20 | ($mymeta_works ? () : (%BUILD_DEPS)), |
21 | }, |
22 | $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), |
23 | ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), |
24 | |
25 | -f 'META.yml' ? () : (META_MERGE => { |
26 | 'meta-spec' => { version => 2 }, |
27 | resources => { |
28 | # r/w: gitmo@git.shadowcat.co.uk:Algorithm-C3.git |
29 | repository => { |
30 | url => 'git://git.shadowcat.co.uk/gitmo/Algorithm-C3.git', |
31 | web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Algorithm-C3.git', |
32 | type => 'git', |
33 | }, |
34 | bugtracker => { |
35 | mailto => 'bug-Algorithm-C3@rt.cpan.org', |
36 | web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Algorithm-C3', |
37 | }, |
38 | }, |
39 | }), |
40 | ); |