Drop .modulebuildrc support
Per Lancaster consensus, .modulebuildrc is deprecated
Leon Timmermans
11 years ago
4 | 4 | our @EXPORT = qw/Build Build_PL/; |
5 | 5 | |
6 | 6 | use CPAN::Meta; |
7 | use ExtUtils::BuildRC 0.003 qw/read_config/; | |
8 | 7 | use ExtUtils::Config 0.003; |
9 | 8 | use ExtUtils::Helpers 0.016 qw/make_executable split_like_shell man1_pagename man3_pagename detildefy/; |
10 | 9 | use ExtUtils::Install qw/pm_to_blib install/; |
82 | 81 | my $bpl = decode_json(read_file('_build_params', 'utf8')); |
83 | 82 | my $action = @ARGV && $ARGV[0] =~ /\A\w+\z/ ? shift @ARGV : 'build'; |
84 | 83 | die "No such action '$action'\n" if not $actions{$action}; |
85 | my $rc_opts = read_config(); | |
86 | 84 | my @env = defined $ENV{PERL_MB_OPT} ? split_like_shell($ENV{PERL_MB_OPT}) : (); |
87 | unshift @ARGV, map { @{$_} } grep { defined } $rc_opts->{'*'}, $bpl, $rc_opts->{$action}, \@env; | |
85 | unshift @ARGV, map { @{$_} } $bpl, \@env; | |
88 | 86 | GetOptions(\my %opt, qw/install_base=s install_path=s% installdirs=s destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1/); |
89 | 87 | $_ = detildefy($_) for grep { defined } @opt{qw/install_base destdir prefix/}, values %{ $opt{install_path} }; |
90 | 88 | @opt{'config', 'meta'} = (ExtUtils::Config->new($opt{config}), get_meta()); |