blob: d8f4d248b22c5cb34697c697ae8bf2d6ed555356 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit toolchain-funcs
DESCRIPTION="Nigel's Monitor - provided by IBM"
HOMEPAGE="http://nmon.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/lmon${PV}.c"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"
src_unpack() {
cp "${DISTDIR}"/lmon${PV}.c "${WORKDIR}"/lmon.c || die "cp failed"
cp "${FILESDIR}/${P}_makefile" "${WORKDIR}"/makefile || die "cp failed"
}
src_compile() {
emake CC="$(tc-getCC)" || die "emake failed"
}
src_install() {
dobin nmon || die "dobin failed"
}
|