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