[Bps-public-commit] r10250 - bpsbuilder/BPB/lib/BPB/Script
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Sat Jan 5 02:26:36 EST 2008
Author: sunnavy
Date: Sat Jan 5 02:26:35 2008
New Revision: 10250
Modified:
bpsbuilder/BPB/lib/BPB/Script/Import.pm
Log:
we needs perl libs in install dir
Modified: bpsbuilder/BPB/lib/BPB/Script/Import.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Script/Import.pm (original)
+++ bpsbuilder/BPB/lib/BPB/Script/Import.pm Sat Jan 5 02:26:35 2008
@@ -15,6 +15,7 @@
use BPB::Config;
use File::Copy qw/copy move/;
use File::Temp qw/tempdir/;
+use Config;
sub options {
(
@@ -152,7 +153,10 @@
}
elsif ( -f 'Build.PL' ) {
push @commands,
- $bpb->build->perl . ' Build.PL --install_base=%%INSTALL_BASE%%';
+ $bpb->build->perl
+ . ' -I%%INSTALL_BASE%%/lib/perl5'
+ . " -I%%INSTALL_BASE%%/lib/perl5/$Config{archname}"
+ . ' Build.PL --install_base=%%INSTALL_BASE%%';
unless ( $bpb->build->skip_test ) {
push @commands, "./Build test";
}
@@ -160,7 +164,10 @@
}
elsif ( -f 'Makefile.PL' ) {
push @commands,
- $bpb->build->perl . ' Makefile.PL INSTALL_BASE=%%INSTALL_BASE%%';
+ $bpb->build->perl
+ . ' -I%%INSTALL_BASE%%/lib/perl5'
+ . " -I%%INSTALL_BASE%%/lib/perl5/$Config{archname} "
+ . ' Makefile.PL INSTALL_BASE=%%INSTALL_BASE%%';
unless ( $bpb->build->skip_test ) {
push @commands, 'make test';
}
More information about the Bps-public-commit
mailing list