Commit | Line | Data |
4259f70d |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
94caac6e |
3 | |
0d267aac |
4 | use 5.008001; |
4259f70d |
5 | use ExtUtils::MakeMaker; |
1b03d58c |
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 | |
4259f70d |
20 | WriteMakefile( |
21 | NAME => 'Devel::Declare', |
8f887f56 |
22 | AUTHOR => 'Matt S Trout - <mst@shadowcat.co.uk> - original author', |
4259f70d |
23 | VERSION_FROM => 'lib/Devel/Declare.pm', |
24 | MIN_PERL_VERSION => '5.008001', |
c7fa6ac8 |
25 | |
4259f70d |
26 | CONFIGURE_REQUIRES => { |
27 | # minimum version that works on Win32+gcc |
28 | 'ExtUtils::Depends' => 0.302, |
94caac6e |
29 | |
4259f70d |
30 | # minimum version that depends on ExtUtils::Depends 0.302 |
31 | 'B::Hooks::OP::Check' => '0.19', |
7e63642d |
32 | 'B::Hooks::OP::Check::Install::Files' => '0.19', |
4259f70d |
33 | }, |
fac325f3 |
34 | |
4259f70d |
35 | PREREQ_PM => { |
36 | 'Scalar::Util' => 1.11, # set_prototype appeared in this version |
37 | 'B::Hooks::OP::Check' => '0.19', |
38 | 'B::Hooks::EndOfScope' => '0.05', |
39 | 'Sub::Name' => 0, |
40 | ($mymeta_works ? () : (%TEST_DEPS)), |
41 | }, |
2caed2d1 |
42 | |
4259f70d |
43 | $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (), |
e2c10f81 |
44 | |
4259f70d |
45 | META_MERGE => { |
c5a1f4f6 |
46 | 'meta-spec' => { version => 2 }, |
4259f70d |
47 | dynamic_config => 0, |
4259f70d |
48 | resources => { |
6502b964 |
49 | # GitHub mirrors from Shadowcat. We list it so we can get pull requests. |
50 | # The canonical repo is: |
51 | # r/o: git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git |
4259f70d |
52 | # r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git |
6502b964 |
53 | # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-Declare.git |
7c4f1258 |
54 | repository => { |
6502b964 |
55 | url => 'https://github.com/p5sagit/Devel-Declare.git', |
56 | web => 'https://github.com/p5sagit/Devel-Declare', |
7c4f1258 |
57 | type => 'git', |
58 | }, |
59 | bugtracker => { |
60 | mailto => 'bug-Devel-Declare@rt.cpan.org', |
61 | web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Declare', |
62 | }, |
4259f70d |
63 | }, |
9752ab20 |
64 | x_contributors => [ # manually added, from git shortlog -e -s -n |
65 | 'Florian Ragwitz <rafl@debian.org>', |
66 | 'Matt S Trout <mst@shadowcat.co.uk>', |
67 | 'Karen Etheridge <ether@cpan.org>', |
68 | 'Zefram <zefram@fysh.org>', |
69 | 'Rhesa Rozendaal <rhesa@cpan.org>', |
70 | 'Ash Berlin <ash@cpan.org>', |
71 | 'Chia-liang Kao <clkao@clkao.org>', |
72 | 'Marcus Ramberg <marcus@nordaaker.com>', |
73 | 'Christopher Nehren <apeiron@cpan.org>', |
74 | 'Yuval Kogman <nothingmuch@woobling.org>', |
75 | 'Cory Watson <gphat@cpan.org>', |
76 | 'Alexandr Ciornii <alexchorny@gmail.com>', |
77 | 'Father Chrysostomos <sprout@cpan.org>', |
78 | 'Graham Knop <haarg@haarg.org>', |
79 | 'Matthew Horsfall <WolfSage@cpan.org>', |
80 | 'Nick Perez <nperez@cpan.org>', |
81 | 'Yanick Champoux <yanick@babyl.dyndns.org>', |
82 | ], |
0574e5f7 |
83 | x_deprecated => 1, |
4259f70d |
84 | }, |
85 | |
2252452e |
86 | C => [ 'Declare.c' ], |
4259f70d |
87 | XS => { 'Declare.xs' => 'Declare.c' }, |
181a3acf |
88 | depend => { '$(OBJECT)' => 'stolen_chunk_of_toke.c' }, |
4259f70d |
89 | |
90 | $pkg->get_makefile_vars, |
94caac6e |
91 | ); |
4259f70d |
92 | |