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

Check DBI version

This commit is contained in:
Alexandr Ciornii 2009-04-05 22:28:42 +00:00
parent df0e738393
commit 032999c753
2 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,7 @@
Changes for Perl extension DBD-SQLite.
- Check DBI version in Makefile.PL (CHORNY)
1.19_10 Mon 6 Apr 2009
- A few more tests moved to Test::More (ADAMK)
- We need DBIXS_REVISION, which appeared in DBI 1.57.

View file

@ -2,6 +2,13 @@ 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 () {
@ -192,7 +199,7 @@ WriteMakefile(
ABSTRACT => 'Self Contained SQLite RDBMS in a DBI Driver',
VERSION_FROM => 'lib/DBD/SQLite.pm',
PREREQ_PM => {
'DBI' => '1.43',
'DBI' => $DBI_required,
'Test::More' => '0.42',
'Test::NoWarnings' => '0.081',
},
@ -210,7 +217,7 @@ WriteMakefile(
configure_requires => {
'ExtUtils::MakeMaker' => '6.48',
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
'DBI' => '1.57',
'DBI' => $DBI_required,
},
build_requires => {
'Test::More' => '0.42',