Skip to content

Commit

Permalink
updated by Minilla
Browse files Browse the repository at this point in the history
  • Loading branch information
tsucchi committed Nov 19, 2015
1 parent 799ac6f commit d540aae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 58 deletions.
57 changes: 2 additions & 55 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,9 @@
# =========================================================================

use 5.008_001;

use strict;
use warnings;
use utf8;

use Module::Build;
use File::Basename;
use File::Spec;

my %args = (
license => 'perl',
dynamic_config => 0,

configure_requires => {
'Module::Build' => 0.38,
},

name => 'Acme-MilkyHolmes',
module_name => 'Acme::MilkyHolmes',
allow_pureperl => 0,

script_files => [glob('script/*'), glob('bin/*')],
c_source => [qw()],
PL_files => {},

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();

use File::Copy;

print "cp META.json MYMETA.json\n";
copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!";
use Module::Build::Tiny 0.035;

if (-f 'META.yml') {
print "cp META.yml MYMETA.yml\n";
copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!";
} else {
print "There is no META.yml... You may install this module from the repository...\n";
}
Build_PL();

5 changes: 3 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Takuya Tsuchida <tsucchi@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v2.1.1, CPAN::Meta::Converter version 2.141170",
"generated_by" : "Minilla/v3.0.0, CPAN::Meta::Converter version 2.143240",
"license" : [
"perl_5"
],
Expand All @@ -30,7 +30,8 @@
"requires" : {
"CPAN::Meta" : "0",
"CPAN::Meta::Prereqs" : "0",
"Module::Build" : "0.38"
"Module::Build" : "0",
"Module::Build::Tiny" : "0.035"
}
},
"develop" : {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/tsucchi/p5-Acme-MilkyHolmes.png?branch=master)](https://travis-ci.org/tsucchi/p5-Acme-MilkyHolmes) [![Coverage Status](https://coveralls.io/repos/tsucchi/p5-Acme-MilkyHolmes/badge.png?branch=master)](https://coveralls.io/r/tsucchi/p5-Acme-MilkyHolmes?branch=master)
[![Build Status](https://travis-ci.org/tsucchi/p5-Acme-MilkyHolmes.svg?branch=master)](https://travis-ci.org/tsucchi/p5-Acme-MilkyHolmes) [![Coverage Status](https://img.shields.io/coveralls/tsucchi/p5-Acme-MilkyHolmes/master.svg?style=flat)](https://coveralls.io/r/tsucchi/p5-Acme-MilkyHolmes?branch=master)
# NAME

Acme::MilkyHolmes - There's more than one way to do it!(SEIKAI HA HITOTSU! JANAI!!)
Expand Down

0 comments on commit d540aae

Please sign in to comment.