Permalink
Browse files

use Module::Install::cpanfile

  • Loading branch information...
1 parent 5cb2557 commit 538098fac2b3d617414c96925cdcdab31941be3f @miyagawa miyagawa committed Apr 12, 2012
Showing with 10 additions and 24 deletions.
  1. +3 −23 Makefile.PL
  2. +7 −1 cpanfile
View
26 Makefile.PL
@@ -1,34 +1,14 @@
use inc::Module::Install;
+use Module::Install::CPANfile;
+
name 'carton';
version_from 'lib/Carton.pm';
perl_version '5.008001';
license_from 'lib/Carton.pod';
author_from 'lib/Carton.pod';
readme_from('lib/Carton.pod');
-configure_requires 'version', 0.77;
-
-requires 'JSON', 2.53;
-requires 'Term::ANSIColor', 1.12;
-requires 'Module::Metadata', 1.000003;
-requires 'Try::Tiny', 0.09;
-requires 'parent', 0.223;
-requires 'local::lib', 1.008;
-requires 'Exception::Class', 1.32;
-requires 'Capture::Tiny';
-requires 'Getopt::Long', 2.36;
-requires 'Module::CPANfile', 0.9004;
-
-# MYMETA support
-requires 'App::cpanminus', 1.5000;
-requires 'ExtUtils::MakeMaker', 6.59;
-requires 'Module::Build', 0.38;
-requires 'CPAN::Meta', 2.112;
-
-# bundle DarkPAN support
-requires 'File::chdir';
-requires 'Dist::Metadata';
-requires 'IO::Compress::Gzip';
+cpanfile;
install_script 'bin/carton';
View
8 cpanfile
@@ -15,9 +15,15 @@ requires 'Module::CPANfile', 0.9004;
requires 'App::cpanminus', 1.5000;
requires 'ExtUtils::MakeMaker', 6.59;
requires 'Module::Build', 0.38;
-requires 'CPAN::Meta', 2.112;
+requires 'CPAN::Meta', 2.120921;
+requires 'CPAN::Meta::Requirements', 2.121;
# bundle DarkPAN support
requires 'File::chdir';
requires 'Dist::Metadata';
requires 'IO::Compress::Gzip';
+
+on 'develop' => sub {
+ requires 'Module::Install';
+ requires 'Module::Install::CPANfile';
+};

0 comments on commit 538098f

Please sign in to comment.