commit:     550f0f7f8d053861b9435dd6d01b807689c4937c
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Thu Oct  2 06:38:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 16:21:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=550f0f7f

dev-util/patchutils: add missing Python runtime dependency

Closes: https://bugs.gentoo.org/963651
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/44002
Closes: https://github.com/gentoo/gentoo/pull/44002
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...hutils-0.4.4.ebuild => patchutils-0.4.4-r1.ebuild} | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/dev-util/patchutils/patchutils-0.4.4.ebuild 
b/dev-util/patchutils/patchutils-0.4.4-r1.ebuild
similarity index 78%
rename from dev-util/patchutils/patchutils-0.4.4.ebuild
rename to dev-util/patchutils/patchutils-0.4.4-r1.ebuild
index da749ec62987..591624f9794d 100644
--- a/dev-util/patchutils/patchutils-0.4.4.ebuild
+++ b/dev-util/patchutils/patchutils-0.4.4-r1.ebuild
@@ -3,7 +3,9 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit autotools python-single-r1 toolchain-funcs
 
 DESCRIPTION="Collection of tools that operate on patch files"
 HOMEPAGE="https://cyberelk.net/tim/software/patchutils/";
@@ -13,20 +15,27 @@ LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="pcre"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
-RDEPEND="pcre? ( dev-libs/libpcre2:= )"
+RDEPEND="
+       !<app-shells/bash-completion-2.16.0-r3
+       pcre? ( dev-libs/libpcre2:= )
+       ${PYTHON_DEPS}
+"
 DEPEND="
        ${RDEPEND}
        elibc_musl? ( >=sys-libs/error-standalone-2.0 )
 "
 BDEPEND="virtual/pkgconfig"
-RDEPEND+="
-       !<app-shells/bash-completion-2.16.0-r3
-"
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+}
 
 src_prepare() {
        default
        eautoreconf
+       python_fix_shebang patchview
 }
 
 src_configure() {

Reply via email to