From c218398bbbe70a616790cf146c28c1066b9284bf Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 9 Jul 2024 12:24:59 +0100 Subject: gentoo auto-resync : 09:07:2024 - 12:24:58 --- app-arch/gzip/Manifest | 2 +- app-arch/gzip/gzip-1.13-r1.ebuild | 101 ++++++++++++++++++++++++++++++++++++++ app-arch/gzip/gzip-1.13.ebuild | 97 ------------------------------------ 3 files changed, 102 insertions(+), 98 deletions(-) create mode 100644 app-arch/gzip/gzip-1.13-r1.ebuild delete mode 100644 app-arch/gzip/gzip-1.13.ebuild (limited to 'app-arch/gzip') diff --git a/app-arch/gzip/Manifest b/app-arch/gzip/Manifest index 17b74bdfaa7e..f8b79d8659b2 100644 --- a/app-arch/gzip/Manifest +++ b/app-arch/gzip/Manifest @@ -1,5 +1,5 @@ AUX gzip-1.3.8-install-symlinks.patch 284 BLAKE2B f461a822371d56505aa3e436c4d611823dfe81ab72f9e1a2bd3547b8fbbae07d2108ac255a1a9dae604f9acb77744bda3a9eec2a575580558a4ca7042164c563 SHA512 4a20d61d48c456c4f5cca31b38e6f26460f781782c66ff4cd1b193eb1a48dd9fa88967989b2698b5e45a61d64c9ce3b87fba0f6b67bf507c5bb386a847f477fd DIST gzip-1.13.tar.xz 838248 BLAKE2B f0e3b4c28bafcd3b59b65ac2d71218dc58d81b52c6921c1be038757c99e99184178c5d0e9674caa5099713b8b64e8c85cf061f4abfa20b73b478288f121fb05d SHA512 e3d4d4aa4b2e53fdad980620307257c91dfbbc40bcec9baa8d4e85e8327f55e2ece552c9baf209df7b66a07103ab92d4954ac53c86c57fbde5e1dd461143f94c DIST gzip-1.13.tar.xz.sig 833 BLAKE2B 42e38fa7b3a6b6d21a18308cf662844ed84e1a142a945f3f3142db0a14212c0e642de514abb1307ec12ee7bb9644472cc3aed40582d9c266ab24808acbca0215 SHA512 f95e016f61f4a67cb4cec6cede2510af6bb5567d72bbd3d70210a6d5cf3ee5fea8f0cbf8f7b612fa52f2ecfd9dba050d9cd4494075ce5ac4abac7b74eaa7ccbc -EBUILD gzip-1.13.ebuild 2426 BLAKE2B 806e241d76575d2d3a66e9483235a958e09b2150cbe256e6bc97194deb7805dafa67766ab499ac11d36a37e28a774f4f5c13f46a8c21882217e295e6122b86c9 SHA512 e2375b1782b20b865ed0c968d8219e220fc3e876ab8c2e9ca32dae34ce3927cbfa9a2a9384d5ea40e4e2790cfdd775e7b767cee433f583054917fe9078f55029 +EBUILD gzip-1.13-r1.ebuild 2600 BLAKE2B 1533cf9ff66870b919e643c0a36d32a174d765e02c9094ee295083c38775df1858d6543e88a518e7aaa472477ebd64a8ec29ae738ad69246d58ec696a26b2fd7 SHA512 117713ed42e780f7baf3ddf15b529b2fc8b2b3714fb979883aa0be48d8e3a14fc83e5f2cec0562148a64edaee26e8fe7c729ab85d66e87d072a53b1b0cefdd7b MISC metadata.xml 479 BLAKE2B cdefe625a65bd3c5e40e813650884b2fc6c41e4d3456d3935d16472097d179a41b42c8b8bf1457bdd3aea29ea91eaa8f7534989385e77016c717871e07d38b8e SHA512 e57ec8f6ad9342c61a6eae56cb70893357ba7feb7ea79d6941ffcda5abaadac05dd2e7469743d3a24ef7dcc7cdb7d6ee02a7172e6462ccbdf9d674aa0cca845e diff --git a/app-arch/gzip/gzip-1.13-r1.ebuild b/app-arch/gzip/gzip-1.13-r1.ebuild new file mode 100644 index 000000000000..aec0278bdd82 --- /dev/null +++ b/app-arch/gzip/gzip-1.13-r1.ebuild @@ -0,0 +1,101 @@ +# 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/gzip.asc +inherit 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).31-7553" + 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 ~ia64 ~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 [[ -n ${REPLACING_VERSIONS} ]]; then + local ver + for ver in ${REPLACING_VERSIONS}; do + if ver_test "${ver}" -lt "1.12-r2"; then + ewarn "This package no longer installs 'uncompress'." + ewarn "Please use 'gzip -d' to decompress .Z files." + fi + done + 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 +} diff --git a/app-arch/gzip/gzip-1.13.ebuild b/app-arch/gzip/gzip-1.13.ebuild deleted file mode 100644 index a864a1774f32..000000000000 --- a/app-arch/gzip/gzip-1.13.ebuild +++ /dev/null @@ -1,97 +0,0 @@ -# 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/gzip.asc -inherit 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).31-7553" - 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 ~ia64 ~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" - - # 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 [[ -n ${REPLACING_VERSIONS} ]]; then - local ver - for ver in ${REPLACING_VERSIONS}; do - if ver_test "${ver}" -lt "1.12-r2"; then - ewarn "This package no longer installs 'uncompress'." - ewarn "Please use 'gzip -d' to decompress .Z files." - fi - done - 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 -} -- cgit v1.2.3