Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/fcitx-rime/
Date: Wed, 13 Jun 2018 21:07:44
Message-Id: 1528924055.4d9a4271b3180d3a1c4c6bda1f4ccb4d0bd74567.floppym@gentoo
1 commit: 4d9a4271b3180d3a1c4c6bda1f4ccb4d0bd74567
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Wed Jun 13 20:37:13 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 13 21:07:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d9a4271
7
8 app-i18n/fcitx-rime: Add "configuration_tool" USE flag.
9
10 https://github.com/fcitx/fcitx-rime/pull/40
11 https://github.com/fcitx/fcitx-rime/commit/af3897bb6c6f1eba14a908e77cfc3e1431e1e312
12
13 app-i18n/fcitx-rime/fcitx-rime-4.9999.ebuild | 16 ++++++++++++----
14 app-i18n/fcitx-rime/metadata.xml | 3 +++
15 2 files changed, 15 insertions(+), 4 deletions(-)
16
17 diff --git a/app-i18n/fcitx-rime/fcitx-rime-4.9999.ebuild b/app-i18n/fcitx-rime/fcitx-rime-4.9999.ebuild
18 index 35443f12a6e..74292ea23a0 100644
19 --- a/app-i18n/fcitx-rime/fcitx-rime-4.9999.ebuild
20 +++ b/app-i18n/fcitx-rime/fcitx-rime-4.9999.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI="6"
27 @@ -22,20 +22,28 @@ fi
28 LICENSE="GPL-2"
29 SLOT="4"
30 KEYWORDS=""
31 -IUSE=""
32 +IUSE="+configuration_tool"
33
34 RDEPEND=">=app-i18n/fcitx-4.2.9:4
35 >=app-i18n/librime-1.0.0:=
36 app-i18n/rime-data
37 - virtual/libintl"
38 + virtual/libintl
39 + configuration_tool? (
40 + >=app-i18n/fcitx-qt5-1.1:4
41 + dev-qt/qtcore:5
42 + dev-qt/qtgui:5
43 + dev-qt/qtwidgets:5
44 + )"
45 DEPEND="${RDEPEND}
46 - virtual/pkgconfig"
47 + virtual/pkgconfig
48 + configuration_tool? ( dev-qt/qtconcurrent:5 )"
49
50 DOCS=()
51
52 src_configure() {
53 local mycmakeargs=(
54 -DRIME_DATA_DIR="${EPREFIX}/usr/share/rime-data"
55 + -DENABLE_QT5GUI=$(usex configuration_tool)
56 )
57
58 cmake-utils_src_configure
59
60 diff --git a/app-i18n/fcitx-rime/metadata.xml b/app-i18n/fcitx-rime/metadata.xml
61 index 45175a15624..c809836fd12 100644
62 --- a/app-i18n/fcitx-rime/metadata.xml
63 +++ b/app-i18n/fcitx-rime/metadata.xml
64 @@ -13,6 +13,9 @@
65 <email>cjk@g.o</email>
66 <name>Cjk</name>
67 </maintainer>
68 + <use>
69 + <flag name="configuration_tool">Install configuration tool</flag>
70 + </use>
71 <upstream>
72 <remote-id type="github">fcitx/fcitx-rime</remote-id>
73 </upstream>