summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2017-09-16 22:11:03 +0200
committerMike Gilbert <floppym@gentoo.org>2017-09-18 14:31:02 -0400
commit1c2c816ad9c059748e74cb333ab0cbe050fe8eb4 (patch)
tree41749258a1604664b9cd2e575272d794c2016245 /app-i18n/libchewing
parentapp-i18n/libchewing: Set subslot based on soname of libchewing.so. (diff)
downloadgentoo-1c2c816ad9c059748e74cb333ab0cbe050fe8eb4.tar.gz
gentoo-1c2c816ad9c059748e74cb333ab0cbe050fe8eb4.tar.bz2
gentoo-1c2c816ad9c059748e74cb333ab0cbe050fe8eb4.zip
app-i18n/libchewing: Allow to run test suite without installing libchewing.a.
Diffstat (limited to 'app-i18n/libchewing')
-rw-r--r--app-i18n/libchewing/libchewing-0.5.1.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/app-i18n/libchewing/libchewing-0.5.1.ebuild b/app-i18n/libchewing/libchewing-0.5.1.ebuild
index 99560d8350c2..fb0597f8edb1 100644
--- a/app-i18n/libchewing/libchewing-0.5.1.ebuild
+++ b/app-i18n/libchewing/libchewing-0.5.1.ebuild
@@ -13,16 +13,16 @@ SLOT="0/3"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
IUSE="static-libs test"
-REQUIRED_USE="test? ( static-libs )"
RDEPEND="dev-db/sqlite:3"
DEPEND="${RDEPEND}
test? ( sys-libs/ncurses[unicode] )"
src_configure() {
+ # libchewing.a is required for building of tests.
econf \
- $(use_enable static-libs static) \
- --with-sqlite3
+ --with-sqlite3 \
+ $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
}
src_test() {
@@ -32,4 +32,5 @@ src_test() {
src_install() {
default
prune_libtool_files
+ use static-libs || find "${D}" -name "*.a" -delete || die
}