1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

We're not allowed to compute configure_requires dependencies.

Also, made the dependencies a little more accurate.
This commit is contained in:
Adam Kennedy 2009-04-05 23:33:41 +00:00
parent 032999c753
commit bea7e0f192

View file

@ -2,13 +2,6 @@ use 5.006; #from ExtUtils::MakeMaker 6.48 and DBI 1.43
use strict;
use ExtUtils::MakeMaker;
use Config;
my $DBI_required=1.57;
eval { require DBI; };
if ($@ or DBI->VERSION < $DBI_required) {
print "Please install DBI $DBI_required manually or upgrade you CPAN/CPANPLUS shell\n";
exit 0;
}
# Some dependencies need to be more aggressive on Windows
sub WINLIKE () {
@ -53,6 +46,17 @@ EOT
}
};
# Because DBI generates a postamble at configure-time, we need
# the required version of DBI very early.
my $DBI_required = 1.57;
eval {
require DBI;
};
if ( $@ or DBI->VERSION < $DBI_required ) {
print "DBI 1.57 is required to configure this module, please install it or upgrade your CPAN/CPANPLUS shell\n";
exit(0);
}
# 2005/6/19, by rjray@blackperl.com
#
# Determine if we are going to use the provided SQLite code, or an already-
@ -199,9 +203,9 @@ WriteMakefile(
ABSTRACT => 'Self Contained SQLite RDBMS in a DBI Driver',
VERSION_FROM => 'lib/DBD/SQLite.pm',
PREREQ_PM => {
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
'DBI' => $DBI_required,
'Test::More' => '0.42',
'Test::NoWarnings' => '0.081',
},
OPTIONAL( '6.48',
MIN_PERL_VERSION => '5.006',
@ -216,12 +220,13 @@ WriteMakefile(
META_MERGE => {
configure_requires => {
'ExtUtils::MakeMaker' => '6.48',
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
'File::Spec' => '0.82', # This is not allowed to be computed
'DBI' => $DBI_required,
},
build_requires => {
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
'Test::More' => '0.42',
'Test::NoWarnings' => '0.081',
# 'Test::NoWarnings' => '0.081', # Bundled in /inc
},
resources => {
license => 'http://dev.perl.org/licenses/',