Commit | Line | Data |
4259f70d |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
94caac6e |
3 | |
0d267aac |
4 | use 5.008001; |
4259f70d |
5 | use ExtUtils::MakeMaker; |
6 | (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; |
daf38100 |
7 | |
b15aa864 |
8 | use ExtUtils::Depends; |
4259f70d |
9 | my $pkg = ExtUtils::Depends->new('Devel::Declare', 'B::Hooks::OP::Check'); |
b15aa864 |
10 | |
4259f70d |
11 | my %TEST_DEPS = ( |
12 | 'B::Hooks::OP::Check' => '0.19', |
13 | 'Test::More' => '0.88', |
14 | 'Test::Requires' => '0', |
15 | ); |
94caac6e |
16 | |
4259f70d |
17 | # have to do this since old EUMM dev releases miss the eval $VERSION line |
18 | my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; |
c20d7496 |
19 | |
9a4577b4 |
20 | sub MY::postamble { |
21 | '$(OBJECT) : stolen_chunk_of_toke.c' |
22 | } |
c20d7496 |
23 | |
4259f70d |
24 | WriteMakefile( |
25 | NAME => 'Devel::Declare', |
8f887f56 |
26 | AUTHOR => 'Matt S Trout - <mst@shadowcat.co.uk> - original author', |
4259f70d |
27 | VERSION_FROM => 'lib/Devel/Declare.pm', |
28 | MIN_PERL_VERSION => '5.008001', |
c7fa6ac8 |
29 | |
4259f70d |
30 | CONFIGURE_REQUIRES => { |
31 | # minimum version that works on Win32+gcc |
32 | 'ExtUtils::Depends' => 0.302, |
94caac6e |
33 | |
4259f70d |
34 | # minimum version that depends on ExtUtils::Depends 0.302 |
35 | 'B::Hooks::OP::Check' => '0.19', |
36 | }, |
fac325f3 |
37 | |
4259f70d |
38 | PREREQ_PM => { |
39 | 'Scalar::Util' => 1.11, # set_prototype appeared in this version |
40 | 'B::Hooks::OP::Check' => '0.19', |
41 | 'B::Hooks::EndOfScope' => '0.05', |
42 | 'Sub::Name' => 0, |
43 | ($mymeta_works ? () : (%TEST_DEPS)), |
44 | }, |
2caed2d1 |
45 | |
4259f70d |
46 | $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (), |
e2c10f81 |
47 | |
4259f70d |
48 | META_MERGE => { |
c5a1f4f6 |
49 | 'meta-spec' => { version => 2 }, |
4259f70d |
50 | dynamic_config => 0, |
4259f70d |
51 | resources => { |
52 | # r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git |
7c4f1258 |
53 | repository => { |
54 | url => 'git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git', |
55 | web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-Declare.git', |
56 | type => 'git', |
57 | }, |
58 | bugtracker => { |
59 | mailto => 'bug-Devel-Declare@rt.cpan.org', |
60 | web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Declare', |
61 | }, |
4259f70d |
62 | }, |
63 | }, |
64 | |
4259f70d |
65 | XS => { 'Declare.xs' => 'Declare.c' }, |
4259f70d |
66 | |
67 | $pkg->get_makefile_vars, |
94caac6e |
68 | ); |
4259f70d |
69 | |