1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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+"
13 IUSE
="webengine +cloudpinyin coverage +qt5 lua +opencc test"
17 RESTRICT
="!test? ( test )"
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:= )
27 app-i18n/fcitx-qt:5[qt5,-onlyplugin]
28 webengine? ( dev-qt/qtwebengine:5 )
30 lua? ( app-i18n/fcitx-lua:5 )
34 test? ( dev-util/lcov )
37 kde-frameworks/extra-cmake-modules:0
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
)
57 if use loong || use x86
; then
63 -DENABLE_BROWSER=$
(usex webengine
)