summaryrefslogtreecommitdiff
blob: bef9527e66265c5498c1b09d8e3e098a398dc6fd (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/psmisc/psmisc-21.2.ebuild,v 1.3 2002/12/15 10:44:23 bjb Exp $

DESCRIPTION="A set of tools that use the proc filesystem"
SRC_URI="mirror://sourceforge/psmisc/${P}.tar.gz"
HOMEPAGE="http://psmisc.sourceforge.net/"

KEYWORDS="~x86 ~ppc ~sparc ~alpha"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls pic"

DEPEND=">=sys-libs/ncurses-5.2-r2"

src_compile() {
	local myconf="--with-gnu-ld"
	use nls || myconf="${myconf} --disable-nls"
	use pic && myconf="${myconf} --with-pic"

	econf ${myconf}
	emake || die
}

src_install() {
	einstall
	dosym killall /usr/bin/pidof
	dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README

	# some packages expect these to use /usr, others to use /
	dodir /bin
	mv ${D}/usr/bin/* ${D}/bin/
	cd ${D}/bin
	for f in * ; do
		dosym /bin/${f} /usr/bin/${f}
	done
}