Permalink
Browse files

minil migrate

  • Loading branch information...
1 parent 0b892aa commit 891eb914f49af9ec54f692836a327bfc75c38aa8 @xaicron committed May 10, 2013
Showing with 614 additions and 74 deletions.
  1. +7 −0 .gitignore
  2. +0 −2 .shipit
  3. +68 −0 Build.PL
  4. +2 −0 Changes
  5. +378 −0 LICENSE
  6. +0 −16 MANIFEST.SKIP
  7. +72 −0 META.json
  8. +0 −15 Makefile.PL
  9. +81 −0 README.md
  10. +0 −1 README.pod
  11. +6 −0 cpanfile
  12. +0 −40 xt/01_podspell.t
View
@@ -18,3 +18,10 @@ xs/*obj
*.old
dll*
*~
+/App-envfile-*
+/.build
+/_build_params
+/Build
+!Build/
+!META.json
+!LICENSE
View
@@ -1,2 +0,0 @@
-steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
-git.push_to = origin
View
@@ -0,0 +1,68 @@
+# =========================================================================
+# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
+# DO NOT EDIT DIRECTLY.
+# =========================================================================
+
+use 5.008_001;
+
+use strict;
+use warnings;
+use utf8;
+
+use Module::Build;
+use File::Basename;
+use File::Spec;
+use CPAN::Meta;
+use CPAN::Meta::Prereqs;
+
+my %args = (
+ license => 'perl',
+ dynamic_config => 0,
+
+ configure_requires => {
+ 'Module::Build' => 0.38,
+ },
+
+ name => 'App-envfile',
+ module_name => 'App::envfile',
+ allow_pure_perl => 0,
+
+ script_files => [glob('script/*'), glob('bin/*')],
+
+ test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
+ recursive_test_files => 1,
+);
+if (-d 'share') {
+ $args{share_dir} = 'share';
+}
+
+my $builder = Module::Build->subclass(
+ class => 'MyBuilder',
+ code => q{
+ sub ACTION_distmeta {
+ die "Do not run distmeta. Install Minilla and `minil install` instead.\n";
+ }
+ sub ACTION_installdeps {
+ die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n";
+ }
+ }
+)->new(%args);
+$builder->create_build_script();
+
+my $mbmeta = CPAN::Meta->load_file('MYMETA.json');
+my $meta = CPAN::Meta->load_file('META.json');
+my $prereqs_hash = CPAN::Meta::Prereqs->new(
+ $meta->prereqs
+)->with_merged_prereqs(
+ CPAN::Meta::Prereqs->new($mbmeta->prereqs)
+)->as_string_hash;
+my $mymeta = CPAN::Meta->new(
+ {
+ %{$meta->as_struct},
+ prereqs => $prereqs_hash
+ }
+);
+print "Merging cpanfile prereqs to MYMETA.yml\n";
+$mymeta->save('MYMETA.yml', { version => 1.4 });
+print "Merging cpanfile prereqs to MYMETA.json\n";
+$mymeta->save('MYMETA.json', { version => 2 });
View
@@ -1,5 +1,7 @@
Revision history for Perl extension App::envfile
+{{$NEXT}}
+
0.06 Mon Oct 22 01:22:09 2012
- repacking (suggested by miyagawa++)
Oops, something went wrong.

0 comments on commit 891eb91

Please sign in to comment.