public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eli Schwartz" <eschwartz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/patch/
Date: Sun,  3 Nov 2024 20:47:25 +0000 (UTC)	[thread overview]
Message-ID: <1730666823.cf5d73cc18f72f1d5375f32568fc2a1bc9aac8fd.eschwartz@gentoo> (raw)

commit:     cf5d73cc18f72f1d5375f32568fc2a1bc9aac8fd
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  3 20:47:03 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun Nov  3 20:47:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf5d73cc

sys-devel/patch: add 2.7.6_p20241103

New alpha release after 7 years.

https://lists.gnu.org/archive/html/bug-patch/2024-05/msg00000.html
https://lists.gnu.org/archive/html/bug-patch/2024-11/msg00000.html

Bug: https://bugs.gentoo.org/898598
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
Acked-by: Sam James <sam <AT> gentoo.org>

 sys-devel/patch/Manifest                     |  2 +
 sys-devel/patch/patch-2.7.6_p20241103.ebuild | 76 ++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/sys-devel/patch/Manifest b/sys-devel/patch/Manifest
index 612a9aae3b54..8da8b1d590ac 100644
--- a/sys-devel/patch/Manifest
+++ b/sys-devel/patch/Manifest
@@ -1,2 +1,4 @@
 DIST patch-2.7.6.tar.xz 783756 BLAKE2B e3dd2d155a94c39cb60eafc26677e84de14c3a6d5814dff69de091ded52f21862490970254297795f2c42a0c3203f7e88a8f65bb66968f8dfd6e066bf53f2dfb SHA512 fcca87bdb67a88685a8a25597f9e015f5e60197b9a269fa350ae35a7991ed8da553939b4bbc7f7d3cfd863c67142af403b04165633acbce4339056a905e87fbd
 DIST patch-2.7.6.tar.xz.sig 801 BLAKE2B 8f2decb10402ecf0208d05ea7cce3bae565d31ee2bb2a118367c117d25b158d8bd525cae654ec0c0e2c036cc8f47a331edc1bb10b100683ade64dfa3b651988b SHA512 1302a1110dcda4f3d83b5263415d72be55c46dae0efb1c123e9c346154e09def5657004bbe7249e2d014555349410e7a5217140dd8852331235f75bcc757351b
+DIST patch-2.7.6_p20241103.tar.xz 903028 BLAKE2B 874f390bd9a3ed2c5da59c41c708bf41d9bf3bcfe799a0647c7382013793a29ec331df82510424ff2fd9b280e0594822d08eae1074af774d57f625214edc3578 SHA512 29db065dd17e25aa562acb1d7ba6be780eed59c2cc9b74e76b5d5b2dac1768e25e8a28acde0907825f6d863a7e14ede33537c89361624e3dcfbb6c0fa6fb0cf2
+DIST patch-2.7.6_p20241103.tar.xz.sig 833 BLAKE2B 3a065dd0c8f83a0287f091536fa89a9914272ae49bdd2b67f91173365789275427e52f20bfcff50c65194a97e96cd07201781d1d13eb84f0adc2d52d741d8598 SHA512 4ee1151deced3dab999794913a2bfc54096cf42a9c0757b192b7fad71ecd6ec28f4f1451818262f154240e909654253d20b41a555230d260c9c4d29f36dd54ba

