/[gentoo-x86]/sys-apps/findutils/findutils-4.1.7-r2.ebuild
Gentoo

Contents of /sys-apps/findutils/findutils-4.1.7-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Dec 3 08:39:05 2002 UTC (17 years, 7 months ago) by bcowan
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.2: +2 -2 lines
syntax fix

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.1.7-r2.ebuild,v 1.2 2002/12/03 05:32:26 bcowan Exp $
4
5 IUSE="nls build afs"
6
7 S=${WORKDIR}/${P}
8
9 DESCRIPTION="GNU utilities to find files"
10 SRC_URI="ftp://alpha.gnu.org/gnu/${P}.tar.gz"
11 HOMEPAGE="http://www.gnu.org/software/findutils/findutils.html"
12
13 KEYWORDS="~x86"
14 SLOT="0"
15 LICENSE="GPL-2"
16
17 DEPEND="virtual/glibc
18 nls? ( sys-devel/gettext )
19 afs? ( net-fs/openafs )"
20 RDEPEND="virtual/glibc"
21
22 src_compile() {
23
24 local myconf
25
26 use nls || myconf="${myconf} --disable-nls"
27
28 if use afs
29 then
30 export CPPFLAGS=-I/usr/afsws/include
31 export LDFLAGS=-lpam
32 export LIBS=/usr/afsws/lib/pam_afs.so.1
33 fi
34
35 ./configure --host=${CHOST} \
36 --prefix=/usr \
37 --localstatedir=/var/spool/locate \
38 ${myconf} || die
39
40 emake libexecdir=/usr/lib/find || die
41 }
42
43 src_install() {
44 #do not change 'localstatedir=/var/spool/locate' to
45 #'localstatedir=${D}/var/spool/locate', as it will then be hardcoded
46 #into locate and updatedb
47 make prefix=${D}/usr \
48 mandir=${D}/usr/share/man \
49 infodir=${D}/usr/share/info \
50 localstatedir=/var/spool/locate \
51 libexecdir=${D}/usr/lib/find \
52 install || die
53
54 dosed "s:TMPDIR=/usr/tmp:TMPDIR=/tmp:" usr/bin/updatedb
55 rm -rf ${D}/usr/var
56 if [ -z "`use build`" ]
57 then
58 dodoc COPYING NEWS README TODO ChangeLog
59 else
60 rm -rf ${D}/usr/share
61 fi
62 dodir /var/spool/locate
63 touch ${D}/var/spool/locate/.keep
64 }
65

  ViewVC Help
Powered by ViewVC 1.1.20