app-i18n/ibus-chewing: update to EAPI 6
authorAkinori Hattori <hattya@gentoo.org>
Wed, 16 Aug 2017 15:23:41 +0000 (00:23 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 16 Aug 2017 15:38:53 +0000 (00:38 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/ibus-chewing/ibus-chewing-1.5.1.ebuild
app-i18n/ibus-chewing/metadata.xml

index 4c7d1c679f878ad300839d79b5d6d5b39a1ebbc3..7bfe451e37b8f9381ddb9123904300939bb22e8e 100644 (file)
@@ -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
-}
index 5805fc8e3286b5460a271b3b11fdfe8e3f6a0916..8f50d1f986029cfc5f8667a6ca61a512ccccf091 100644 (file)
@@ -1,13 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-       <maintainer type="project">
-               <email>cjk@gentoo.org</email>
-               <name>Cjk</name>
-       </maintainer>
-       <longdescription lang="en">The Chewing engine for IBus platform. It provides Chinese input method from libchewing.</longdescription>
-       <upstream>
-               <remote-id type="google-code">ibus</remote-id>
-               <remote-id type="github">ibus/ibus</remote-id>
-       </upstream>
+  <maintainer type="project">
+    <email>cjk@gentoo.org</email>
+    <name>Cjk</name>
+  </maintainer>
+  <longdescription lang="en">
+    The Chewing engine for IBus. It provides a Chinese input method from
+    <pkg>app-i18n/libchewing</pkg>.
+  </longdescription>
+  <upstream>
+    <remote-id type="github">definite/ibus-chewing</remote-id>
+  </upstream>
 </pkgmetadata>