Ready for 0.01
[p5sagit/B-Hooks-EndOfScope-WithFallback.git] / Makefile.PL
1 use warnings;
2 use strict;
3
4 # note - the tie() fallback will probably work on 5.6 as well,
5 # if you need to go that low - patches passing tests will be accepted
6 use 5.008001;
7
8 use inc::Module::Install '1.01';
9
10 my $use_pp = $ENV{B_HOOKS_EOS_USE_PP} || ! can_cc();
11
12 test_requires 'Test::More'      => '0.88';  # done testing
13 test_requires 'Test::Exception' => '0.31';  # non-segfaulting caller()
14
15 test_requires 'Devel::Hide'     => '0' if is_smoker();
16
17 # Adjust lib/B/Hooks/EndOfScope/WithFallback.pm if bumping this dep
18 requires 'Variable::Magic' => '0.34' unless $use_pp;
19
20 all_from 'lib/B/Hooks/EndOfScope/WithFallback.pm';
21
22 homepage 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/B-Hooks-EndOfScope-WithFallback.git';
23 resources 'IRC'         => 'irc://irc.perl.org/#pp';
24 resources 'license'     => 'http://dev.perl.org/licenses/';
25 resources 'repository'  => 'git://git.shadowcat.co.uk/p5sagit/B-Hooks-EndOfScope-WithFallback.git';
26 resources 'bugtracker'  => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=B-Hooks-EndOfScope-WithFallback';
27
28 auto_install();
29
30 WriteAll;
31
32 sub is_smoker {
33   return ( $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} )
34 }