summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild')
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild
index 4c7d1c679f87..7bfe451e37b8 100644
--- a/app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild
@@ -1,43 +1,41 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
inherit cmake-utils
-MY_P=${P}-Source
+MY_P="${P}-Source"
-DESCRIPTION="The Chewing IMEngine for IBus Framework"
+DESCRIPTION="Chinese Chewing engine for IBus"
HOMEPAGE="https://github.com/ibus/ibus/wiki"
-SRC_URI="https://github.com/definite/ibus-chewing/releases/download/${PV}/${MY_P}.tar.gz"
+SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls"
-RDEPEND="x11-libs/libXtst
- >=app-i18n/ibus-1.3
- >=app-i18n/libchewing-0.3.3
+RDEPEND="app-i18n/ibus
+ app-i18n/libchewing
+ dev-libs/glib:2
+ dev-util/gob:2
+ gnome-base/gconf
x11-libs/gtk+:2
- dev-util/gob:2"
+ x11-libs/libX11
+ nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
- gnome-base/gconf
- virtual/pkgconfig"
-
-S=${WORKDIR}/${MY_P}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+S="${WORKDIR}/${MY_P}"
-CMAKE_IN_SOURCE_BUILD=1
-
-DOCS="AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE"
+DOCS=( AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE )
src_configure() {
local mycmakeargs=(
- -DPRJ_DOC_DIR=/usr/share/doc/${PF}
- )
-
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
cmake-utils_src_configure
}
-
-src_compile() {
- cmake-utils_src_make all translations
-}