Skip to content

Commit

Permalink
Version 1.000003 (Makefile.PL tweaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashb committed Mar 21, 2009
1 parent f15c3be commit 18d7a25
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Version history for TryCatch perl module:

1.000003 - 2009/04/21 - 10:37
- Makefile.PL tweaks

1.000002 - 2009/04/16 - 21:57
- Update to more modern Parse::Method::Signatures

Expand Down
16 changes: 11 additions & 5 deletions Makefile.PL
Expand Up @@ -19,14 +19,18 @@ my $ok = 1;
can_use('ExtUtils::Depends') or do {
warn "***\n* Your CPAN toolchain is out of date. Please upgrade it\n***\n"; sleep 5;
requires 'ExtUtils::Depends';
requires 'B::Hooks::OP::Check' => 0.15;
requires 'B::Hooks::OP::PPAddr' => 0.02;

unshift @INC, "$Bin/inc/EUDeps";
can_use('ExtUtils::Depends') or do {
warn "ExtUtils::Depends not installed and can't use version from inc!";
$ok = 0;
}
};

# Currently CPAN client dont seem to get on with JSON meta, so always use our
# version from inc/EUDeps
unshift @INC, "$Bin/inc/EUDeps";
can_use('ExtUtils::Depends') or do {
warn "ExtUtils::Depends not installed and can't use version from inc!";
$ok = 0;
};

requires 'Parse::Method::Signatures' => '1.003003';
requires 'B::Hooks::EndOfScope' => 0.05;
Expand All @@ -41,6 +45,7 @@ requires 'Sub::Exporter' => 0.979;

resources repository => 'http://github.com/ashb/trycatch/tree/master';

auto_provides;
jsonmeta();

unless ($ok) {
Expand All @@ -51,6 +56,7 @@ unless ($ok) {
my $pkg = ExtUtils::Depends->new('TryCatch', 'B::Hooks::OP::PPAddr', 'B::Hooks::OP::Check');
makemaker_args(
$pkg->get_makefile_vars,
dist => { PREOP => 'cp META.yml META.json' }
);

{ no warnings 'once';
Expand Down
2 changes: 1 addition & 1 deletion lib/TryCatch.pm
Expand Up @@ -17,7 +17,7 @@ use Carp qw/croak/;
use base 'DynaLoader';


our $VERSION = '1.000002';
our $VERSION = '1.000003';
our $PARSE_CATCH_NEXT = 0;
our ($CHECK_OP_HOOK, $CHECK_OP_DEPTH) = (undef, 0);

Expand Down

0 comments on commit 18d7a25

Please sign in to comment.