forked from gwenshap/DBD-Oracle
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile.PL fix for missing Test::NoWarnings build requirement.
Along with appropriate update to Github Action. Also we don't care about ExtUtils::MakeMaker version number anymore. This fixes GH#175.
- Loading branch information
Showing
2 changed files
with
10 additions
and
12 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 |
---|---|---|
|
@@ -45,6 +45,7 @@ my %opts = ( | |
NAME => 'DBD::Oracle', | ||
VERSION_FROM => 'lib/DBD/Oracle.pm', | ||
PREREQ_PM => { "Test::Simple" => 0.90, # actually Test::More pkg in T::S dist | ||
"Test::NoWarnings" => 1.00, | ||
"DBI" => 1.623}, | ||
OBJECT => '$(O_FILES)', | ||
DEFINE => '', | ||
|
@@ -59,20 +60,16 @@ my %opts = ( | |
configure_requires => { "DBI" => '1.623' }, | ||
build_requires => {"DBI" => '1.623', | ||
"ExtUtils::MakeMaker" => 0, | ||
"Test::Simple" => '0.90'}, | ||
"Test::Simple" => '0.90', | ||
"Test::NoWarnings" => "1.00"}, | ||
}, | ||
); | ||
my $eumm = $ExtUtils::MakeMaker::VERSION; | ||
$eumm =~ tr/_//d; | ||
|
||
if ($eumm >= 5.43) { | ||
$opts{AUTHOR} = 'Tim Bunce ([email protected])'; | ||
$opts{ABSTRACT_FROM} = 'lib/DBD/Oracle.pm'; | ||
$opts{PREREQ_PM} = { DBI => 1.623 }; | ||
$opts{CAPI} = 'TRUE' if $Config{archname} =~ /-object\b/i; | ||
} | ||
|
||
$opts{LICENSE} = 'perl' if $eumm >= 6.3002; | ||
$opts{AUTHOR} = 'Tim Bunce ([email protected])'; | ||
$opts{ABSTRACT_FROM} = 'lib/DBD/Oracle.pm'; | ||
$opts{CAPI} = 'TRUE' if $Config{archname} =~ /-object\b/i; | ||
|
||
$opts{LICENSE} = 'perl'; | ||
$opts{CCFLAGS} = "-P $Config{ccflags}" if $Config{cc} eq 'bcc32'; # force C++ | ||
$opts{LINKTYPE} = 'static' if $Config{dlsrc} =~ /dl_none/; | ||
|
||
|