diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-01-11 17:39:02 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2014-01-11 17:39:02 +0000 |
commit | 71213e496311fed05c54e62b1cf840d2e36ba15e (patch) | |
tree | 9a1cf80e1c44f8d8381ea9d8567291637cfaaed9 /cpan/Module-Build/lib/Module/Build/Base.pm | |
parent | ad94bb394e2544f935ffc8cb9aa70295ca2045dd (diff) | |
download | perl-71213e496311fed05c54e62b1cf840d2e36ba15e.tar.gz |
Update Module-Build to CPAN version 0.4204
[DELTA]
0.4204 - Fri Jan 10 00:29:31 CET 2014
[BUG FIXES]
- Map conflicts back to runtime [Leon Timmermans]
- Use mod2fname whenever it's available [Leon Timmermans, Brian Fraser]
- Accept custom entries in meta_merge 1.4
Diffstat (limited to 'cpan/Module-Build/lib/Module/Build/Base.pm')
-rw-r--r-- | cpan/Module-Build/lib/Module/Build/Base.pm | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/cpan/Module-Build/lib/Module/Build/Base.pm b/cpan/Module-Build/lib/Module/Build/Base.pm index db71c08094..758a8813fd 100644 --- a/cpan/Module-Build/lib/Module/Build/Base.pm +++ b/cpan/Module-Build/lib/Module/Build/Base.pm @@ -6,7 +6,7 @@ use strict; use vars qw($VERSION); use warnings; -$VERSION = '0.4203'; +$VERSION = '0.4204'; $VERSION = eval $VERSION; BEGIN { require 5.006001 } @@ -2578,8 +2578,8 @@ sub ACTION_help { print <<EOF; - Usage: $0 <action> arg1=value arg2=value ... - Example: $0 test verbose=1 + Usage: $0 <action> --arg1=value --arg2=value ... + Example: $0 test --verbose=1 Actions defined: EOF @@ -4606,7 +4606,7 @@ my %prereq_map = ( test_requires => [ qw/test requires/ ], test_recommends => [ qw/test recommends/ ], recommends => [ qw/runtime recommends/ ], - conflicts => [ qw/build conflicts/ ], + conflicts => [ qw/runtime conflicts/ ], ); sub _normalize_prereqs { @@ -4694,7 +4694,8 @@ sub _upconvert_metapiece { $ret{$key} = $converter->($input->{$key}); } else { - warn "Unknown key $key\n" unless $key =~ / \A x_ /xi; + my $out_key = $key =~ / \A x_ /xi ? $key : "x_$key"; + $ret{$out_key} = $input->{$key}; } } return \%ret; @@ -5510,17 +5511,19 @@ sub _infer_xs_spec { $spec{archdir} = File::Spec->catdir($self->blib, 'arch', 'auto', @d, $file_base); - $spec{bs_file} = File::Spec->catfile($spec{archdir}, "${file_base}.bs"); - - $spec{lib_file} = File::Spec->catfile($spec{archdir}, - "${file_base}.".$cf->get('dlext')); - $spec{c_file} = File::Spec->catfile( $spec{src_dir}, "${file_base}.c" ); $spec{obj_file} = File::Spec->catfile( $spec{src_dir}, "${file_base}".$cf->get('obj_ext') ); + require DynaLoader; + my $modfname = defined &DynaLoader::mod2fname ? DynaLoader::mod2fname([@d, $file_base]) : $file_base; + + $spec{bs_file} = File::Spec->catfile($spec{archdir}, "$modfname.bs"); + + $spec{lib_file} = File::Spec->catfile($spec{archdir}, "$modfname.".$cf->get('dlext')); + return \%spec; } |