1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="Self Contained RDBMS in a DBI Driver"
13 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
14 IUSE="test system-sqlite"
15 RESTRICT="!test? ( test )"
17 # Please read https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/DBD-SQLite
18 # when bumping versions re: system-sqlite interop
21 >=dev-db/sqlite-3.21.0[extensions(+)]
23 >=dev-perl/DBI-1.570.0
24 !<dev-perl/DBD-SQLite-1
25 virtual/perl-Scalar-List-Utils
28 >=virtual/perl-ExtUtils-MakeMaker-6.480.0
30 >=virtual/perl-File-Spec-0.820.0
31 >=virtual/perl-Test-Simple-0.420.0
36 perl-module_src_prepare
37 if use system-sqlite; then
38 einfo "Removing bundled SQLite"
39 # Flip Makefile into system mode.
40 sed -i 's/^if ( 0 )/if ( 1 )/' "${S}"/Makefile.PL || die
41 # remove bundled sqlite (rt.cpan#61361)
42 for i in sqlite3{.c,.h,ext.h} ; do
44 sed -i -e "/^${i}\$/d" MANIFEST || die
46 myconf="SQLITE_LOCATION=${EPREFIX}/usr"