diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-util/patchutils | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-util/patchutils')
| -rw-r--r-- | dev-util/patchutils/Manifest | 4 | ||||
| -rw-r--r-- | dev-util/patchutils/files/0.4.5-completion-symlinks.patch | 26 | ||||
| -rw-r--r-- | dev-util/patchutils/files/0.4.5-const.patch | 69 | ||||
| -rw-r--r-- | dev-util/patchutils/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-util/patchutils/patchutils-0.4.2.ebuild | 20 | ||||
| -rw-r--r-- | dev-util/patchutils/patchutils-0.4.4-r1.ebuild | 50 | ||||
| -rw-r--r-- | dev-util/patchutils/patchutils-0.4.4-r2.ebuild | 52 | ||||
| -rw-r--r-- | dev-util/patchutils/patchutils-0.4.5-r1.ebuild | 55 |
8 files changed, 285 insertions, 0 deletions
diff --git a/dev-util/patchutils/Manifest b/dev-util/patchutils/Manifest new file mode 100644 index 000000000000..fb0e4dd4dbcc --- /dev/null +++ b/dev-util/patchutils/Manifest @@ -0,0 +1,4 @@ +DIST patchutils-0.4.2.tar.xz 159504 BLAKE2B 3ffcda8497b010a88e8601005871fb691ea8cac6158276862ba8e4192c333a335965288f9b5451c2fbc0a873ef95eb4a485d265387b43b0cec31b6c18d38f88e SHA512 20970d52fd43c09dc7799297b9a9eb6f60ba29ecc750d49381a2dc52273dfe484a47696cddd541f623394fa3486734cf337297cbeab6b1b244511c7740f46897 +DIST patchutils-0.4.4-gnulib.patch.xz 37408 BLAKE2B 17978bdfa22e56d372f9f6180645acb2d172f543acd8a4ed388ce1bd7dd0adfed4025cabda87398bae225554ec28af415181cf5c1689dd3eed95f86ade91b542 SHA512 3511c249187c823ea1715fa772765137f1fd6e15856ef6a5e6539317e3525e7fdcffae814249209f80257f580abbb62ea6918db4bb4a9ff1396043ca124db5c9 +DIST patchutils-0.4.4.tar.xz 424248 BLAKE2B 65a855a5164c193262002dc2a13a5a253d5b308ed431d49fd231ef587df2c9924b26b6c683c6162a9810290aaa65c9a4fba5e3b503517d1f815e0bd30e7be9dc SHA512 26f3ee959d7f8d7d5718ecf361436709559c62d6235114faac9a84442e9df4fb271f85eea5d96dae3969e96d88fdd9c1a9b5246696ef548fad71a8f29a026a84 +DIST patchutils-0.4.5.tar.xz 427628 BLAKE2B b465139592420a6c9875744c8fb16c9a7eb55a8f1974669e72eb5f73c4528e8b772e809b052c937fa5f0f14bf7747c215bc2e4ca9a32a83ade9a6bac38f0283c SHA512 403f2c06523f4ca5983ec669b97a5d0d3ce33d0f7cfb1d7b312357840ecd5c865ef76b11b394a5396fad859ad4693740ebe91790b9a1da9c20144c4f269c4560 diff --git a/dev-util/patchutils/files/0.4.5-completion-symlinks.patch b/dev-util/patchutils/files/0.4.5-completion-symlinks.patch new file mode 100644 index 000000000000..7e21dab30f19 --- /dev/null +++ b/dev-util/patchutils/files/0.4.5-completion-symlinks.patch @@ -0,0 +1,26 @@ +https://github.com/twaugh/patchutils/pull/175 + +diff --git a/Makefile.am b/Makefile.am +index 433f4aa..7d8960c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -179,7 +179,8 @@ install-data-hook: + mv bash-completion-patchutils interdiff && \ + for cmd in filterdiff lsdiff grepdiff combinediff flipdiff rediff \ + splitdiff recountdiff unwrapdiff dehtmldiff editdiff espdiff \ +- fixcvsdiff patchview gitdiff svndiff gitdiffview svndiffview; do \ ++ fixcvsdiff patchview gitdiff svndiff gitdiffview svndiffview \ ++ gitshow gitshowview; do \ + ln -sf interdiff "$$cmd" || true; \ + done; \ + fi +@@ -202,7 +203,8 @@ endif + cd "$(DESTDIR)$(bashcompletiondir)" && \ + for cmd in filterdiff lsdiff grepdiff interdiff combinediff flipdiff rediff \ + splitdiff recountdiff unwrapdiff dehtmldiff editdiff espdiff \ +- fixcvsdiff patchview gitdiff svndiff gitdiffview svndiffview; do \ ++ fixcvsdiff patchview gitdiff svndiff gitdiffview svndiffview \ ++ gitshow gitshowview; do \ + rm -f "$$cmd"; \ + done; \ + rm -f patchutils; \ diff --git a/dev-util/patchutils/files/0.4.5-const.patch b/dev-util/patchutils/files/0.4.5-const.patch new file mode 100644 index 000000000000..35518dc924a6 --- /dev/null +++ b/dev-util/patchutils/files/0.4.5-const.patch @@ -0,0 +1,69 @@ +https://github.com/twaugh/patchutils/commit/0cfe6230b6669526ef8de3a1b26b55ae9e9c96fa + +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com> +Date: Thu, 26 Feb 2026 18:07:35 +0100 +Subject: [PATCH] More const fixes for C23 [0.4.x] +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This is a followup to #159 and fixes more glibc-2.43/C23 related const +warnings. Where we can, we make things more const; where necessary we +explicitly treat mutable things as mutable instead of pretending that +they are not. + +Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> +--- + src/diff.c | 4 ++-- + src/rediff.c | 2 +- + src/util.c | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/diff.c b/src/diff.c +index 9c17e112..40c51cd2 100644 +--- a/src/diff.c ++++ b/src/diff.c +@@ -159,7 +159,7 @@ const char *stripped (const char *name, int num_components) + + unsigned long calculate_num_lines (const char *atatline, char which) + { +- char *p = strchr (atatline, which); ++ const char *p = strchr (atatline, which); + if (!p) + return 1; + while (*p && *p != ',' && *p != ' ') p++; +@@ -187,7 +187,7 @@ int read_atatline (const char *atatline, + { + char *endptr; + unsigned long res; +- char *p; ++ const char *p; + + if (orig_offset) { + p = strchr (atatline, '-'); +diff --git a/src/rediff.c b/src/rediff.c +index 10e6765c..7a4546f9 100644 +--- a/src/rediff.c ++++ b/src/rediff.c +@@ -265,7 +265,7 @@ static void copy_to (struct hunk *from, struct hunk *upto, + } + + /* Deal with an added hunk. */ +-static long added_hunk (const char *meta, long offset, FILE *modify, FILE *t, ++static long added_hunk (char *meta, long offset, FILE *modify, FILE *t, + unsigned long morig_count, unsigned long mnew_count) + { + long this_offset = 0; +diff --git a/src/util.c b/src/util.c +index 4f46f3c4..0ff86ee3 100644 +--- a/src/util.c ++++ b/src/util.c +@@ -250,7 +250,7 @@ FILE *xopen_seekable (const char *name, const char *mode) + /* unzip if needed */ + FILE *xopen_unzip (const char *name, const char *mode) + { +- char *p, *zprog = NULL; ++ const char *p, *zprog = NULL; + FILE *fi, *fo; + const size_t buflen = 64 * 1024; + char *buffer; diff --git a/dev-util/patchutils/metadata.xml b/dev-util/patchutils/metadata.xml new file mode 100644 index 000000000000..6aac50524584 --- /dev/null +++ b/dev-util/patchutils/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-util/patchutils/patchutils-0.4.2.ebuild b/dev-util/patchutils/patchutils-0.4.2.ebuild new file mode 100644 index 000000000000..2d2344b85469 --- /dev/null +++ b/dev-util/patchutils/patchutils-0.4.2.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="A collection of tools that operate on patch files" +HOMEPAGE="http://cyberelk.net/tim/patchutils/" +SRC_URI="http://cyberelk.net/tim/data/patchutils/stable/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" +IUSE="pcre" + +RDEPEND="pcre? ( dev-libs/libpcre2:= )" +DEPEND="${RDEPEND}" + +src_configure() { + econf $(use_with pcre pcre2) +} 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..cecbb4465fb8 --- /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_{13..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" +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) +} diff --git a/dev-util/patchutils/patchutils-0.4.4-r2.ebuild b/dev-util/patchutils/patchutils-0.4.4-r2.ebuild new file mode 100644 index 000000000000..ffef98a259f3 --- /dev/null +++ b/dev-util/patchutils/patchutils-0.4.4-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..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 + https://dev.gentoo.org/~dilfridge/distfiles/${P}-gnulib.patch.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +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 + eapply "${WORKDIR}/${P}-gnulib.patch" + 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) +} diff --git a/dev-util/patchutils/patchutils-0.4.5-r1.ebuild b/dev-util/patchutils/patchutils-0.4.5-r1.ebuild new file mode 100644 index 000000000000..8dd8bb03e4a3 --- /dev/null +++ b/dev-util/patchutils/patchutils-0.4.5-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..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" +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" + +PATCHES=( + "${FILESDIR}/0.4.5-const.patch" + "${FILESDIR}/0.4.5-completion-symlinks.patch" +) + +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) +} |
