diff options
author | Sam James <sam@gentoo.org> | 2023-09-21 23:26:58 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-21 23:26:58 +0100 |
commit | 4e357ec373a7cc95b5c5c366f9170d07d14f0e4f (patch) | |
tree | c7c6d371657bdb216265bf97993dd0a8f6ca4046 /dev-perl | |
parent | app-containers/containers-common: add 0.56.0 and live (diff) | |
download | gentoo-4e357ec373a7cc95b5c5c366f9170d07d14f0e4f.tar.gz gentoo-4e357ec373a7cc95b5c5c366f9170d07d14f0e4f.tar.bz2 gentoo-4e357ec373a7cc95b5c5c366f9170d07d14f0e4f.zip |
dev-perl/DBD-SQLite: add 1.740.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/DBD-SQLite/DBD-SQLite-1.740.0.ebuild | 60 | ||||
-rw-r--r-- | dev-perl/DBD-SQLite/Manifest | 1 |
2 files changed, 61 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 8489694ce7eb..480b2572d99e 100644 --- a/dev-perl/DBD-SQLite/Manifest +++ b/dev-perl/DBD-SQLite/Manifest @@ -1 +1,2 @@ DIST DBD-SQLite-1.72.tar.gz 2604501 BLAKE2B 0dd73ab4931997d432158ebfc7607e9de1be30053ac6c4604619b0c250c94c6c8e5fb4cf0ba0092ce51bcbef75a93a20f6fd123f7322fc93755f3acbbe2cb687 SHA512 67a90c618a3626b3ae0b333b5eb4d4d0c8c13712bbcd50c135bf74e83dc252301664089803597c1bcbebf7f1eda040673d4438e70e2dae0aef3b8ebeeecd2f79 +DIST DBD-SQLite-1.74.tar.gz 2656440 BLAKE2B 8be462ae0f16fac973167dc44e6eea02089218345a379af26041b145087191325399e6813ea7f890d78c7cf0e9da84bba3b0ee9f698b033af6667d3cdb3b320e SHA512 46bb26ffac07ca6d25d44101bd59fe7ebb397d159154fe10528e4ca4ee270e62159a40be0325099237ce28fb6ce11b5dc1da5396c3e9a3e0e03062a65c16cbab |