From 2282ae1ad6b0ada34caba1f1614ce79667749c1d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 10:29:51 +0100 Subject: app-i18n/ibus-anthy: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-i18n/ibus-anthy/ibus-anthy-1.5.10-r1.ebuild | 69 +++++++++++++++++++++++++ app-i18n/ibus-anthy/ibus-anthy-1.5.10.ebuild | 67 ------------------------ app-i18n/ibus-anthy/ibus-anthy-1.5.9-r1.ebuild | 65 +++++++++++++++++++++++ app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild | 63 ---------------------- 4 files changed, 134 insertions(+), 130 deletions(-) create mode 100644 app-i18n/ibus-anthy/ibus-anthy-1.5.10-r1.ebuild delete mode 100644 app-i18n/ibus-anthy/ibus-anthy-1.5.10.ebuild create mode 100644 app-i18n/ibus-anthy/ibus-anthy-1.5.9-r1.ebuild delete mode 100644 app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild (limited to 'app-i18n/ibus-anthy') diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.10-r1.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.10-r1.ebuild new file mode 100644 index 000000000000..5f0ac86c6339 --- /dev/null +++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.10-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python{2_7,3_6} ) + +inherit gnome2-utils python-single-r1 + +DESCRIPTION="Japanese Anthy engine for IBus" +HOMEPAGE="https://github.com/ibus/ibus/wiki" +SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="nls" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + app-i18n/anthy + $(python_gen_cond_dep ' + app-i18n/ibus[python(+),${PYTHON_MULTI_USEDEP}] + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + default + gnome2_environment_reset +} + +src_configure() { + econf \ + $(use_enable nls) \ + --enable-private-png \ + --with-layout=default \ + --with-python=${EPYTHON} +} + +src_test() { + : +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die + + python_optimize +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + if ! has_version app-dicts/kasumi; then + elog "app-dicts/kasumi is not required but probably useful for you." + fi +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.10.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.10.ebuild deleted file mode 100644 index 10be5957f6b7..000000000000 --- a/app-i18n/ibus-anthy/ibus-anthy-1.5.10.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -PYTHON_COMPAT=( python{2_7,3_6} ) - -inherit gnome2-utils python-single-r1 - -DESCRIPTION="Japanese Anthy engine for IBus" -HOMEPAGE="https://github.com/ibus/ibus/wiki" -SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="nls" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - app-i18n/anthy - app-i18n/ibus[python(+),${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - nls? ( virtual/libintl )" -DEPEND="${RDEPEND} - dev-util/intltool - virtual/pkgconfig - nls? ( sys-devel/gettext )" - -src_prepare() { - default - gnome2_environment_reset -} - -src_configure() { - econf \ - $(use_enable nls) \ - --enable-private-png \ - --with-layout=default \ - --with-python=${EPYTHON} -} - -src_test() { - : -} - -src_install() { - default - find "${ED}" -name '*.la' -delete || die - - python_optimize -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - - if ! has_version app-dicts/kasumi; then - elog "app-dicts/kasumi is not required but probably useful for you." - fi -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.9-r1.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.9-r1.ebuild new file mode 100644 index 000000000000..dbb7bfe3885e --- /dev/null +++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.9-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python{2_7,3_6} ) + +inherit gnome2-utils python-single-r1 + +DESCRIPTION="Japanese Anthy engine for IBus" +HOMEPAGE="https://github.com/ibus/ibus/wiki" +SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="nls" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + app-i18n/anthy + $(python_gen_cond_dep ' + app-i18n/ibus[python(+),${PYTHON_MULTI_USEDEP}] + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + default + gnome2_environment_reset +} + +src_configure() { + econf \ + $(use_enable nls) \ + --enable-private-png \ + --with-layout=default \ + --with-python=${EPYTHON} +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die + + python_optimize +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + if ! has_version app-dicts/kasumi; then + elog "app-dicts/kasumi is not required but probably useful for you." + fi +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild deleted file mode 100644 index ba81764f9f0d..000000000000 --- a/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -PYTHON_COMPAT=( python{2_7,3_6} ) - -inherit gnome2-utils python-single-r1 - -DESCRIPTION="Japanese Anthy engine for IBus" -HOMEPAGE="https://github.com/ibus/ibus/wiki" -SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" -IUSE="nls" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - app-i18n/anthy - app-i18n/ibus[python(+),${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - nls? ( virtual/libintl )" -DEPEND="${RDEPEND} - dev-util/intltool - virtual/pkgconfig - nls? ( sys-devel/gettext )" - -src_prepare() { - default - gnome2_environment_reset -} - -src_configure() { - econf \ - $(use_enable nls) \ - --enable-private-png \ - --with-layout=default \ - --with-python=${EPYTHON} -} - -src_install() { - default - find "${ED}" -name '*.la' -delete || die - - python_optimize -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - - if ! has_version app-dicts/kasumi; then - elog "app-dicts/kasumi is not required but probably useful for you." - fi -} - -pkg_postrm() { - gnome2_icon_cache_update -} -- cgit v1.2.3-65-gdbad