blob: 860331a567b0bf2ba6d683d484228535ae68ebdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/gzip/gzip-1.3.2.ebuild,v 1.7 2002/08/14 03:22:06 murphy Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Standard GNU compressor"
SRC_URI="ftp://alpha.gnu.org/gnu/gzip/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html"
KEYWORDS="x86 ppc sparc sparc64"
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"
./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
}
|