dacc00
From 8973008e7e50b14e266dd3ff6b4728289910ba5f Mon Sep 17 00:00:00 2001
dacc00
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
dacc00
Date: Thu, 18 Feb 2016 14:16:06 +0100
dacc00
Subject: [PATCH] Remove bundled source extentions
dacc00
MIME-Version: 1.0
dacc00
Content-Type: text/plain; charset=UTF-8
dacc00
Content-Transfer-Encoding: 8bit
dacc00
dacc00
Signed-off-by: Petr Písař <ppisar@redhat.com>
dacc00
---
dacc00
 README            | 30 ------------------------------
dacc00
 lib/DBD/SQLite.pm | 31 -------------------------------
dacc00
 2 files changed, 61 deletions(-)
dacc00
dacc00
diff --git a/README b/README
dacc00
index c1577c2..bf7503c 100644
dacc00
--- a/README
dacc00
+++ b/README
dacc00
@@ -1222,36 +1222,6 @@ R* TREE SUPPORT
dacc00
     using callbacks, as mentioned in the prior link, have not been
dacc00
     implemented yet.
dacc00
 
dacc00
-FOR DBD::SQLITE EXTENSION AUTHORS
dacc00
-    Since 1.30_01, you can retrieve the bundled sqlite C source and/or
dacc00
-    header like this:
dacc00
-
dacc00
-      use File::ShareDir 'dist_dir';
dacc00
-      use File::Spec::Functions 'catfile';
dacc00
-      
dacc00
-  # the whole sqlite3.h header
dacc00
-      my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
dacc00
-      
dacc00
-  # or only a particular header, amalgamated in sqlite3.c
dacc00
-      my $what_i_want = 'parse.h';
dacc00
-      my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
dacc00
-      open my $fh, '<', $sqlite3_c or die $!;
dacc00
-      my $code = do { local $/; <$fh> };
dacc00
-      my ($parse_h) = $code =~ m{(
dacc00
-        /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
dacc00
-        .+?
dacc00
-        /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
dacc00
-      )}sx;
dacc00
-      open my $out, '>', $what_i_want or die $!;
dacc00
-      print $out $parse_h;
dacc00
-      close $out;
dacc00
-
dacc00
-    You usually want to use this in your extension's "Makefile.PL", and you
dacc00
-    may want to add DBD::SQLite to your extension's "CONFIGURE_REQUIRES" to
dacc00
-    ensure your extension users use the same C source/header they use to
dacc00
-    build DBD::SQLite itself (instead of the ones installed in their
dacc00
-    system).
dacc00
-
dacc00
 TO DO
dacc00
     The following items remain to be done.
dacc00
 
dacc00
diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm
dacc00
index d03aeb5..60b74a7 100644
dacc00
--- a/lib/DBD/SQLite.pm
dacc00
+++ b/lib/DBD/SQLite.pm
dacc00
@@ -2494,37 +2494,6 @@ sources, etc.
dacc00
 
dacc00
 Other Perl virtual tables may also be published separately on CPAN.
dacc00
 
dacc00
-=head1 FOR DBD::SQLITE EXTENSION AUTHORS
dacc00
-
dacc00
-Since 1.30_01, you can retrieve the bundled SQLite C source and/or
dacc00
-header like this:
dacc00
-
dacc00
-  use File::ShareDir 'dist_dir';
dacc00
-  use File::Spec::Functions 'catfile';
dacc00
-  
dacc00
-  # the whole sqlite3.h header
dacc00
-  my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
dacc00
-  
dacc00
-  # or only a particular header, amalgamated in sqlite3.c
dacc00
-  my $what_i_want = 'parse.h';
dacc00
-  my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
dacc00
-  open my $fh, '<', $sqlite3_c or die $!;
dacc00
-  my $code = do { local $/; <$fh> };
dacc00
-  my ($parse_h) = $code =~ m{(
dacc00
-    /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
dacc00
-    .+?
dacc00
-    /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
dacc00
-  )}sx;
dacc00
-  open my $out, '>', $what_i_want or die $!;
dacc00
-  print $out $parse_h;
dacc00
-  close $out;
dacc00
-
dacc00
-You usually want to use this in your extension's C<Makefile.PL>,
dacc00
-and you may want to add DBD::SQLite to your extension's C<CONFIGURE_REQUIRES>
dacc00
-to ensure your extension users use the same C source/header they use
dacc00
-to build DBD::SQLite itself (instead of the ones installed in their
dacc00
-system).
dacc00
-
dacc00
 =head1 TO DO
dacc00
 
dacc00
 The following items remain to be done.
dacc00
-- 
dacc00
2.5.0
dacc00