gentoo/dev-db/sqlcipher/sqlcipher-3.4.2.ebuild
Michał Górny 064af661d0
*/*: [QA] Fix trivial cases of MissingTestRestrict
The result was achieved via the following pipeline:

    pkgcheck scan -c RestrictTestCheck -R FormatReporter \
      --format '{category}/{package}/{package}-{version}.ebuild' |
    xargs -n32 grep -L RESTRICT |
    xargs -n32 sed -i -e '/^IUSE=.*test/aRESTRICT="!test? ( test )"'

The resulting metadata was compared before and after the change.
Few Go ebuilds had to be fixed manually due to implicit RESTRICT=strip
added by the eclass.  Two ebuilds have to be fixed because of multiline
IUSE.

Suggested-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13942
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2019-12-11 00:22:38 +01:00

66 lines
1.5 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# 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="libedit readline libressl static-libs tcl test"
RESTRICT="!test? ( 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() {
# bug #678502
eapply "${FILESDIR}/${P}-libressl-2.8.patch"
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 libedit editline) \
$(use_enable readline) \
$(use_enable static-libs static) \
$(use_enable tcl)
}
multilib_src_install_all() {
prune_libtool_files
einstalldocs
}