commit:     a8a1fbdcfb9f1b410009620a9675379cf686d161
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  6 01:45:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  6 01:45:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a1fbdc

app-arch/gzip: add 1.13_p20250405

https://lists.gnu.org/archive/html/platform-testers/2025-04/msg00002.html

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/gzip/Manifest                   |  2 +
 app-arch/gzip/gzip-1.13_p20250405.ebuild | 96 ++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/app-arch/gzip/Manifest b/app-arch/gzip/Manifest
index 694ed8bba701..49accba5c1c3 100644
--- a/app-arch/gzip/Manifest
+++ b/app-arch/gzip/Manifest
@@ -1,2 +1,4 @@
 DIST gzip-1.13.tar.xz 838248 BLAKE2B 
f0e3b4c28bafcd3b59b65ac2d71218dc58d81b52c6921c1be038757c99e99184178c5d0e9674caa5099713b8b64e8c85cf061f4abfa20b73b478288f121fb05d
 SHA512 
e3d4d4aa4b2e53fdad980620307257c91dfbbc40bcec9baa8d4e85e8327f55e2ece552c9baf209df7b66a07103ab92d4954ac53c86c57fbde5e1dd461143f94c
 DIST gzip-1.13.tar.xz.sig 833 BLAKE2B 
42e38fa7b3a6b6d21a18308cf662844ed84e1a142a945f3f3142db0a14212c0e642de514abb1307ec12ee7bb9644472cc3aed40582d9c266ab24808acbca0215
 SHA512 
f95e016f61f4a67cb4cec6cede2510af6bb5567d72bbd3d70210a6d5cf3ee5fea8f0cbf8f7b612fa52f2ecfd9dba050d9cd4494075ce5ac4abac7b74eaa7ccbc
+DIST gzip-1.13_p20250405.tar.xz 892960 BLAKE2B 
a3b52fbc4db6594ebc98d0f49d04f18073036bd2b29ac1aedb77ce124f8ac232e502450763d260d9d836066d21106b4770561f67dbe833bf43ed9b6c12987389
 SHA512 
8c439fbb15924eb38e421b04919fc2013e5a814445c83b665e4538f34f9b4b8c73dfe1910aba8c38ef98ee4bd57f01082798e6056802a12aa95d0c82e4a08412
+DIST gzip-1.13_p20250405.tar.xz.sig 833 BLAKE2B 
b47479ee151f093e6fa81abfe9587c887994562bb19631da9b3506a020ec8ccbc34eb79df29f61e4e441b46fb3e7b5e603357d75edf5d13973ca52737967f897
 SHA512 
162488d2085664514f8893128fbe6227860e8c8e152a979196c311f68706781c058fdada3fe659e41059aaaf281f0539b035f358e5e633d59e9c5634edbefadb

diff --git a/app-arch/gzip/gzip-1.13_p20250405.ebuild 
b/app-arch/gzip/gzip-1.13_p20250405.ebuild
new file mode 100644
index 000000000000..114d6d16b302
--- /dev/null
+++ b/app-arch/gzip/gzip-1.13_p20250405.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gzip.asc
+inherit eapi9-ver flag-o-matic verify-sig
+
+DESCRIPTION="Standard GNU compressor"
+HOMEPAGE="https://www.gnu.org/software/gzip/";
+if [[ ${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-2).56-e549"
+       SRC_URI="
+               https://meyering.net/gzip/gzip-${MY_SNAPSHOT}.tar.xz -> 
${P}.tar.xz
+               verify-sig? (
+                       
https://meyering.net/gzip/gzip-${MY_SNAPSHOT}.tar.xz.sig -> ${P}.tar.xz.sig
+               )
+       "
+       S="${WORKDIR}"/${PN}-${MY_SNAPSHOT}
+else
+       SRC_URI="
+               mirror://gnu/gzip/${P}.tar.xz
+               verify-sig? (
+                       mirror://gnu/gzip/${P}.tar.xz.sig
+               )
+       "
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+if [[ ${PV} != *_p* ]] ; then
+       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
+IUSE="pic static"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gzip )"
+RDEPEND="!app-arch/pigz[symlink(-)]"
+PDEPEND="
+       app-alternatives/gzip
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.3.8-install-symlinks.patch"
+)
+
+src_configure() {
+       use static && append-flags -static
+
+       # Avoid text relocation in gzip
+       use pic && export DEFS="NO_ASM"
+
+       # embeds the path to grep detected at build time into installed scripts;
+       # use the canonical USE="split-usr" agnostic path. bug #935721
+       export GREP="${EPREFIX}/bin/grep"
+
+       # bug #663928
+       econf --disable-gcc-warnings
+}
+
+src_install() {
+       default
+
+       docinto txt
+       dodoc algorithm.doc gzip.doc
+
+       # Avoid conflict with app-arch/ncompress
+       rm "${ED}"/usr/bin/uncompress || die
+
+       # keep most things in /usr, just the fun stuff in /
+       # also rename them to avoid conflict with app-alternatives/gzip
+       dodir /bin
+       local x
+       for x in gunzip gzip zcat; do
+               mv "${ED}/usr/bin/${x}" "${ED}/bin/${x}-reference" || die
+       done
+       mv "${ED}"/usr/share/man/man1/gzip{,-reference}.1 || die
+       rm "${ED}"/usr/share/man/man1/{gunzip,zcat}.1 || die
+}
+
+pkg_postinst() {
+       if ver_replacing -lt "1.12-r2"; then
+               ewarn "This package no longer installs 'uncompress'."
+               ewarn "Please use 'gzip -d' to decompress .Z files."
+       fi
+
+       # ensure to preserve the symlinks before app-alternatives/gzip
+       # is installed
+       local x
+       for x in gunzip gzip zcat; do
+               if [[ ! -h ${EROOT}/bin/${x} ]]; then
+                       ln -s "${x}-reference" "${EROOT}/bin/${x}" || die
+               fi
+       done
+}

Reply via email to