public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/nkf/
Date: Sat, 16 May 2020 14:48:11 +0000 (UTC)	[thread overview]
Message-ID: <1589640465.fc44b576f81ef08320480c9b4c1cfe00f842bee9.hattya@gentoo> (raw)

commit:     fc44b576f81ef08320480c9b4c1cfe00f842bee9
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat May 16 14:32:02 2020 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat May 16 14:47:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc44b576

app-i18n/nkf: fix build with USE=python

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-i18n/nkf/nkf-2.1.3-r2.ebuild | 19 +++++++++++++++++++
 app-i18n/nkf/nkf-2.1.4.ebuild    | 19 +++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/app-i18n/nkf/nkf-2.1.3-r2.ebuild b/app-i18n/nkf/nkf-2.1.3-r2.ebuild
index 5aebc9371fa..6c07e5dae6e 100644
--- a/app-i18n/nkf/nkf-2.1.3-r2.ebuild
+++ b/app-i18n/nkf/nkf-2.1.3-r2.ebuild
@@ -3,6 +3,8 @@
 
 EAPI="6"
 PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL="1"
+DISTUTILS_USE_SETUPTOOLS="no"
 
 inherit distutils-r1 perl-module toolchain-funcs
 
@@ -16,6 +18,15 @@ LICENSE="ZLIB"
 SLOT="0"
 KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86 ~x86-macos"
 IUSE="perl python l10n_ja"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? (
+		${PYTHON_DEPS}
+		$(python_gen_cond_dep '
+			dev-python/setuptools[${PYTHON_USEDEP}]
+		')
+	)"
+DEPEND="${RDEPEND}"
 
 src_prepare() {
 	sed -i \
@@ -28,6 +39,9 @@ src_prepare() {
 	if use python; then
 		mv "${WORKDIR}"/NKF.python . || die
 		eapply "${FILESDIR}"/${P}-strip.patch
+		cd NKF.python
+		distutils-r1_src_prepare
+		cd - >/dev/null
 	fi
 
 	default
@@ -40,6 +54,11 @@ src_configure() {
 		perl-module_src_configure
 		cd - >/dev/null
 	fi
+	if use python; then
+		cd NKF.python
+		distutils-r1_src_configure
+		cd - >/dev/null
+	fi
 }
 
 src_compile() {

diff --git a/app-i18n/nkf/nkf-2.1.4.ebuild b/app-i18n/nkf/nkf-2.1.4.ebuild
index 0e5fcaa2bbe..e229db43399 100644
--- a/app-i18n/nkf/nkf-2.1.4.ebuild
+++ b/app-i18n/nkf/nkf-2.1.4.ebuild
@@ -3,6 +3,8 @@
 
 EAPI="7"
 PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_OPTIONAL="1"
+DISTUTILS_USE_SETUPTOOLS="no"
 
 inherit distutils-r1 perl-module toolchain-funcs vcs-snapshot
 
@@ -18,6 +20,15 @@ LICENSE="ZLIB python? ( BSD )"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-macos"
 IUSE="perl python l10n_ja"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? (
+		${PYTHON_DEPS}
+		$(python_gen_cond_dep '
+			dev-python/setuptools[${PYTHON_USEDEP}]
+		')
+	)"
+DEPEND="${RDEPEND}"
 
 src_unpack() {
 	use python && vcs-snapshot_src_unpack || default
@@ -31,6 +42,9 @@ src_prepare() {
 	if use python; then
 		mv "${WORKDIR}"/${PY_P} NKF.python || die
 		eapply "${FILESDIR}"/${P}-python.patch
+		cd NKF.python
+		distutils-r1_src_prepare
+		cd - >/dev/null
 	fi
 
 	default
@@ -43,6 +57,11 @@ src_configure() {
 		perl-module_src_configure
 		cd - >/dev/null
 	fi
+	if use python; then
+		cd NKF.python
+		distutils-r1_src_configure
+		cd - >/dev/null
+	fi
 }
 
 src_compile() {


             reply	other threads:[~2020-05-16 14:48 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-16 14:48 Akinori Hattori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-14  6:11 [gentoo-commits] repo/gentoo:master commit in: app-i18n/nkf/ Akinori Hattori
2024-04-14  6:11 Akinori Hattori
2024-04-14  6:11 Akinori Hattori
2023-10-01 18:14 Arthur Zamarin
2023-09-08  9:29 Sam James
2023-09-08  9:29 Sam James
2023-09-08  0:12 Sam James
2023-09-07 23:03 Sam James
2023-04-30  5:30 Akinori Hattori
2023-04-30  5:30 Akinori Hattori
2022-10-04  7:09 Sam James
2022-10-04  2:46 Sam James
2022-02-01 18:51 Michał Górny
2021-09-26 17:52 Sam James
2021-09-26  5:01 Sam James
2021-09-26  5:01 Sam James
2021-09-26  5:01 Sam James
2021-09-26  5:01 Sam James
2021-08-25  4:35 Arthur Zamarin
2021-01-06 13:13 Fabian Groffen
2020-05-18 13:02 Agostino Sarubbo
2020-05-18 13:01 Agostino Sarubbo
2020-05-18 13:00 Agostino Sarubbo
2020-05-18 12:55 Agostino Sarubbo
2020-05-18 12:38 Agostino Sarubbo
2020-05-17 18:01 Sergei Trofimovich
2020-05-16 14:48 Akinori Hattori
2020-05-16 14:48 Akinori Hattori
2020-05-16 14:48 Akinori Hattori
2020-05-16 14:48 Akinori Hattori
2020-05-07 13:18 Michał Górny
2019-06-18  0:35 Aaron Bauman
2018-07-31 12:33 Akinori Hattori
2018-07-31 12:33 Akinori Hattori
2016-06-25 15:39 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589640465.fc44b576f81ef08320480c9b4c1cfe00f842bee9.hattya@gentoo \
    --to=hattya@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox