summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-04 07:53:14 +0100
committerSam James <sam@gentoo.org>2022-10-04 08:09:25 +0100
commit40f93f66cdb909189c0a501418dffa6e11fa7711 (patch)
treef7bd1032d0fd1c8072a54c7da625f3947d5b42d2 /app-i18n/nkf
parentx11-terms/mlterm: add github upstream metadata (diff)
downloadgentoo-40f93f66cdb909189c0a501418dffa6e11fa7711.tar.gz
gentoo-40f93f66cdb909189c0a501418dffa6e11fa7711.tar.bz2
gentoo-40f93f66cdb909189c0a501418dffa6e11fa7711.zip
app-i18n/nkf: conditionally apply python patch
Closes: https://bugs.gentoo.org/874813 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-i18n/nkf')
-rw-r--r--app-i18n/nkf/nkf-2.1.5-r1.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/app-i18n/nkf/nkf-2.1.5-r1.ebuild b/app-i18n/nkf/nkf-2.1.5-r1.ebuild
index 095d49cf0515..eefdc0f710d5 100644
--- a/app-i18n/nkf/nkf-2.1.5-r1.ebuild
+++ b/app-i18n/nkf/nkf-2.1.5-r1.ebuild
@@ -29,11 +29,6 @@ BDEPEND="python? (
dev-python/setuptools[${PYTHON_USEDEP}]
)"
-PATCHES=(
- "${FILESDIR}"/${P}-python-ssize_t.patch
- "${FILESDIR}"/${PN}-2.1.5-python-ssize_t-deux.patch
-)
-
src_unpack() {
use python && vcs-snapshot_src_unpack || default
}
@@ -46,6 +41,9 @@ src_prepare() {
if use python; then
mv "${WORKDIR}"/${PY_P} NKF.python || die
eapply "${FILESDIR}"/${PN}-python.patch
+ eapply "${FILESDIR}"/${P}-python-ssize_t.patch
+ eapply "${FILESDIR}"/${PN}-2.1.5-python-ssize_t-deux.patch
+
cd NKF.python || die
distutils-r1_src_prepare
cd - >/dev/null || die