net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / app-i18n / fcitx-chinese-addons / fcitx-chinese-addons-9999.ebuild
blobb553853af2ce09599086bd00f30737a39add7cca
1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit cmake git-r3 xdg
8 EGIT_REPO_URI="https://github.com/fcitx/fcitx5-chinese-addons.git"
9 DESCRIPTION="Addons related to Chinese, including IME previous bundled inside fcitx4."
10 HOMEPAGE="https://github.com/fcitx/fcitx5-chinese-addons"
11 LICENSE="GPL-2+ LGPL-2+"
12 SLOT="5"
13 IUSE="webengine +cloudpinyin coverage +qt5 lua +opencc test"
14 REQUIRED_USE="
15 webengine? ( qt5 )
17 RESTRICT="!test? ( test )"
19 RDEPEND="
20 >=app-i18n/fcitx-5.1.5:5
21 >=app-i18n/libime-1.1.3:5
22 >=dev-libs/boost-1.61:=
23 cloudpinyin? ( net-misc/curl )
24 opencc? ( app-i18n/opencc:= )
25 qt5? (
26 dev-qt/qtconcurrent:5
27 app-i18n/fcitx-qt:5[qt5,-onlyplugin]
28 webengine? ( dev-qt/qtwebengine:5 )
30 lua? ( app-i18n/fcitx-lua:5 )
32 DEPEND="
33 ${RDEPEND}
34 test? ( dev-util/lcov )
36 BDEPEND="
37 kde-frameworks/extra-cmake-modules:0
38 virtual/pkgconfig
41 src_prepare() {
42 cmake_src_prepare
45 src_configure() {
46 local mycmakeargs=(
47 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
48 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
49 -DENABLE_GUI=$(usex qt5)
50 -DENABLE_OPENCC=$(usex opencc)
51 -DENABLE_CLOUDPINYIN=$(usex cloudpinyin)
52 -DENABLE_TEST=$(usex test)
53 -DENABLE_COVERAGE=$(usex coverage)
54 -DENABLE_QT6=Off
55 -DUSE_WEBKIT=no
57 if use loong || use x86; then
58 mycmakeargs+=(
59 -DENABLE_BROWSER=no
61 else
62 mycmakeargs+=(
63 -DENABLE_BROWSER=$(usex webengine)
66 cmake_src_configure