fix use of variables that are no longer defined
[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
b7c1523d 20use Data::Dumper;
21local $Data::Dumper::Sortkeys = 1;
22print STDERR "------------- calling WriteMakefile(): ExUtils::Depends get_makefile_vars says ", Dumper({ $pkg->get_makefile_vars });
23
4259f70d 24WriteMakefile(
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 => {
4cc486ae 31 'ExtUtils::Depends' => 0.8000,
94caac6e 32
6a823411 33 'B::Hooks::OP::Check' => '0.22',
4259f70d 34 },
fac325f3 35
4259f70d 36 PREREQ_PM => {
37 'Scalar::Util' => 1.11, # set_prototype appeared in this version
38 'B::Hooks::OP::Check' => '0.19',
39 'B::Hooks::EndOfScope' => '0.05',
40 'Sub::Name' => 0,
41 ($mymeta_works ? () : (%TEST_DEPS)),
42 },
2caed2d1 43
4259f70d 44 $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (),
e2c10f81 45
4259f70d 46 META_MERGE => {
c5a1f4f6 47 'meta-spec' => { version => 2 },
4259f70d 48 dynamic_config => 0,
4259f70d 49 resources => {
6502b964 50 # GitHub mirrors from Shadowcat. We list it so we can get pull requests.
51 # The canonical repo is:
52 # r/o: git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git
4259f70d 53 # r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git
6502b964 54 # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-Declare.git
7c4f1258 55 repository => {
6502b964 56 url => 'https://github.com/p5sagit/Devel-Declare.git',
57 web => 'https://github.com/p5sagit/Devel-Declare',
7c4f1258 58 type => 'git',
59 },
60 bugtracker => {
61 mailto => 'bug-Devel-Declare@rt.cpan.org',
62 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Declare',
63 },
4259f70d 64 },
9752ab20 65 x_contributors => [ # manually added, from git shortlog -e -s -n
66 'Florian Ragwitz <rafl@debian.org>',
67 'Matt S Trout <mst@shadowcat.co.uk>',
68 'Karen Etheridge <ether@cpan.org>',
69 'Zefram <zefram@fysh.org>',
70 'Rhesa Rozendaal <rhesa@cpan.org>',
71 'Ash Berlin <ash@cpan.org>',
72 'Chia-liang Kao <clkao@clkao.org>',
73 'Marcus Ramberg <marcus@nordaaker.com>',
74 'Christopher Nehren <apeiron@cpan.org>',
75 'Yuval Kogman <nothingmuch@woobling.org>',
76 'Cory Watson <gphat@cpan.org>',
77 'Alexandr Ciornii <alexchorny@gmail.com>',
78 'Father Chrysostomos <sprout@cpan.org>',
79 'Graham Knop <haarg@haarg.org>',
80 'Matthew Horsfall <WolfSage@cpan.org>',
81 'Nick Perez <nperez@cpan.org>',
82 'Yanick Champoux <yanick@babyl.dyndns.org>',
83 ],
0574e5f7 84 x_deprecated => 1,
4259f70d 85 },
86
2252452e 87 C => [ 'Declare.c' ],
4259f70d 88 XS => { 'Declare.xs' => 'Declare.c' },
181a3acf 89 depend => { '$(OBJECT)' => 'stolen_chunk_of_toke.c' },
4259f70d 90
91 $pkg->get_makefile_vars,
94caac6e 92);
4259f70d 93
2e53ee6f 94print STDERR "------- finished Makefile.PL\n";
95