1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils flag-o-matic ltprune multilib-minimal
8 DESCRIPTION="Full Database Encryption for SQLite"
9 HOMEPAGE="https://www.zetetic.net/sqlcipher/"
10 SRC_URI="https://github.com/sqlcipher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 IUSE="libedit readline libressl static-libs tcl test"
17 RESTRICT="!test? ( test )"
19 # Tcl is always needed by buildsystem
21 libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] )
22 !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
23 libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
24 readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
25 tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
30 # Libedit and readline support are mutually exclusive
31 # Testsuite requires compilation with TCL, bug #582584
33 libedit? ( !readline )
41 eapply "${FILESDIR}/${P}-libressl-2.8.patch"
43 append-cflags -DSQLITE_HAS_CODEC
48 multilib_src_configure() {
56 $(use_enable libedit editline) \
57 $(use_enable readline) \
58 $(use_enable static-libs static) \
62 multilib_src_install_all() {