Revert "app-i18n/fcitx5-configtool: backports the commit that fixing the issue #38...
[gentoo-zh.git] / app-i18n / fcitx5-configtool / fcitx5-configtool-5.0.3.ebuild
blob6ccada781fbda89dabc0b9a673a877cee5823eef
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit cmake git-r3
7 EGIT_REPO_URI="https://github.com/fcitx/fcitx5-configtool.git"
8 if [[ "${PV}" == 9999 ]]; then
9 KEYWORDS=""
10 else
11 KEYWORDS="~amd64 ~x86"
12 EGIT_COMMIT="${PV}"
15 DESCRIPTION="Configuration module for Fcitx"
16 HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5-configtool"
18 LICENSE="GPL-2+"
19 SLOT="5-plasma5"
20 IUSE="+kcm +config-qt test"
22 RDEPEND="app-i18n/fcitx5
23 app-i18n/fcitx5-qt[qt5,-only_plugin]
24 dev-qt/qtcore:5
25 dev-qt/qtdbus:5
26 dev-qt/qtgui:5
27 dev-qt/qtwidgets:5
28 dev-qt/qtx11extras:5
29 kde-frameworks/kitemviews:5
30 kde-frameworks/kwidgetsaddons:5
31 virtual/libintl
32 x11-libs/libX11
33 x11-libs/libxkbfile
34 kcm? (
35 kde-frameworks/kconfigwidgets:5
36 kde-frameworks/kcoreaddons:5
37 kde-frameworks/ki18n:5
38 kde-frameworks/kirigami:5
39 kde-frameworks/kdeclarative:5
41 !kcm? (
42 dev-qt/qtdeclarative
44 config-qt? (
45 kde-frameworks/kitemviews:5
47 !${CATEGORY}/${PN}:4[-minimal(-)]"
49 DEPEND="${RDEPEND}
50 kde-frameworks/extra-cmake-modules:5
51 sys-devel/gettext
52 virtual/pkgconfig"
54 src_configure() {
55 local mycmakeargs=(
56 -DKDE_INSTALL_USE_QT_SYS_PATHS=yes
57 -DENABLE_KCM=$(usex kcm)
58 -DENABLE_CONFIG_QT=$(usex config-qt)
59 -DENABLE_TEST=$(usex test)
62 cmake_src_configure