-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added DBI to PREREQ_PM in Makefile.PL by Martin J. Evans
Added build_requires in Makefile.PL by Martin J. Evans Added workaround for ExtUtils::MakeMaker problems by Martin J. Evans Added LICENSE to Makefile.PL by Martin J. Evans git-svn-id: http://svn.perl.org/modules/dbd-oracle/trunk@14655 50811bd7-b8ce-0310-adc1-d9db26280581
- Loading branch information
byterock
committed
Jan 27, 2011
1 parent
ad0324a
commit d4e203d
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,8 @@ $| = 1; | |
my %opts = ( | ||
NAME => 'DBD::Oracle', | ||
VERSION_FROM => 'Oracle.pm', | ||
PREREQ_PM => { "Test::Simple" => 0.40 }, # actually Test::More pkg in T::S dist | ||
PREREQ_PM => { "Test::Simple" => 0.40, # actually Test::More pkg in T::S dist | ||
"DBI" => 1.51}, | ||
EXE_FILES => [ "ora_explain$exe_ext" ], | ||
OBJECT => '$(O_FILES)', | ||
DEFINE => '', | ||
|
@@ -58,16 +59,22 @@ my %opts = ( | |
COMPRESS => 'gzip -v9', SUFFIX => 'gz', | ||
}, | ||
META_MERGE => { | ||
configure_requires => { DBI => '1.51' } | ||
configure_requires => { "DBI" => '1.51' }, | ||
build_requires => {"DBI" => '1.51', | ||
"ExtUtils::MakeMaker" => 0} | ||
}, | ||
); | ||
if ($ExtUtils::MakeMaker::VERSION >= 5.43) { | ||
my $eumm = $ExtUtils::MakeMaker::VERSION; | ||
$eumm =~ tr/_//d; | ||
|
||
if ($eumm >= 5.43) { | ||
$opts{AUTHOR} = 'Tim Bunce ([email protected])'; | ||
$opts{ABSTRACT_FROM} = 'Oracle.pm'; | ||
$opts{PREREQ_PM} = { DBI => 1.51 }; | ||
$opts{CAPI} = 'TRUE' if $Config{archname} =~ /-object\b/i; | ||
} | ||
|
||
$opts{LICENSE} = 'perl' if $eumm >= 6.3002; | ||
$opts{CCFLAGS} = "-P $Config{ccflags}" if $Config{cc} eq 'bcc32'; # force C++ | ||
$opts{LINKTYPE} = 'static' if $Config{dlsrc} =~ /dl_none/; | ||
|
||
|
@@ -282,11 +289,10 @@ elsif (($os eq 'MSWin32') or ($os =~ /cygwin/i)) { | |
|
||
print "Using $OCIDIR/lib/$oci_compiler_dir/$OCILIB.lib\n"; | ||
$opts{LIBS} = [ "-L$OH/$OCIDIR/LIB/$oci_compiler_dir $OCILIB" ]; | ||
|
||
}; | ||
|
||
my $OCIINCLUDE = "-I\"$OH/$OCIDIR/include\" -I\"$OH/rdbms/demo\""; | ||
$opts{INC} = "$OCIINCLUDE -I\"$dbi_arch_dir\""; | ||
my $OCIINCLUDE = "-I$OH/$OCIDIR/include -I$OH/rdbms/demo"; | ||
$opts{INC} = "$OCIINCLUDE -I$dbi_arch_dir"; | ||
} | ||
|
||
# --- UNIX Variants --- | ||
|