summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-08-09 22:18:15 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-08-09 22:18:15 +0900
commitaf435469b21be89c68c786a9e5a55be64279f71e (patch)
tree30f1b86612dff11d593b6792bb2980f214e5650f /app-i18n/ibus-sunpinyin
parentapp-i18n/ibus-sunpinyin: update HOMEPAGE (diff)
downloadgentoo-af435469b21be89c68c786a9e5a55be64279f71e.tar.gz
gentoo-af435469b21be89c68c786a9e5a55be64279f71e.tar.bz2
gentoo-af435469b21be89c68c786a9e5a55be64279f71e.zip
app-i18n/ibus-sunpinyin: update to EAPI 6
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-i18n/ibus-sunpinyin')
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild34
1 files changed, 16 insertions, 18 deletions
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
index 771cfd5e0cd1..e9553afe6cd3 100644
--- a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
@@ -1,11 +1,13 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI="6"
+PLOCALES="zh_CN"
PYTHON_COMPAT=( python2_7 )
-inherit python-single-r1 scons-utils toolchain-funcs
-DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+inherit l10n python-single-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="SunPinyin engine for IBus"
HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
SRC_URI="https://dev.gentoo.org/~jstein/dist/sunpinyin-${PV}.tar.xz"
@@ -13,6 +15,7 @@ LICENSE="LGPL-2.1 CDDL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
app-i18n/ibus[python,${PYTHON_USEDEP}]
@@ -21,29 +24,24 @@ RDEPEND="${PYTHON_DEPS}
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
-
-src_unpack() {
- default
- mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
-}
+S="${WORKDIR}/${P#*-}"
src_prepare() {
- sed -i -e "s/python/${EPYTHON}/" wrapper/ibus/setup/ibus-setup-sunpinyin.in || die
-}
+ sed -i "/^locales/s/'.*'/$(l10n_get_locales | sed "s/\([^[:space:]]\+\)/\'\1\',/g")/" wrapper/ibus/SConstruct
+ sed -i "s/python/${EPYTHON}/" wrapper/ibus/setup/${PN/-/-setup-}.in
-src_configure() {
+ default
tc-export CXX
- myesconsargs=(
- --prefix="${EPREFIX}"/usr
- --libexecdir="${EPREFIX}"/usr/libexec
- )
}
src_compile() {
- escons -C wrapper/ibus
+ escons -C wrapper/ibus \
+ --prefix="${EPREFIX}"/usr \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --libexecdir="${EPREFIX}"/usr/libexec
}
src_install() {
- escons -C wrapper/ibus --install-sandbox="${ED}" install
+ escons -C wrapper/ibus --install-sandbox="${D}" install
+ dodoc wrapper/ibus/README
}