summaryrefslogtreecommitdiff
path: root/dev-util/patchutils/patchutils-0.4.4-r1.ebuild
diff options
context:
space:
mode:
authorHolger Hoffstätte <holger@applied-asynchrony.com>2025-10-02 08:38:14 +0200
committerSam James <sam@gentoo.org>2025-10-03 17:21:47 +0100
commit550f0f7f8d053861b9435dd6d01b807689c4937c (patch)
tree538478aef4729d9dfcb13979d12836fa499fa363 /dev-util/patchutils/patchutils-0.4.4-r1.ebuild
parentd13aceb8e4780968f1e2f23dec7ce1fa57c27eed (diff)
downloadgentoo-550f0f7f8d053861b9435dd6d01b807689c4937c.tar.gz
gentoo-550f0f7f8d053861b9435dd6d01b807689c4937c.tar.bz2
gentoo-550f0f7f8d053861b9435dd6d01b807689c4937c.zip
dev-util/patchutils: add missing Python runtime dependency
Closes: https://bugs.gentoo.org/963651 Signed-off-by: Holger Hoffstätte <holger@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@gentoo.org>
Diffstat (limited to 'dev-util/patchutils/patchutils-0.4.4-r1.ebuild')
-rw-r--r--dev-util/patchutils/patchutils-0.4.4-r1.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-util/patchutils/patchutils-0.4.4-r1.ebuild b/dev-util/patchutils/patchutils-0.4.4-r1.ebuild
new file mode 100644
index 000000000000..591624f9794d
--- /dev/null
+++ b/dev-util/patchutils/patchutils-0.4.4-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/"
+SRC_URI="https://github.com/twaugh/patchutils/releases/download/${PV}/${P}.tar.xz"
+
+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="
+ !<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"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ eautoreconf
+ python_fix_shebang patchview
+}
+
+src_configure() {
+ tc-export PKG_CONFIG
+
+ if use elibc_musl; then
+ export CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags error-standalone)"
+ export LIBS="${LIBS} $(${PKG_CONFIG} --libs error-standalone)"
+ fi
+
+ econf $(use_with pcre pcre2)
+}