summaryrefslogtreecommitdiff
path: root/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
diff options
context:
space:
mode:
authorFilip Kobierski <fkobi@pm.me>2024-08-27 09:20:07 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-08-29 16:11:32 +0300
commit92ba67ab1c4805f18b1cf1f3818042e06fc964e5 (patch)
tree366243bff1cb32b5da701bcec20f8f0cc699de0d /dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
parent6e3debeb92cd3f8f3a8b181decdb24490fbab581 (diff)
downloadgentoo-92ba67ab1c4805f18b1cf1f3818042e06fc964e5.tar.gz
gentoo-92ba67ab1c4805f18b1cf1f3818042e06fc964e5.tar.bz2
gentoo-92ba67ab1c4805f18b1cf1f3818042e06fc964e5.zip
dev-db/sqlcipher: add 4.6.1
- remove subslot binder for zlib - add github to HOMEPAGE - remove unneeded src_prepare - changed econfargs to be stored in an array Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: https://github.com/gentoo/gentoo/pull/38166 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-db/sqlcipher/sqlcipher-4.6.1.ebuild')
-rw-r--r--dev-db/sqlcipher/sqlcipher-4.6.1.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild b/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
new file mode 100644
index 000000000000..33844a3cf18b
--- /dev/null
+++ b/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="Full Database Encryption for SQLite"
+HOMEPAGE="
+ https://www.zetetic.net/sqlcipher/
+ https://github.com/sqlcipher/sqlcipher
+"
+SRC_URI="https://github.com/sqlcipher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug libedit readline tcl test"
+# Testsuite requires compilation with TCL, bug #582584
+REQUIRED_USE="
+ ?? ( libedit readline )
+ test? ( tcl )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/openssl:=[${MULTILIB_USEDEP}]
+ sys-libs/zlib[${MULTILIB_USEDEP}]
+ libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] )
+ readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )
+ tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-lang/tcl"
+
+src_configure() {
+ # Column metadata added due to bug #670346
+ append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-fts3
+ --enable-fts4
+ --enable-fts5
+ --enable-geopoly
+ --enable-memsys5
+ --enable-rtree
+ --enable-session
+ --enable-tempstore
+ $(use_enable debug)
+ $(use_enable libedit editline)
+ $(use_enable readline)
+ $(use_enable tcl)
+ )
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${ED}" -name '*.la' -type f -delete || die
+}