B::Hooks::OP::Check::Install::Files is not indexed
[p5sagit/Devel-Declare.git] / Makefile.PL
CommitLineData
4259f70d 1use strict;
2use warnings FATAL => 'all';
94caac6e 3
0d267aac 4use 5.008001;
4259f70d 5use ExtUtils::MakeMaker;
1b03d58c 6(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
daf38100 7
b15aa864 8use ExtUtils::Depends;
4259f70d 9my $pkg = ExtUtils::Depends->new('Devel::Declare', 'B::Hooks::OP::Check');
b15aa864 10
4259f70d 11my %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
18my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
c20d7496 19
4259f70d 20WriteMakefile(
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',
32 },
fac325f3 33
4259f70d 34 PREREQ_PM => {
35 'Scalar::Util' => 1.11, # set_prototype appeared in this version
36 'B::Hooks::OP::Check' => '0.19',
37 'B::Hooks::EndOfScope' => '0.05',
38 'Sub::Name' => 0,
39 ($mymeta_works ? () : (%TEST_DEPS)),
40 },
2caed2d1 41
4259f70d 42 $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (),
e2c10f81 43
4259f70d 44 META_MERGE => {
c5a1f4f6 45 'meta-spec' => { version => 2 },
4259f70d 46 dynamic_config => 0,
4259f70d 47 resources => {
6502b964 48 # GitHub mirrors from Shadowcat. We list it so we can get pull requests.
49 # The canonical repo is:
50 # r/o: git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git
4259f70d 51 # r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git
6502b964 52 # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-Declare.git
7c4f1258 53 repository => {
6502b964 54 url => 'https://github.com/p5sagit/Devel-Declare.git',
55 web => 'https://github.com/p5sagit/Devel-Declare',
7c4f1258 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 },
9752ab20 63 x_contributors => [ # manually added, from git shortlog -e -s -n
64 'Florian Ragwitz <rafl@debian.org>',
65 'Matt S Trout <mst@shadowcat.co.uk>',
66 'Karen Etheridge <ether@cpan.org>',
67 'Zefram <zefram@fysh.org>',
68 'Rhesa Rozendaal <rhesa@cpan.org>',
69 'Ash Berlin <ash@cpan.org>',
70 'Chia-liang Kao <clkao@clkao.org>',
71 'Marcus Ramberg <marcus@nordaaker.com>',
72 'Christopher Nehren <apeiron@cpan.org>',
73 'Yuval Kogman <nothingmuch@woobling.org>',
74 'Cory Watson <gphat@cpan.org>',
75 'Alexandr Ciornii <alexchorny@gmail.com>',
76 'Father Chrysostomos <sprout@cpan.org>',
77 'Graham Knop <haarg@haarg.org>',
78 'Matthew Horsfall <WolfSage@cpan.org>',
79 'Nick Perez <nperez@cpan.org>',
80 'Yanick Champoux <yanick@babyl.dyndns.org>',
81 ],
0574e5f7 82 x_deprecated => 1,
4259f70d 83 },
84
2252452e 85 C => [ 'Declare.c' ],
4259f70d 86 XS => { 'Declare.xs' => 'Declare.c' },
181a3acf 87 depend => { '$(OBJECT)' => 'stolen_chunk_of_toke.c' },
4259f70d 88
89 $pkg->get_makefile_vars,
94caac6e 90);
4259f70d 91