summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2013-04-29 12:13:35 +0000
committerNaohiro Aota <naota@gentoo.org>2013-04-29 12:13:35 +0000
commit4ecd4d5cbbad5cf94bd09fe1935fedb5c70e8876 (patch)
tree8a08a861887eeb33c5cff4d22e77db4475766dea /app-i18n/ibus-anthy
parentStable on arm, wrt bug #431848 (diff)
downloadgentoo-2-4ecd4d5cbbad5cf94bd09fe1935fedb5c70e8876.tar.gz
gentoo-2-4ecd4d5cbbad5cf94bd09fe1935fedb5c70e8876.tar.bz2
gentoo-2-4ecd4d5cbbad5cf94bd09fe1935fedb5c70e8876.zip
Use python-single-r1. PYTHON is exported properly. #467526
(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'app-i18n/ibus-anthy')
-rw-r--r--app-i18n/ibus-anthy/ChangeLog5
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild18
2 files changed, 10 insertions, 13 deletions
diff --git a/app-i18n/ibus-anthy/ChangeLog b/app-i18n/ibus-anthy/ChangeLog
index 404763f356e9..f2d2631afacf 100644
--- a/app-i18n/ibus-anthy/ChangeLog
+++ b/app-i18n/ibus-anthy/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-i18n/ibus-anthy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-anthy/ChangeLog,v 1.42 2013/02/09 13:04:49 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-anthy/ChangeLog,v 1.43 2013/04/29 12:13:35 naota Exp $
+
+ 29 Apr 2013; Naohiro Aota <naota@gentoo.org> ibus-anthy-1.5.0.ebuild:
+ Use python-single-r1. PYTHON is exported properly. #467526
09 Feb 2013; Naohiro Aota <naota@gentoo.org>
+files/ibus-anthy-1.5.0-configure.patch, ibus-anthy-1.5.0.ebuild,
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild
index a1c826b53ebe..b623ec7edd98 100644
--- a/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild,v 1.2 2013/02/09 13:04:49 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-anthy/ibus-anthy-1.5.0.ebuild,v 1.3 2013/04/29 12:13:35 naota Exp $
EAPI=5
PYTHON_DEPEND="2:2.5"
-inherit eutils python autotools gnome2-utils
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+inherit eutils python-single-r1 autotools gnome2-utils
DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
HOMEPAGE="http://code.google.com/p/ibus/"
@@ -16,7 +17,8 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="deprecated nls"
-RDEPEND=">=app-i18n/ibus-1.5.0
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.5.0
app-i18n/anthy
deprecated? ( >=dev-python/pygtk-2.15.2 )
nls? ( virtual/libintl )"
@@ -27,15 +29,8 @@ DEPEND="${RDEPEND}
deprecated? ( dev-lang/swig )
nls? ( >=sys-devel/gettext-0.16.1 )"
-pkg_setup() {
- python_set_active_version 2
- python_pkg_setup
-}
-
src_prepare() {
>py-compile #397497
- sed -i -e "s/python/python2/" \
- engine/ibus-engine-anthy.in setup/ibus-setup-anthy.in || die
epatch "${FILESDIR}"/${P}-configure.patch
eautoreconf
cp "${DISTDIR}"/anthy.i "${S}"/engine # deal with packaging bug
@@ -66,10 +61,9 @@ pkg_postinst() {
elog "# emerge app-dicts/kasumi"
elog
- python_mod_optimize /usr/share/${PN}
+ python_optimize
}
pkg_postrm() {
- python_mod_cleanup /usr/share/${PN}
gnome2_icon_cache_update
}