blob: c23dd3fb6e1574925cf3ac65a60ecbcc54042751 (
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
|
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: System Team <system@gentoo.org>
# Author: Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.1-r7.ebuild,v 1.3 2002/07/10 16:17:57 aliz Exp $
S=${WORKDIR}/${P}
DESCRIPTION="GNU utilities to find files"
SRC_URI="ftp://prep.ai.mit.edu/gnu/findutils/${P}.tar.gz http://www.ibiblio.org/gentoo/distfiles/findutils-4.1.diff.gz"
HOMEPAGE="http://www.gnu.org/software/findutils/findutils.html"
DEPEND="virtual/glibc sys-devel/gettext"
RDEPEND="virtual/glibc"
LICENSE="GPL-2"
src_unpack() {
unpack ${P}.tar.gz
echo "Applying Patch..."
cd ${S}
cat ${DISTDIR}/findutils-4.1.diff.gz | gzip -d | patch -p1 || die
}
src_compile() {
./configure --host=${CHOST} --prefix=/usr || die
emake libexecdir=/usr/lib/find || die
}
src_install() {
make prefix=${D}/usr mandir=${D}/usr/share/man infodir=${D}/usr/share/info libexecdir=${D}/usr/lib/find install || die
dosed "s:TMPDIR=/usr/tmp:TMPDIR=/tmp:" usr/bin/updatedb
rm -rf ${D}/usr/var
if [ -z "`use build`" ]
then
dodoc COPYING NEWS README TODO ChangeLog
else
rm -rf ${D}/usr/share
fi
dodir /var/spool/locate
touch ${D}/var/spool/locate/.keep
}
|