-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,475 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/Devel-InheritNamespace-* | ||
/.build | ||
/_build_params | ||
/Build | ||
/Build.bat | ||
!Build/ | ||
!META.json | ||
!LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# ========================================================================= | ||
# 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 => 'Devel-InheritNamespace', | ||
module_name => 'Devel::InheritNamespace', | ||
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(); | ||
|
||
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 }); |
Oops, something went wrong.