also force BHOC to the latest version
[p5sagit/Devel-Declare.git] / Makefile.PL
1 use strict;
2 use warnings FATAL => 'all';
3
4 use 5.008001;
5 use ExtUtils::MakeMaker;
6 (do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
7
8 use ExtUtils::Depends;
9 my $pkg = ExtUtils::Depends->new('Devel::Declare', 'B::Hooks::OP::Check');
10
11 my %TEST_DEPS = (
12     'B::Hooks::OP::Check' => '0.19',
13     'Test::More' => '0.88',
14     'Test::Requires' => '0',
15 );
16
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 };
19
20 WriteMakefile(
21     NAME => 'Devel::Declare',
22     AUTHOR => 'Matt S Trout - <mst@shadowcat.co.uk> - original author',
23     VERSION_FROM => 'lib/Devel/Declare.pm',
24     MIN_PERL_VERSION => '5.008001',
25
26     CONFIGURE_REQUIRES => {
27         'ExtUtils::Depends' => 0.8000,
28
29         'B::Hooks::OP::Check' => '0.22',
30     },
31
32     PREREQ_PM => {
33         'Scalar::Util' => 1.11, # set_prototype appeared in this version
34         'B::Hooks::OP::Check' => '0.19',
35         'B::Hooks::EndOfScope' => '0.05',
36         'Sub::Name' => 0,
37         ($mymeta_works ? () : (%TEST_DEPS)),
38     },
39
40     $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (),
41
42     META_MERGE => {
43         'meta-spec' => { version => 2 },
44         dynamic_config => 0,
45         resources => {
46             # GitHub mirrors from Shadowcat. We list it so we can get pull requests.
47             # The canonical repo is:
48             # r/o: git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git
49             # r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git
50             # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-Declare.git
51             repository => {
52                 url => 'https://github.com/p5sagit/Devel-Declare.git',
53                 web => 'https://github.com/p5sagit/Devel-Declare',
54                 type => 'git',
55             },
56             bugtracker => {
57                 mailto => 'bug-Devel-Declare@rt.cpan.org',
58                 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Declare',
59             },
60         },
61         x_contributors => [ # manually added, from git shortlog -e -s -n
62             'Florian Ragwitz <rafl@debian.org>',
63             'Matt S Trout <mst@shadowcat.co.uk>',
64             'Karen Etheridge <ether@cpan.org>',
65             'Zefram <zefram@fysh.org>',
66             'Rhesa Rozendaal <rhesa@cpan.org>',
67             'Ash Berlin <ash@cpan.org>',
68             'Chia-liang Kao <clkao@clkao.org>',
69             'Marcus Ramberg <marcus@nordaaker.com>',
70             'Christopher Nehren <apeiron@cpan.org>',
71             'Yuval Kogman <nothingmuch@woobling.org>',
72             'Cory Watson <gphat@cpan.org>',
73             'Alexandr Ciornii <alexchorny@gmail.com>',
74             'Father Chrysostomos <sprout@cpan.org>',
75             'Graham Knop <haarg@haarg.org>',
76             'Matthew Horsfall <WolfSage@cpan.org>',
77             'Nick Perez <nperez@cpan.org>',
78             'Yanick Champoux <yanick@babyl.dyndns.org>',
79         ],
80         x_deprecated => 1,
81     },
82
83     C => [ 'Declare.c' ],
84     XS => { 'Declare.xs' => 'Declare.c' },
85     depend => { '$(OBJECT)' => 'stolen_chunk_of_toke.c' },
86
87     $pkg->get_makefile_vars,
88 );
89