app-i18n/kimera: update to EAPI 6
authorAkinori Hattori <hattya@gentoo.org>
Tue, 18 Jul 2017 15:47:32 +0000 (00:47 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Tue, 18 Jul 2017 15:47:32 +0000 (00:47 +0900)
Gentoo-Bug: 621944

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/kimera/kimera-2.11-r1.ebuild
app-i18n/kimera/metadata.xml

index 74936958a42594fccdc3b0da69f39379306c0df7..289f4b79a7b53eb6dbb7027328d81f201805592e 100644 (file)
@@ -1,8 +1,9 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=3
-inherit qt4-r2 eutils multilib
+EAPI="6"
+
+inherit qmake-utils
 
 DESCRIPTION="A Japanese input method which supports the XIM protocol"
 HOMEPAGE="http://kimera.osdn.jp/"
@@ -13,21 +14,25 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="+anthy"
 
-DEPEND="dev-qt/qtcore:4
+RDEPEND="dev-qt/qt3support:4
+       dev-qt/qtcore:4
        dev-qt/qtgui:4
-       dev-qt/qt3support:4
        anthy? ( app-i18n/anthy )
        !anthy? ( app-i18n/canna )"
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}"
 
-DOCS="AUTHORS README*"
+PATCHES=( "${FILESDIR}"/${PN}-underlinking.patch )
 
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-underlinking.patch
+src_configure() {
+       local myconf=(
+               script.path="${EPREFIX}"/usr/bin
+               target.path="${EPREFIX}"/usr/$(get_libdir)/${P}
+               no_anthy=$(usex anthy 1 0)
+       )
+       eqmake4 ${PN}.pro "${myconf[@]}"
 }
 
-src_configure() {
-       local myconf="target.path=/usr/$(get_libdir)/${P}"
-       use anthy || myconf="${myconf} no_anthy=1"
-       eqmake4 kimera.pro ${myconf}
+src_install() {
+       emake INSTALL_ROOT="${D}" install
+       einstalldocs
 }
index d9263b15bbe65cc7a5da0e47b0f860c07f7a0784..6a876a223eb97f798bc857ca9854c89f9cef5d6a 100644 (file)
@@ -6,11 +6,11 @@
     <name>Cjk</name>
   </maintainer>
   <longdescription>
-Kimera is a Qt-based Japanese input method bridge.
-Currently it supports Canna and Anthy.
-</longdescription>
+    Kimera is a Qt-based Japanese input method bridge.
+    Currently it supports Canna and Anthy.
+  </longdescription>
   <use>
-    <flag name="anthy">Support for Anthy input method</flag>
+    <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg></flag>
   </use>
   <upstream>
     <remote-id type="sourceforge-jp">kimera</remote-id>