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.
gentoo-overlay/dev-db/sqlcipher/sqlcipher-3.4.0.ebuild

56 lines
1.2 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools eutils 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="readline libressl static-libs tcl test"
# Tcl is always needed by buildsystem
RDEPEND="
!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:*"
# Testsuite requires compilation with TCL, bug #582584
REQUIRED_USE="test? ( tcl )"
DOCS=( README.md )
src_prepare() {
append-cflags -DSQLITE_HAS_CODEC
eapply_user
eautoreconf
}
multilib_src_configure() {
ECONF_SOURCE=${S} \
econf \
--enable-fts3 \
--enable-fts4 \
--enable-fts5 \
--enable-json1 \
--enable-tempstore \
$(use_enable readline) \
$(use_enable static-libs static) \
$(use_enable tcl)
}
multilib_src_install_all() {
prune_libtool_files
}