commit: f000d15e32ab37449521db8932e99691f7cc594c
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 25 04:31:51 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 25 04:35:11 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f000d15e
app-i18n/nkf: enable py3.{9,10}, add die calls, clean deps
Closes: https://bugs.gentoo.org/800602
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
app-i18n/nkf/nkf-2.1.5.ebuild | 47 +++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 24 deletions(-)
diff --git a/app-i18n/nkf/nkf-2.1.5.ebuild b/app-i18n/nkf/nkf-2.1.5.ebuild
index e937e5a5aeb..7720d4a3fae 100644
--- a/app-i18n/nkf/nkf-2.1.5.ebuild
+++ b/app-i18n/nkf/nkf-2.1.5.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
-PYTHON_COMPAT=( python3_{7,8} )
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_OPTIONAL="1"
-DISTUTILS_USE_SETUPTOOLS="no"
inherit distutils-r1 perl-module toolchain-funcs vcs-snapshot
@@ -22,13 +22,12 @@ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="perl python l10n_ja"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RDEPEND="python? (
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}"
+BDEPEND="python? (
${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/setuptools[${PYTHON_USEDEP}]
- ')
+ dev-python/setuptools[${PYTHON_USEDEP}]
)"
-DEPEND="${RDEPEND}"
src_unpack() {
use python && vcs-snapshot_src_unpack || default
@@ -42,9 +41,9 @@ src_prepare() {
if use python; then
mv "${WORKDIR}"/${PY_P} NKF.python || die
eapply "${FILESDIR}"/${PN}-python.patch
- cd NKF.python
+ cd NKF.python || die
distutils-r1_src_prepare
- cd - >/dev/null
+ cd - >/dev/null || die
fi
default
@@ -53,37 +52,37 @@ src_prepare() {
src_configure() {
default
if use perl; then
- cd NKF.mod
+ cd NKF.mod || die
perl-module_src_configure
- cd - >/dev/null
+ cd - >/dev/null || die
fi
if use python; then
- cd NKF.python
+ cd NKF.python || die
distutils-r1_src_configure
- cd - >/dev/null
+ cd - >/dev/null || die
fi
}
src_compile() {
emake CC="$(tc-getCC)"
if use perl; then
- cd NKF.mod
+ cd NKF.mod || die
perl-module_src_compile
- cd - >/dev/null
+ cd - >/dev/null || die
fi
if use python; then
- cd NKF.python
+ cd NKF.python || die
distutils-r1_src_compile
- cd - >/dev/null
+ cd - >/dev/null || die
fi
}
src_test() {
default
if use perl; then
- cd NKF.mod
+ cd NKF.mod || die
perl-module_src_test
- cd - >/dev/null
+ cd - >/dev/null || die
fi
}
@@ -98,16 +97,16 @@ src_install() {
dodoc ${PN}.doc
if use perl; then
- cd NKF.mod
+ cd NKF.mod || die
docinto perl
perl-module_src_install
- cd - >/dev/null
+ cd - >/dev/null || die
fi
if use python; then
- cd NKF.python
+ cd NKF.python || die
docinto python
DOCS= distutils-r1_src_install
dodoc CHANGES README.md
- cd - >/dev/null
+ cd - >/dev/null || die
fi
}