commit:     2f149a2ea9ff654e305feea7693e6ff9e2663c9a
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  8 08:30:55 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan  8 08:32:57 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f149a2e

app-arch/gzip: Bump to version 1.9

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-arch/gzip/Manifest                             |  1 +
 .../gzip/files/gzip-1.3.8-install-symlinks.patch   |  4 +--
 app-arch/gzip/files/gzip-1.4-asmv.patch            |  4 +--
 app-arch/gzip/gzip-1.9.ebuild                      | 39 ++++++++++++++++++++++
 4 files changed, 44 insertions(+), 4 deletions(-)

diff --git a/app-arch/gzip/Manifest b/app-arch/gzip/Manifest
index 472b9a3b396..3233d4dd97c 100644
--- a/app-arch/gzip/Manifest
+++ b/app-arch/gzip/Manifest
@@ -1,3 +1,4 @@
 DIST gzip-1.6.tar.xz 725084 BLAKE2B 
3f4e6ac2e3186de403a1be58041f4b8f86074d8659cb360a64cd1bab023c0f46a1521aadf1a8669636ec1202cca96a1b73a77c208a7eb99b0eb6b14657231a4f
 SHA512 
06da599fc38b459d7e9a3f43fdd06d1a0d7b29ad14cb7b6552176bab584a1135bb47ba37a4eb377e6c42c4934d557079ace1e289a252ae192ee154079a62ed01
 DIST gzip-1.7.tar.xz 764056 BLAKE2B 
baa5a6b95cf89dffbff05d2b91c3a619dcb67e8692bdff24385b8867259a4191612e8586ebbc96c334d5bd224bf0364ffbf3c0b1384f7632a46ebe09686452c2
 SHA512 
e28f23738f0d2936773d9b50ea9e46c59945e227a90ca7d8e953fb5a774b8692a3341b744320e924da2d5825117dab730affce506f6fc8e65f0af372f3082539
 DIST gzip-1.8.tar.xz 728116 BLAKE2B 
34b707bd403791aca8620de3520637c460dbd9167a4fb693c78438115862781350ef5e256ad0accce75b25515b82fcd3e405cc310d6ea36f2d2609b0a270c4db
 SHA512 
efd3e2439476054badeb127d9156e24e9252129111219f13fd939596c057b2a96291630b2717181984b391abf249ac8699488bbd01ceeb8a70b121c500b10c55
+DIST gzip-1.9.tar.xz 762516 BLAKE2B 
4001fc7a770634916d52b026dab1b621fc96275bfb61ec2df2d0e7d7ec1c81414270d3c866034e6ef758870f38e9d4396a25832abe558915a7ded1f1511eb4b0
 SHA512 
c0852e7f7662141e79d14bc36e50f1940dba3e804feff3b0b8fa084ffec720ac245352282d2f1db117fadc95758424dd418d192b94621dac4367834ccf101fad

diff --git a/app-arch/gzip/files/gzip-1.3.8-install-symlinks.patch 
b/app-arch/gzip/files/gzip-1.3.8-install-symlinks.patch
index 8d92b609b5d..6f04b42c769 100644
--- a/app-arch/gzip/files/gzip-1.3.8-install-symlinks.patch
+++ b/app-arch/gzip/files/gzip-1.3.8-install-symlinks.patch
@@ -1,5 +1,5 @@
---- Makefile.in
-+++ Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
 @@ -926,7 +926,7 @@
             rm -f "$$dest" && \
             case $@ in \

diff --git a/app-arch/gzip/files/gzip-1.4-asmv.patch 
b/app-arch/gzip/files/gzip-1.4-asmv.patch
index c87855018cf..1be1f63738b 100644
--- a/app-arch/gzip/files/gzip-1.4-asmv.patch
+++ b/app-arch/gzip/files/gzip-1.4-asmv.patch
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/show_bug.cgi?id=302773
 
---- tailor.h.old       2010-01-29 11:13:02.000000000 +0000
-+++ tailor.h   2010-01-29 13:18:15.000000000 +0000
+--- a/tailor.h
++++ b/tailor.h
 @@ -69,9 +69,6 @@
  #  include <io.h>
  #  define OS_CODE  0x00

diff --git a/app-arch/gzip/gzip-1.9.ebuild b/app-arch/gzip/gzip-1.9.ebuild
new file mode 100644
index 00000000000..d582478b998
--- /dev/null
+++ b/app-arch/gzip/gzip-1.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Standard GNU compressor"
+HOMEPAGE="https://www.gnu.org/software/gzip/";
+SRC_URI="mirror://gnu/gzip/${P}.tar.xz
+       mirror://gnu-alpha/gzip/${P}.tar.xz
+       mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd 
~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="pic static"
+
+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"
+       econf
+}
+
+src_install() {
+       default
+       docinto txt
+       dodoc algorithm.doc gzip.doc
+
+       # keep most things in /usr, just the fun stuff in /
+       dodir /bin
+       mv "${ED%/}"/usr/bin/{gunzip,gzip,uncompress,zcat} "${ED%/}"/bin/ || die
+       sed -e "s:${EPREFIX}/usr:${EPREFIX}:" -i "${ED%/}"/bin/gunzip || die
+}

Reply via email to