Author: dagolden
Date: Sat Jul 18 14:19:56 2009
New Revision: 13082
Modified:
ExtUtils-ParseXS/trunk/Build.PL
ExtUtils-ParseXS/trunk/MANIFEST.SKIP
ExtUtils-ParseXS/trunk/Makefile.PL
Log:
add cover_db to MANIFEST.SKIP
Modified: ExtUtils-ParseXS/trunk/Build.PL
==============================================================================
--- ExtUtils-ParseXS/trunk/Build.PL (original)
+++ ExtUtils-ParseXS/trunk/Build.PL Sat Jul 18 14:19:56 2009
@@ -1,11 +1,19 @@
use Module::Build;
use Config;
-my $build = Module::Build->new
+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::ParseXS',
license => 'perl',
- installdirs => 'core',
+ installdirs => ($] >= 5.009003 ? 'core' : 'site'),
auto_configure_requires => 0,
requires => {
'Cwd' => 0,
Modified: ExtUtils-ParseXS/trunk/MANIFEST.SKIP
==============================================================================
--- ExtUtils-ParseXS/trunk/MANIFEST.SKIP (original)
+++ ExtUtils-ParseXS/trunk/MANIFEST.SKIP Sat Jul 18 14:19:56 2009
@@ -28,6 +28,7 @@
^bleadcheck.pl$
^blib
^configs
+^cover_db
^devtools
^inc
^kwiki
Modified: ExtUtils-ParseXS/trunk/Makefile.PL
==============================================================================
--- ExtUtils-ParseXS/trunk/Makefile.PL (original)
+++ ExtUtils-ParseXS/trunk/Makefile.PL Sat Jul 18 14:19:56 2009
@@ -3,7 +3,7 @@
WriteMakefile
(
'PL_FILES' => {},
- 'INSTALLDIRS' => 'perl',
+ 'INSTALLDIRS' => ($] >= 5.009003 ? 'perl' : 'site'),
'NAME' => 'ExtUtils::ParseXS',
'EXE_FILES' => [],
'VERSION_FROM' => 'lib/ExtUtils/ParseXS.pm',