summaryrefslogtreecommitdiff
path: root/dev-perl/DBD-SQLite
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/DBD-SQLite')
-rw-r--r--dev-perl/DBD-SQLite/DBD-SQLite-1.740.0.ebuild60
-rw-r--r--dev-perl/DBD-SQLite/Manifest2
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-1.740.0.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-1.740.0.ebuild
new file mode 100644
index 000000000000..cc47f92ae8f8
--- /dev/null
+++ b/dev-perl/DBD-SQLite/DBD-SQLite-1.740.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=ISHIGAKI
+DIST_VERSION=1.74
+inherit perl-module
+
+DESCRIPTION="Self Contained RDBMS in a DBI Driver"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="system-sqlite"
+
+# Please read https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/DBD-SQLite
+# when bumping versions re: system-sqlite interop
+SYSTEM_SQLITE_VER="3.42.0"
+SYSTEM_SQLITE_DEP="
+ >=dev-db/sqlite-${SYSTEM_SQLITE_VER}[extensions(+)]
+"
+RDEPEND="
+ system-sqlite? ( ${SYSTEM_SQLITE_DEP} )
+ >=dev-perl/DBI-1.570.0
+ !<dev-perl/DBD-SQLite-1
+ virtual/perl-Scalar-List-Utils
+"
+DEPEND="
+ system-sqlite? ( ${SYSTEM_SQLITE_DEP} )
+"
+BDEPEND="${RDEPEND}
+ >=virtual/perl-ExtUtils-MakeMaker-6.480.0
+ test? (
+ >=virtual/perl-File-Spec-0.820.0
+ >=virtual/perl-Test-Simple-0.880.0
+ )
+"
+
+src_prepare() {
+ perl-module_src_prepare
+
+ local bundled_sqlite_version=$(sed -En '/^#define SQLITE_VERSION /{s/[^0-9.]//gp}' sqlite3.h)
+ if [[ ${SYSTEM_SQLITE_VER} != ${bundled_sqlite_version} ]] ; then
+ eerror "Source sqlite version: ${bundled_sqlite_version}"
+ eerror "Ebuild sqlite version: ${SYSTEM_SQLITE_VER}"
+ die "Ebuild needs to fix SYSTEM_SQLITE_VER!"
+ fi
+
+ if use system-sqlite; then
+ einfo "Removing bundled SQLite"
+ eapply "${FILESDIR}/${PN}-1.64-no-bundle.patch"
+ # Remove bundled sqlite (rt.cpan#61361)
+ perl_rm_files sqlite3{.c,.h,ext.h}
+ fi
+}
+
+src_configure() {
+ use system-sqlite && myconf="SQLITE_LOCATION=${EPREFIX}/usr"
+ perl-module_src_configure
+}
diff --git a/dev-perl/DBD-SQLite/Manifest b/dev-perl/DBD-SQLite/Manifest
index d14657462f9f..76a101644e9b 100644
--- a/dev-perl/DBD-SQLite/Manifest
+++ b/dev-perl/DBD-SQLite/Manifest
@@ -1,4 +1,6 @@
AUX DBD-SQLite-1.64-no-bundle.patch 722 BLAKE2B 6c906a72b8ecc0111eed947ce9ab06c8ef28a2989d1dcd3d23937dc9a4f656ef7342ab2b66634ba987282934156a1e8ba0621766279293044c1269f2e7754d91 SHA512 b547a410367d739b3d8790788a5d6cb8b7f9026f176cbcaa90c01c6007a406b28dbb06deda00ffb4bd6b502433c6035026754809e1faae6d2855180c0f0b58e0
DIST DBD-SQLite-1.72.tar.gz 2604501 BLAKE2B 0dd73ab4931997d432158ebfc7607e9de1be30053ac6c4604619b0c250c94c6c8e5fb4cf0ba0092ce51bcbef75a93a20f6fd123f7322fc93755f3acbbe2cb687 SHA512 67a90c618a3626b3ae0b333b5eb4d4d0c8c13712bbcd50c135bf74e83dc252301664089803597c1bcbebf7f1eda040673d4438e70e2dae0aef3b8ebeeecd2f79
+DIST DBD-SQLite-1.74.tar.gz 2656440 BLAKE2B 8be462ae0f16fac973167dc44e6eea02089218345a379af26041b145087191325399e6813ea7f890d78c7cf0e9da84bba3b0ee9f698b033af6667d3cdb3b320e SHA512 46bb26ffac07ca6d25d44101bd59fe7ebb397d159154fe10528e4ca4ee270e62159a40be0325099237ce28fb6ce11b5dc1da5396c3e9a3e0e03062a65c16cbab
EBUILD DBD-SQLite-1.720.0.ebuild 1666 BLAKE2B ff0df4fcc0ad9424d235a5941bf18552ab7a732b8843ca5e63886eec6cbd95a8004d05960c2dc7661f19c8ab53e5032bdc46fe57698c55dc84ab5686d160965c SHA512 645261faa6178d6d89dc3a5b4793ad8747ac688e4d8bf185d7e4a9ee99bbf50f5f7f51deb6646c64a7494d934d12a2c213753ad299bdf9711fc9151744548a11
+EBUILD DBD-SQLite-1.740.0.ebuild 1674 BLAKE2B 88832e4f4f966fd3afc99fb1df2750d7625fc7cff23b3d06e081a831a5ce7e23b3cbaac37b576673ee60de5d8f7c86de33e61810f8320f01c4c4235561c7ea3c SHA512 755d4b46833a270957d84d000eb78517cd115faa8668fc44ed93577d6b188e12b090281bd7b0cd382d939dedb664c65d3cf3cdf0f6e3ae2327b08455c7e8d5b8
MISC metadata.xml 1207 BLAKE2B 6da8a1970a2285dbc2e9acbe3a56f0e3a046f99bc55885b3b2aeb5734073c2b5b362fae545196201641bf8f68d575e54b44b38e45540384bfc44f2823fe5b308 SHA512 0f42b18155dadce74eb6263c8fe69b68b938219da9b1397617c0dd004bf013a798ddfd73711dedda44e7e627e29b337bf6523a3648c59092afae6b2dfa6aca94