Permalink
Browse files

Test for version of ExtUtils::MakeMaker for META_MERGE.

  • Loading branch information...
1 parent e352ab7 commit 69f5484f49ecfdf11fc3f2f7888b4be270a0e6f2 @benkasminbullock benkasminbullock committed Jun 22, 2012
Showing with 11 additions and 4 deletions.
  1. +11 −4 Makefile.PL
View
@@ -36,7 +36,8 @@ if (-e 'cpanm') {
}
use ExtUtils::MakeMaker;
-WriteMakefile(
+
+my %args = (
NAME => 'App::cpanminus',
VERSION_FROM => "lib/App/cpanminus.pm",
ABSTRACT => 'Get, unpack, build and install modules from CPAN.',
@@ -47,10 +48,16 @@ WriteMakefile(
},
LICENSE => 'perl',
EXE_FILES => [ 'bin/cpanm' ],
- META_MERGE => {
+);
+
+my $eummv = eval ($ExtUtils::MakeMaker::VERSION);
+if ($eummv >= 6.45) {
+ $args{META_MERGE} = {
resources => {
repository => 'git://github.com/miyagawa/cpanminus.git',
bugtracker => 'https://github.com/miyagawa/cpanminus/issues',
},
- },
-);
+ };
+}
+
+WriteMakefile(%args);

0 comments on commit 69f5484

Please sign in to comment.