blob: ab7e3b0c65d4f45d8986c872c4efe9f0919ab557 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/procinfo-ng/procinfo-ng-2.0.304-r1.ebuild,v 1.1 2014/11/06 08:25:06 jlec Exp $
EAPI=5
inherit autotools eutils toolchain-funcs
DESCRIPTION="Completely rewrite of the old system monitoring app procinfo"
HOMEPAGE="http://sourceforge.net/projects/procinfo-ng/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="|| ( GPL-2 LGPL-2.1 )"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
IUSE=""
RDEPEND="
sys-libs/ncurses
!app-admin/procinfo"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-as-needed.patch
"${FILESDIR}"/${P}-man.patch
)
src_prepare() {
epatch ${PATCHES[@]}
# removing -s flag as portage does the stripping part and add support
# for custom LDFLAGS. Plus correct for --as-needed
sed \
-e 's:-s -lncurses:${LDFLAGS}:' \
-i configure.in || die "sed configure.in failed"
eautoreconf
}
src_compile() {
emake LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
}
|