newer version DBD-SQLite

svn path=/nixpkgs/trunk/; revision=22958
This commit is contained in:
Rob Vermaas 2010-08-05 09:44:28 +00:00
parent 5dc58d5c15
commit f809b04a33
2 changed files with 27 additions and 27 deletions

View file

@ -1,11 +1,11 @@
{fetchurl, buildPerlPackage, DBI, sqlite}: {fetchurl, buildPerlPackage, DBI, sqlite}:
buildPerlPackage rec { buildPerlPackage rec {
name = "DBD-SQLite-1.25"; name = "DBD-SQLite-1.29";
src = fetchurl { src = fetchurl {
url = "mirror://cpan/authors/id/A/AD/ADAMK/${name}.tar.gz"; url = "mirror://cpan/authors/id/A/AD/ADAMK/${name}.tar.gz";
sha256 = "17dd09jhf2kk33rqlsg74c1sb049qabmyh857alqc9fhffd1yb43"; sha256 = "0rq8f9avaxqbnjq2zpd2knz2wsn8qiffnbbphp7a3bakwhlxbl2i";
}; };
propagatedBuildInputs = [DBI]; propagatedBuildInputs = [DBI];

View file

@ -1,39 +1,39 @@
diff -rc DBD-SQLite-1.25-orig/Makefile.PL DBD-SQLite-1.25/Makefile.PL diff -rc DBD-SQLite-1.29/Makefile.PL DBD-SQLite-1.29-new/Makefile.PL
*** DBD-SQLite-1.25-orig/Makefile.PL 2009-04-23 12:12:04.000000000 +0200 *** DBD-SQLite-1.29/Makefile.PL 2010-01-08 10:08:29.000000000 +0100
--- DBD-SQLite-1.25/Makefile.PL 2009-07-02 14:07:25.000000000 +0200 --- DBD-SQLite-1.29-new/Makefile.PL 2010-08-05 11:42:53.000000000 +0200
*************** ***************
*** 79,85 **** *** 123,129 ****
# Let's find out the full story first, so we can make an informed # a system sqlite is also sophisticated enough to have a patching system
# decision to whether to do this. -- ADAMK # that can change the if ( 0 ) to if ( 1 )
my ($force_local, $sqlite_base, $sqlite_lib, $sqlite_inc); my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
! if ( 0 ) { ! if ( 0 ) {
require File::Spec; require File::Spec;
if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
$sqlite_base =~ /=(.*)/; $sqlite_base =~ /=(.*)/;
--- 79,85 ---- --- 123,129 ----
# Let's find out the full story first, so we can make an informed # a system sqlite is also sophisticated enough to have a patching system
# decision to whether to do this. -- ADAMK # that can change the if ( 0 ) to if ( 1 )
my ($force_local, $sqlite_base, $sqlite_lib, $sqlite_inc); my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
! if ( 1 ) { ! if ( 1 ) {
require File::Spec; require File::Spec;
if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
$sqlite_base =~ /=(.*)/; $sqlite_base =~ /=(.*)/;
*************** ***************
*** 141,148 **** *** 184,191 ****
} else {
# Use always the bundled one. # Always the bundled one.
# XXX: ... and this message should be more informative. # XXX: ... and this message should be more informative.
! $force_local = 1; ! $sqlite_local = 1;
! print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING}; ! print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING};
}
@ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV ); @ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );
--- 184,191 ----
--- 141,148 ---- } else {
# Always the bundled one.
# Use always the bundled one. # XXX: ... and this message should be more informative.
# XXX: ... and this message should be more informative. ! # $sqlite_local = 1;
! #$force_local = 1; ! # print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING};
! #print "We're using the bundled sqlite library.\n" if $ENV{AUTOMATED_TESTING}; }
@ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV ); @ARGV = grep( ! /SQLITE_LOCATION|USE_LOCAL_SQLITE/, @ARGV );