Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (32 sloc) 0.917 kb
use Module::Build;
my $class = Module::Build->subclass(code => <<'EOF');
sub do_create_makefile_pl {
my $self = shift;
$self->SUPER::do_create_makefile_pl(fh => $fh);
$self->do_system(qw(perl -pi -e), q{s/'INSTALLDIRS' => '\w+'/'INSTALLDIRS' => (\$] >= 5.009003 ? 'perl' : 'site')/}, 'Makefile.PL');
}
EOF
my $build = $class->new
(
module_name => 'ExtUtils::CBuilder',
license => 'perl',
auto_configure_requires => 0,
requires => {
'File::Basename' => 0,
'File::Spec' => 0,
'Text::ParseWords' => 0,
'Cwd' => 0,
'IO::File' => 0,
},
build_requires => {
'Test::More' => 0.47,
},
create_makefile_pl => 'traditional',
create_readme => 1,
meta_merge => {
resources => {repository => 'http://svn.perl.org/modules/ExtUtils-CBuilder'},
},
sign => 1,
installdirs => ($] >= 5.009003 ? 'core' : 'site'),
);
$build->create_build_script;
Jump to Line
Something went wrong with that request. Please try again.