You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.6 KiB
68 lines
1.6 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Foundation
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
5 years ago
|
inherit autotools flag-o-matic multilib-minimal
|
||
7 years ago
|
|
||
|
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"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
7 years ago
|
|
||
5 years ago
|
IUSE="debug libedit readline libressl static-libs tcl test"
|
||
7 years ago
|
|
||
|
# Tcl is always needed by buildsystem
|
||
|
RDEPEND="
|
||
5 years ago
|
libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] )
|
||
7 years ago
|
!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:*"
|
||
|
|
||
5 years ago
|
# Libedit and readline support are mutually exclusive
|
||
7 years ago
|
# Testsuite requires compilation with TCL, bug #582584
|
||
5 years ago
|
REQUIRED_USE="
|
||
|
libedit? ( !readline )
|
||
|
test? ( tcl )
|
||
|
"
|
||
7 years ago
|
|
||
|
DOCS=( README.md )
|
||
|
|
||
|
src_prepare() {
|
||
5 years ago
|
# Column metadata added due to bug #670346
|
||
|
append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA
|
||
|
default_src_prepare
|
||
7 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
multilib_src_configure() {
|
||
|
ECONF_SOURCE=${S} \
|
||
|
econf \
|
||
|
--enable-fts3 \
|
||
|
--enable-fts4 \
|
||
|
--enable-fts5 \
|
||
5 years ago
|
--enable-geopoly \
|
||
7 years ago
|
--enable-json1 \
|
||
5 years ago
|
--enable-memsys5 \
|
||
|
--enable-rtree \
|
||
|
--enable-session \
|
||
7 years ago
|
--enable-tempstore \
|
||
5 years ago
|
$(use_enable debug) \
|
||
|
$(use_enable libedit editline) \
|
||
7 years ago
|
$(use_enable readline) \
|
||
|
$(use_enable static-libs static) \
|
||
|
$(use_enable tcl)
|
||
|
}
|
||
|
|
||
|
multilib_src_install_all() {
|
||
5 years ago
|
find "${D}" -name '*.la' -type f -delete || die
|
||
7 years ago
|
einstalldocs
|
||
|
}
|