Permalink
Browse files

Switch to MakeMaker (partially due to RT #84171)

  • Loading branch information...
1 parent 6949bc5 commit 875285f27301e58ba98d4925723489fcb360f2a0 @miyagawa committed Mar 24, 2013
Showing with 55 additions and 4 deletions.
  1. +0 −3 Build.PL
  2. +1 −1 META.json
  3. +52 −0 Makefile.PL
  4. +2 −0 dist.ini
View
@@ -1,3 +0,0 @@
-use 5.006;
-use Module::Build::Tiny 0.013;
-Build_PL();
View
@@ -16,7 +16,7 @@
"prereqs" : {
"configure" : {
"requires" : {
- "Module::Build::Tiny" : "0.013"
+ "ExtUtils::MakeMaker" : "6.30"
}
},
"develop" : {
View
@@ -0,0 +1,52 @@
+
+use strict;
+use warnings;
+
+
+
+use ExtUtils::MakeMaker 6.30;
+
+
+
+my %WriteMakefileArgs = (
+ "ABSTRACT" => "Parse cpanfile",
+ "AUTHOR" => "Tatsuhiko Miyagawa <miyagawa\@bulknews.net>",
+ "BUILD_REQUIRES" => {},
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
+ },
+ "DISTNAME" => "Module-CPANfile",
+ "EXE_FILES" => [],
+ "LICENSE" => "perl",
+ "NAME" => "Module::CPANfile",
+ "PREREQ_PM" => {
+ "CPAN::Meta" => "2.12091",
+ "CPAN::Meta::Prereqs" => "2.12091"
+ },
+ "VERSION" => "0.9021",
+ "test" => {
+ "TESTS" => "t/*.t"
+ }
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+ my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+ my $pp = $WriteMakefileArgs{PREREQ_PM};
+ for my $mod ( keys %$br ) {
+ if ( exists $pp->{$mod} ) {
+ $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+ }
+ else {
+ $pp->{$mod} = $br->{$mod};
+ }
+ }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+ unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+
View
@@ -1,2 +1,4 @@
name = Module-CPANfile
+
[@Milla]
+installer = MakeMaker

0 comments on commit 875285f

Please sign in to comment.