summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiko Miyagawa <miyagawa@bulknews.net>2015-04-19 14:23:54 +0200
committerTatsuhiko Miyagawa <miyagawa@bulknews.net>2015-04-19 14:23:54 +0200
commitd422cbba91bb463e7e3b59ec58b9ecde741afdd3 (patch)
treee41e430ec080f7a9f1c51d41c3084a43b121c436
parent5aa2ce1ebb97cb288dcdf231ee532640471824b9 (diff)
downloadcarton-d422cbba91bb463e7e3b59ec58b9ecde741afdd3.tar.gz
use MakeMaker
-rw-r--r--Build.PL69
-rw-r--r--LICENSE2
-rw-r--r--META.json29
-rw-r--r--Makefile.PL82
-rw-r--r--README.md14
-rw-r--r--dist.ini2
6 files changed, 104 insertions, 94 deletions
diff --git a/Build.PL b/Build.PL
deleted file mode 100644
index 7d9febf..0000000
--- a/Build.PL
+++ /dev/null
@@ -1,69 +0,0 @@
-
-use strict;
-use warnings;
-
-use Module::Build 0.3601;
-
-
-my %module_build_args = (
- "build_requires" => {
- "Module::Build" => "0.3601"
- },
- "configure_requires" => {
- "Module::Build" => "0.3601",
- "version" => "0.77"
- },
- "dist_abstract" => "Perl module dependency manager (aka Bundler for Perl)",
- "dist_author" => [
- "Tatsuhiko Miyagawa"
- ],
- "dist_name" => "Carton",
- "dist_version" => "v1.0.12",
- "license" => "perl",
- "module_name" => "Carton",
- "recommends" => {},
- "recursive_test_files" => 1,
- "requires" => {
- "App::FatPacker" => "0.009018",
- "App::cpanminus" => "1.694",
- "CPAN::Meta" => "2.120921",
- "CPAN::Meta::Requirements" => "2.121",
- "Exception::Class" => "1.32",
- "ExtUtils::MakeMaker" => "6.64",
- "File::pushd" => 0,
- "Getopt::Long" => "2.39",
- "JSON" => "2.53",
- "Module::Build" => "0.4004",
- "Module::CPANfile" => "0.9031",
- "Module::CoreList" => 0,
- "Module::Metadata" => "1.000003",
- "Module::Reader" => "0.002",
- "Moo" => "1.002",
- "Path::Tiny" => "0.033",
- "Try::Tiny" => "0.09",
- "parent" => "0.223",
- "perl" => "v5.8.5"
- },
- "script_files" => [
- "script/carton"
- ],
- "test_requires" => {}
-);
-
-
-unless ( eval { Module::Build->VERSION(0.4004) } ) {
- my $tr = delete $module_build_args{test_requires};
- my $br = $module_build_args{build_requires};
- for my $mod ( keys %$tr ) {
- if ( exists $br->{$mod} ) {
- $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
- }
- else {
- $br->{$mod} = $tr->{$mod};
- }
- }
-}
-
-my $build = Module::Build->new(%module_build_args);
-
-$build->create_build_script;
diff --git a/LICENSE b/LICENSE
index 47dfa1c..7b5e320 100644
--- a/LICENSE
+++ b/LICENSE
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
diff --git a/META.json b/META.json
index 8c3f574..83c7736 100644
--- a/META.json
+++ b/META.json
@@ -4,13 +4,13 @@
"Tatsuhiko Miyagawa"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Milla version v1.0.4, Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132660",
+ "generated_by" : "Dist::Zilla version 5.035, Dist::Milla version v1.0.15, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Carton",
"no_index" : {
@@ -24,20 +24,16 @@
]
},
"prereqs" : {
- "build" : {
- "requires" : {
- "Module::Build" : "0.3601"
- }
- },
"configure" : {
"requires" : {
- "Module::Build" : "0.3601",
+ "ExtUtils::MakeMaker" : "0",
"version" : "0.77"
}
},
"develop" : {
"requires" : {
"Capture::Tiny" : "0",
+ "Dist::Milla" : "v1.0.15",
"Test::More" : "0.9",
"Test::Pod" : "1.41",
"Test::Requires" : "0"
@@ -46,7 +42,7 @@
"runtime" : {
"requires" : {
"App::FatPacker" : "0.009018",
- "App::cpanminus" : "1.694",
+ "App::cpanminus" : "1.703",
"CPAN::Meta" : "2.120921",
"CPAN::Meta::Requirements" : "2.121",
"Exception::Class" : "1.32",
@@ -70,13 +66,13 @@
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "web" : "https://github.com/miyagawa/carton/issues"
+ "web" : "https://github.com/perl-carton/carton/issues"
},
- "homepage" : "https://github.com/miyagawa/carton",
+ "homepage" : "https://github.com/perl-carton/carton",
"repository" : {
"type" : "git",
- "url" : "https://github.com/miyagawa/carton.git",
- "web" : "https://github.com/miyagawa/carton"
+ "url" : "https://github.com/perl-carton/carton.git",
+ "web" : "https://github.com/perl-carton/carton"
}
},
"version" : "v1.0.12",
@@ -84,15 +80,16 @@
"Christian Walde <walde.christian@googlemail.com>",
"David Golden <dagolden@cpan.org>",
"David Steinbrunner <dsteinbrunner@pobox.com>",
+ "ikasam_a <masaki.nakagawa@gmail.com>",
"Kan Fushihara <kan.fushihara@gmail.com>",
"Masahiro Chiba <chiba@everqueue.com>",
"NAKAGAWA Masaki <masaki.nakagawa@gmail.com>",
"Olaf Alders <olaf@wundersolutions.com>",
"Pedro Figueiredo <me@pedrofigueiredo.org>",
+ "shiba_yu36 <shibayu36@gmail.com>",
+ "Tatsuhiko Miyagawa <miyagawa@bulknews.net>",
"Tatsuhiko Miyagawa <miyagawa@gmail.com>",
- "Yanick Champoux <yanick@babyl.dyndns.org>",
- "ikasam_a <masaki.nakagawa@gmail.com>",
- "shiba_yu36 <shibayu36@gmail.com>"
+ "Yanick Champoux <yanick@babyl.dyndns.org>"
]
}
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644
index 0000000..84e64c8
--- /dev/null
+++ b/Makefile.PL
@@ -0,0 +1,82 @@
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.035.
+use strict;
+use warnings;
+
+use 5.008005;
+
+use ExtUtils::MakeMaker;
+
+my %WriteMakefileArgs = (
+ "ABSTRACT" => "Perl module dependency manager (aka Bundler for Perl)",
+ "AUTHOR" => "Tatsuhiko Miyagawa",
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => 0,
+ "version" => "0.77"
+ },
+ "DISTNAME" => "Carton",
+ "EXE_FILES" => [
+ "script/carton"
+ ],
+ "LICENSE" => "perl",
+ "MIN_PERL_VERSION" => "5.008005",
+ "NAME" => "Carton",
+ "PREREQ_PM" => {
+ "App::FatPacker" => "0.009018",
+ "App::cpanminus" => "1.703",
+ "CPAN::Meta" => "2.120921",
+ "CPAN::Meta::Requirements" => "2.121",
+ "Exception::Class" => "1.32",
+ "ExtUtils::MakeMaker" => "6.64",
+ "File::pushd" => 0,
+ "Getopt::Long" => "2.39",
+ "JSON" => "2.53",
+ "Module::Build" => "0.4004",
+ "Module::CPANfile" => "0.9031",
+ "Module::CoreList" => 0,
+ "Module::Metadata" => "1.000003",
+ "Module::Reader" => "0.002",
+ "Moo" => "1.002",
+ "Path::Tiny" => "0.033",
+ "Try::Tiny" => "0.09",
+ "parent" => "0.223"
+ },
+ "VERSION" => "v1.0.12",
+ "test" => {
+ "TESTS" => "t/*.t"
+ }
+);
+
+
+my %FallbackPrereqs = (
+ "App::FatPacker" => "0.009018",
+ "App::cpanminus" => "1.703",
+ "CPAN::Meta" => "2.120921",
+ "CPAN::Meta::Requirements" => "2.121",
+ "Exception::Class" => "1.32",
+ "ExtUtils::MakeMaker" => "6.64",
+ "File::pushd" => 0,
+ "Getopt::Long" => "2.39",
+ "JSON" => "2.53",
+ "Module::Build" => "0.4004",
+ "Module::CPANfile" => "0.9031",
+ "Module::CoreList" => 0,
+ "Module::Metadata" => "1.000003",
+ "Module::Reader" => "0.002",
+ "Moo" => "1.002",
+ "Path::Tiny" => "0.033",
+ "Try::Tiny" => "0.09",
+ "parent" => "0.223",
+ "version" => "0.77"
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+ unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
diff --git a/README.md b/README.md
index 54107cf..ae2d16f 100644
--- a/README.md
+++ b/README.md
@@ -30,13 +30,13 @@ run in an embedded perl use case such as mod\_perl.
# DESCRIPTION
carton is a command line tool to track the Perl module dependencies
-for your Perl application. Dependencies are declared using [cpanfile](http://search.cpan.org/perldoc?cpanfile)
+for your Perl application. Dependencies are declared using [cpanfile](https://metacpan.org/pod/cpanfile)
format, and the managed dependencies are tracked in a
_cpanfile.snapshot_ file, which is meant to be version controlled,
and the snapshot file allows other developers of your application will
have the exact same versions of the modules.
-For `cpanfile` syntax, see [cpanfile](http://search.cpan.org/perldoc?cpanfile) documentation.
+For `cpanfile` syntax, see [cpanfile](https://metacpan.org/pod/cpanfile) documentation.
# TUTORIAL
@@ -116,7 +116,7 @@ When you take a snapshot in one perl version and deploy on another
The simplest solution, which might not work for everybody, is to use
the same version of perl in the development and deployment.
-To enforce that, you're recommended to use [plenv](http://search.cpan.org/perldoc?plenv) and
+To enforce that, you're recommended to use [plenv](https://metacpan.org/pod/plenv) and
`.perl-version` to lock perl versions in development.
You can also specify the minimum perl required in `cpanfile`:
@@ -132,7 +132,7 @@ with perl lower than the specified version.
Code repository, Wiki and Issue Tracker
-- [irc://irc.perl.org/\#carton](irc://irc.perl.org/\#carton)
+- [irc://irc.perl.org/#carton](irc://irc.perl.org/#carton)
IRC chat room
@@ -150,9 +150,9 @@ This software is licensed under the same terms as Perl itself.
# SEE ALSO
-[cpanm](http://search.cpan.org/perldoc?cpanm)
+[cpanm](https://metacpan.org/pod/cpanm)
-[cpanfile](http://search.cpan.org/perldoc?cpanfile)
+[cpanfile](https://metacpan.org/pod/cpanfile)
[Bundler](http://gembundler.com/)
@@ -162,4 +162,4 @@ This software is licensed under the same terms as Perl itself.
[perlrocks](https://github.com/gugod/perlrocks)
-[only](http://search.cpan.org/perldoc?only)
+[only](https://metacpan.org/pod/only)
diff --git a/dist.ini b/dist.ini
index f04a3a7..5abd671 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,3 +1,3 @@
name = Carton
[@Milla]
-installer = ModuleBuild
+installer = MakeMaker