# 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/"
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
}
<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>