Skip to content

Commit

Permalink
Added DBI to PREREQ_PM in Makefile.PL by Martin J. Evans
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
8 changes: 8 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
=head1 Changes in DBD-Oracle 1.28 (svn rev 14583)

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


=head1 Changes in DBD-Oracle 1.27 (svn rev 14583)

This version removes �PERL_POLLUTE� and adds in PL_ where required so it will be fully compatible with Perl 5.13
Expand Down
18 changes: 12 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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 => '',
Expand All @@ -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/;

Expand Down Expand Up @@ -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 ---
Expand Down

0 comments on commit d4e203d

Please sign in to comment.