1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
use v5.14;
use warnings;
use Module::Build;
my $build = Module::Build->new(
module_name => 'Devel::MAT',
requires => {
'perl' => '5.014', # s///r
'Syntax::Keyword::Match' => 0,
'Commandable::Invocation' => '0.04', # ->peek_remaining
'Devel::MAT::Dumper' => '0.48', # format version 0.6
'Feature::Compat::Try' => '0',
'File::ShareDir' => 0,
'File::Spec' => 0,
'Heap' => 0,
'List::Util' => '1.44', # uniq
'List::UtilsBy' => 0, # sort_by
'Module::Pluggable' => 0,
'String::Tagged' => '0.15', # sprintf
'String::Tagged::Terminal' => '0.03',
'Struct::Dumb' => '0.07',
},
test_requires => {
'Test2::V0' => 0,
},
configure_requires => {
'Module::Build' => '0.4004', # test_requires
},
share_dir => {
module => { "Devel::MAT::UI" => "share" },
},
license => 'perl',
create_license => 1,
create_readme => 1,
);
if( $build->args( "DEBUG" ) ) {
$build->extra_compiler_flags( @{ $build->extra_compiler_flags }, "-ggdb" );
}
$build->create_build_script;
|