[Bps-public-commit] r10423 - bpsbuilder/Shipwright/lib/Shipwright/Source
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Jan 22 11:08:35 EST 2008
Author: sunnavy
Date: Tue Jan 22 11:08:28 2008
New Revision: 10423
Modified:
bpsbuilder/Shipwright/lib/Shipwright/Source/Base.pm
Log:
automatically add Module::Build to build_requires if there is Build.PL
Modified: bpsbuilder/Shipwright/lib/Shipwright/Source/Base.pm
==============================================================================
--- bpsbuilder/Shipwright/lib/Shipwright/Source/Base.pm (original)
+++ bpsbuilder/Shipwright/lib/Shipwright/Source/Base.pm Tue Jan 22 11:08:28 2008
@@ -74,6 +74,14 @@
}
}
}
+
+ if ( -e File::Spec->catfile( $path, 'Build.PL' )
+ && !$require->{build_requires}{'Module::Build'} )
+ {
+ $require->{build_requires} =
+ { 'Module::Build' => { version => 0 } };
+ }
+
Shipwright::Config::DumpFile( $require_path, $require );
}
More information about the Bps-public-commit
mailing list