From c1027e10272358b6a8ec8d6225e719f3214c8c5a Mon Sep 17 00:00:00 2001 From: korli Date: Fri, 2 Dec 2011 22:19:56 +0000 Subject: [PATCH] Add gzip 1.4 --- app-arch/gzip/gzip-1.4.bep | 21 +++++++++++++++++++++ app-arch/gzip/patches/gzip-1.4.patch | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 app-arch/gzip/gzip-1.4.bep create mode 100644 app-arch/gzip/patches/gzip-1.4.patch diff --git a/app-arch/gzip/gzip-1.4.bep b/app-arch/gzip/gzip-1.4.bep new file mode 100644 index 000000000..555edcd22 --- /dev/null +++ b/app-arch/gzip/gzip-1.4.bep @@ -0,0 +1,21 @@ +DESCRIPTION="GNU zip" +HOMEPAGE="http://www.gzip.org/" +SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz" +CHECKSUM_MD5="e381b8506210c794278f5527cba0e765" +REVISION="1" +STATUS_HAIKU="untested" +DEPEND="" +BUILD { + cd gzip-1.4 + ./configure --prefix=`finddir B_COMMON_DIRECTORY` + make +} + +INSTALL { + cd gzip-1.4 + make install +} +LICENSE="GNU GPL v3" +COPYRIGHT="1999, 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + 1992-1993 Jean-loup Gailly" + diff --git a/app-arch/gzip/patches/gzip-1.4.patch b/app-arch/gzip/patches/gzip-1.4.patch new file mode 100644 index 000000000..8b7051d87 --- /dev/null +++ b/app-arch/gzip/patches/gzip-1.4.patch @@ -0,0 +1,18 @@ +--- ./gzip-1.4/inflate.c 2010-01-20 14:15:12.017039360 +0100 ++++ ./gzip-1.4/inflate.c 2011-12-03 00:03:37.421003264 +0100 +@@ -588,6 +588,7 @@ + /* do the copy */ + do { + n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); ++ { + #if !defined(NOMEMCPY) && !defined(DEBUG) + unsigned int delta = w > d ? w - d : d - w; + if (delta >= e) +@@ -602,6 +603,7 @@ + slide[w++] = slide[d++]; + Tracevv((stderr, "%c", slide[w-1])); + } while (--e); ++ } + if (w == WSIZE) + { + flush_output(w);