1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [[ "${PV}" == "9999" ]]; then
7 inherit autotools git-r3
9 EGIT_REPO_URI="https://github.com/chewing/libchewing"
12 DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
13 HOMEPAGE="http://chewing.im/ https://github.com/chewing/libchewing"
14 if [[ "${PV}" == "9999" ]]; then
17 SRC_URI="https://github.com/chewing/${PN}/releases/download/v${PV}/${P}.tar.bz2"
23 IUSE="static-libs test"
25 RDEPEND="dev-db/sqlite:3"
27 test? ( sys-libs/ncurses[unicode] )"
32 if [[ "${PV}" == "9999" ]]; then
38 # libchewing.a is required for building of tests.
41 $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
50 find "${D}" -name "*.la" -delete || die
51 use static-libs || find "${D}" -name "*.a" -delete || die