-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI="6"
PYTHON_COMPAT=( python2_7 )
-PYTHON_REQ_USE="sqlite"
-inherit eutils python-single-r1
+PYTHON_REQ_USE="sqlite(+)"
-DESCRIPTION="The Table Engine for IBus Framework"
+inherit python-single-r1
+
+DESCRIPTION="Tables engines for IBus"
HOMEPAGE="https://github.com/ibus/ibus/wiki"
SRC_URI="https://ibus.googlecode.com/files/${P}.tar.gz"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
- >=app-i18n/ibus-1.2[python,${PYTHON_USEDEP}]
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ virtual/libiconv
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
- nls? ( >=sys-devel/gettext-0.16.1 )
- virtual/pkgconfig"
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
src_prepare() {
python_fix_shebang .
- sed -i -e "s/python/${EPYTHON}/" \
- engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+ sed -i \
+ "s/python/${EPYTHON}/" \
+ engine/ibus-table-createdb.in \
+ engine/ibus-engine-table.in
+
+ default
}
src_configure() {
econf $(use_enable nls)
}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dodoc AUTHORS ChangeLog NEWS README
-}
<?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 package contains general Table engine for IBus platform.</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">
+ A framework for table based input methods using IBus.
+ </longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">ibus/ibus</remote-id>
+ </upstream>
</pkgmetadata>