diff options
| author | Sergey Popov <pinkbyte@gentoo.org> | 2019-02-26 13:32:18 +0300 |
|---|---|---|
| committer | Sergey Popov <pinkbyte@gentoo.org> | 2019-02-26 13:32:18 +0300 |
| commit | 119f30f9cb4597cb3b7631405410f4c98b04b15d (patch) | |
| tree | 38b5e722d15755089519a86af06731e12c58f297 /dev-db/sqlcipher/sqlcipher-4.0.1.ebuild | |
| parent | fdaf8de795251ce4fad3e4c1d4f2928055f1f73e (diff) | |
| download | gentoo-119f30f9cb4597cb3b7631405410f4c98b04b15d.tar.gz gentoo-119f30f9cb4597cb3b7631405410f4c98b04b15d.tar.bz2 gentoo-119f30f9cb4597cb3b7631405410f4c98b04b15d.zip | |
dev-db/sqlcipher: version bump
Bump EAPI to 7.
Add support for some extensions during buildtime,
including column metadata info.
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Reported-by: paradox_ptr <paradox_ptr@protonmail.ch>
Closes: https://bugs.gentoo.org/670346
Package-Manager: Portage-2.3.51, Repoman-2.3.10
Diffstat (limited to 'dev-db/sqlcipher/sqlcipher-4.0.1.ebuild')
| -rw-r--r-- | dev-db/sqlcipher/sqlcipher-4.0.1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild b/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild new file mode 100644 index 000000000000..7ce770c2ff1d --- /dev/null +++ b/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic multilib-minimal + +DESCRIPTION="Full Database Encryption for SQLite" +HOMEPAGE="https://www.zetetic.net/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 libressl static-libs tcl test" + +# Tcl is always needed by buildsystem +RDEPEND=" + libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] ) + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) + tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + dev-lang/tcl:*" + +# Libedit and readline support are mutually exclusive +# Testsuite requires compilation with TCL, bug #582584 +REQUIRED_USE=" + libedit? ( !readline ) + test? ( tcl ) +" + +DOCS=( README.md ) + +src_prepare() { + # Column metadata added due to bug #670346 + append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA + default_src_prepare + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf \ + --enable-fts3 \ + --enable-fts4 \ + --enable-fts5 \ + --enable-geopoly \ + --enable-json1 \ + --enable-memsys5 \ + --enable-rtree \ + --enable-session \ + --enable-tempstore \ + $(use_enable debug) \ + $(use_enable libedit editline) \ + $(use_enable readline) \ + $(use_enable static-libs static) \ + $(use_enable tcl) +} + +multilib_src_install_all() { + find "${D}" -name '*.la' -type f -delete || die + einstalldocs +} |