diff --git a/sys-devel/patch/patch-2.7.6_p20241103.ebuild b/sys-devel/patch/patch-2.7.6_p20241103.ebuild
new file mode 100644
index 000000000000..05897044befe
--- /dev/null
+++ b/sys-devel/patch/patch-2.7.6_p20241103.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/patch.asc
+inherit flag-o-matic verify-sig
+
+DESCRIPTION="Utility to apply diffs to files"
+HOMEPAGE="https://www.gnu.org/software/patch/patch.html"
+if [[ ${PV} == 9999 ]] ; then
+	EGIT_REPO_URI="https://git.savannah.gnu.org/git/patch.git"
+	inherit git-r3
+elif [[ ${PV} = *_p* ]] ; then
+	# Note: could put this in devspace, but if it's gone, we don't want
+	# it in tree anyway. It's just for testing.
+	MY_SNAPSHOT="$(ver_cut 1-3).200-be8b"
+	SRC_URI="https://meyering.net/patch/patch-${MY_SNAPSHOT}.tar.xz -> ${P}.tar.xz"
+	SRC_URI+=" verify-sig? ( https://meyering.net/patch/patch-${MY_SNAPSHOT}.tar.xz.sig -> ${P}.tar.xz.sig )"
+	S="${WORKDIR}"/${PN}-${MY_SNAPSHOT}
+else
+	SRC_URI="mirror://gnu/patch/${P}.tar.xz"
+	SRC_URI+=" verify-sig? ( mirror://gnu/patch/${P}.tar.xz.sig )"
+
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="static test xattr"
+RESTRICT="!test? ( test )"
+
+RDEPEND="xattr? ( sys-apps/attr )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	test? ( sys-apps/ed )
+	verify-sig? ( sec-keys/openpgp-keys-patch )
+"
+
+src_unpack() {
+	if [[ ${PV} == 9999 ]] ; then
+		git-r3_src_unpack
+
+		cd "${S}" || die
+		./bootstrap || die
+	elif use verify-sig ; then
+		verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig}
+	fi
+
+	default
+}
+
+src_configure() {
+	use static && append-ldflags -static
+
+	local myeconfargs=(
+		$(use_enable xattr)
+		# rename to gpatch for better BSD compatibility
+		--program-prefix=g
+	)
+	# Do not let $ED mess up the search for `ed` 470210.
+	ac_cv_path_ED=$(type -P ed) \
+		econf "${myeconfargs[@]}"
+}
+
+src_test() {
+	emake check gl_public_submodule_commit=
+}
+
+src_install() {
+	default
+
+	# symlink to the standard name
+	dosym gpatch /usr/bin/patch
+	dosym gpatch.1 /usr/share/man/man1/patch.1
+}


             reply	other threads:[~2024-11-03 20:47 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 20:47 Eli Schwartz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-01  1:37 [gentoo-commits] repo/gentoo:master commit in: sys-devel/patch/ Sam James
2023-03-31 12:08 Arthur Zamarin
2023-02-24 18:36 Sam James
2023-01-29  0:59 Sam James
2023-01-27  8:05 Sam James
2023-01-27  8:05 Sam James
2023-01-27  8:05 Sam James
2023-01-27  8:05 Sam James
2023-01-27  6:31 Sam James
2023-01-27  6:31 Sam James
2022-10-30 15:51 Sam James
2022-04-07  3:57 Sam James
2022-01-06  9:07 David Seifert
2021-01-06 15:32 Fabian Groffen
2020-12-27 18:18 Fabian Groffen
2020-05-04 17:36 Thomas Deutschmann
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:00 Agostino Sarubbo
2019-08-19  6:57 Sergei Trofimovich
2019-08-18 10:12 Sergei Trofimovich
2019-08-18 10:10 Sergei Trofimovich
2019-08-18 10:08 Sergei Trofimovich
2019-08-18  8:29 Sergei Trofimovich
2019-08-16 22:38 Thomas Deutschmann
2019-08-16 21:53 Aaron Bauman
2019-08-16 21:50 Mikle Kolyada
2019-05-03 23:38 Mikle Kolyada
2019-04-11  9:49 Mikle Kolyada
2019-04-11  9:49 Mikle Kolyada
2019-04-11  9:49 Mikle Kolyada
2019-04-10 22:03 Sergei Trofimovich
2019-04-08  8:39 Mart Raudsepp
2019-04-08  6:42 Mikle Kolyada
2019-04-07 21:53 Mikle Kolyada
2019-04-07 21:41 Mikle Kolyada
2019-04-07 20:52 Sergei Trofimovich
2019-04-05 20:47 Agostino Sarubbo
2018-08-31  3:26 Thomas Deutschmann
2018-08-31  3:26 Thomas Deutschmann
2018-05-27 14:53 Mikle Kolyada
2018-04-24 15:14 Mart Raudsepp
2018-03-22 16:37 Mikle Kolyada
2018-03-18  1:02 Matt Turner
2018-03-18  1:02 Matt Turner
2018-03-15 14:14 Mikle Kolyada
2018-03-05 13:57 Tobias Klausmann
2018-02-17 22:12 Sergei Trofimovich
2018-02-14 13:29 Jason Zaman
2018-02-13  7:54 Sergei Trofimovich
2018-02-12 21:36 Thomas Deutschmann
2018-02-07 11:35 Lars Wendler
2018-02-07  9:51 Lars Wendler
2017-02-20 14:11 Michael Haubenwallner
2017-01-29 20:14 Fabian Groffen
2016-12-07  8:40 Mike Frysinger
2016-12-01 21:59 Lars Wendler
2016-02-29  8:46 Stephen Klimaszewski

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=1730666823.cf5d73cc18f72f1d5375f32568fc2a1bc9aac8fd.eschwartz@gentoo \
    --to=eschwartz@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