diff options
author | Michael J. Cohen <mjc@gentoo.org> | 2002-10-19 21:46:55 +0000 |
---|---|---|
committer | Michael J. Cohen <mjc@gentoo.org> | 2002-10-19 21:46:55 +0000 |
commit | 72881f315ae4fe785491b1cd04f4ff9d6eda6cda (patch) | |
tree | 0b2bb3568ca42b725d165460aa7d1bee1f189ced /sys-apps/gzip | |
parent | Added ppc to KEYWORDS. (diff) | |
download | gentoo-2-72881f315ae4fe785491b1cd04f4ff9d6eda6cda.tar.gz gentoo-2-72881f315ae4fe785491b1cd04f4ff9d6eda6cda.tar.bz2 gentoo-2-72881f315ae4fe785491b1cd04f4ff9d6eda6cda.zip |
gzip 1.3.3
Diffstat (limited to 'sys-apps/gzip')
-rw-r--r-- | sys-apps/gzip/files/digest-gzip-1.3.3 | 1 | ||||
-rw-r--r-- | sys-apps/gzip/files/gzip-1.3.3-gentoo.diff | 17 | ||||
-rw-r--r-- | sys-apps/gzip/gzip-1.3.3.ebuild | 68 |
3 files changed, 86 insertions, 0 deletions
diff --git a/sys-apps/gzip/files/digest-gzip-1.3.3 b/sys-apps/gzip/files/digest-gzip-1.3.3 new file mode 100644 index 000000000000..8ee90a6f0a0d --- /dev/null +++ b/sys-apps/gzip/files/digest-gzip-1.3.3 @@ -0,0 +1 @@ +MD5 52eaf713673507d21f7abefee98ba662 gzip-1.3.3.tar.gz 312263 diff --git a/sys-apps/gzip/files/gzip-1.3.3-gentoo.diff b/sys-apps/gzip/files/gzip-1.3.3-gentoo.diff new file mode 100644 index 000000000000..50c955775180 --- /dev/null +++ b/sys-apps/gzip/files/gzip-1.3.3-gentoo.diff @@ -0,0 +1,17 @@ +diff -Nru gzip-1.3.3/gzexe.in gzip-1.3.3.gentoo/gzexe.in +--- gzip-1.3.3/gzexe.in 1998-09-17 20:43:06.000000000 -0400 ++++ gzip-1.3.3.gentoo/gzexe.in 2002-10-19 17:44:02.000000000 -0400 +@@ -100,11 +100,11 @@ + prog="`echo $0 | /bin/sed 's|^.*/||'`" + if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then + trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & ++ (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null & + /tmp/"$prog" ${1+"$@"}; res=$? + else + trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0 +- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & ++ (/usr/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null & + /tmp/gztmp$$ ${1+"$@"}; res=$? + fi + else diff --git a/sys-apps/gzip/gzip-1.3.3.ebuild b/sys-apps/gzip/gzip-1.3.3.ebuild new file mode 100644 index 000000000000..167546aba4c7 --- /dev/null +++ b/sys-apps/gzip/gzip-1.3.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gzip/gzip-1.3.3.ebuild,v 1.1 2002/10/19 21:46:55 mjc Exp $ + +IUSE="nls build" + +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU compressor" +SRC_URI="http://www.gzip.org/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" +KEYWORDS="x86 ppc sparc sparc64 alpha" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die +} + +src_compile() { + [ -z "`use nls`" ] && myconf="--disable-nls" + + # Compiling with gcc3 and higher level of optimization seems to + # cause a segmentation fault in some very rare cases on alpha. + [ ${ARCH} == "alpha" ] && CFLAGS="-O -pipe" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --exec-prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + ${myconf} || die + emake || die +} + +src_install() { + dodir /usr/bin /usr/share/man/man1 + make prefix=${D}/usr \ + exec_prefix=${D}/ \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + install || die + cd ${D}/bin + for i in gzexe zforce zgrep zmore znew zcmp + do + dosed -e "1d" -e "s:${D}::" ${i} + chmod 755 ${i} + done + if [ -z "`use build`" ] + then + cd ${D}/usr/share/man/man1 + rm -f gunzip.* zcmp.* zcat.* + ln -s gzip.1.gz gunzip.1.gz + ln -s zdiff.1.gz zcmp.1.gz + ln -s gzip.1.gz zcat.1.gz + cd ${S} + rm -rf ${D}/usr/man ${D}/usr/lib + dodoc ChangeLog COPYING NEWS README THANKS TODO + docinto txt + dodoc algorithm.doc gzip.doc + else + rm -rf ${D}/usr + fi +} |