diff options
author | 2019-03-20 23:27:44 +0100 | |
---|---|---|
committer | 2019-03-26 09:58:44 +0100 | |
commit | 956411b6ee7abee596ef4e6384f4b8b5e244aab8 (patch) | |
tree | 0abd215f93ac77192f4ecd5057c78c1e9e0a5323 /sys-process/nmon/nmon-16i.ebuild | |
parent | x11-wm/i3: Removed old. (diff) | |
download | gentoo-956411b6ee7abee596ef4e6384f4b8b5e244aab8.tar.gz gentoo-956411b6ee7abee596ef4e6384f4b8b5e244aab8.tar.bz2 gentoo-956411b6ee7abee596ef4e6384f4b8b5e244aab8.zip |
sys-process/nmon: Bump to 16i
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Nelo-T. Wallus <nelo@wallus.de>
Closes: https://github.com/gentoo/gentoo/pull/11427
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-process/nmon/nmon-16i.ebuild')
-rw-r--r-- | sys-process/nmon/nmon-16i.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-process/nmon/nmon-16i.ebuild b/sys-process/nmon/nmon-16i.ebuild new file mode 100644 index 000000000000..4cc52ae9c054 --- /dev/null +++ b/sys-process/nmon/nmon-16i.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +MY_P="lmon${PV}" + +DESCRIPTION="Nigel's performance MONitor for CPU, memory, network, disks, etc..." +HOMEPAGE="http://nmon.sourceforge.net/" +LICENSE="GPL-3" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" + +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}"/${MY_P}.c "${S}"/${PN}.c || die +} + +src_configure() { + local cflags=( + ## recommended by upstream to be always on + -DGETUSER + -DJFS + -DLARGEMEM + -DKERNEL_2_6_18 + + ## archs + $(usex amd64 -DX86 '') + $(usex x86 -DX86 '') + $(usex arm -DARM '') + $(usex ppc64 -DPOWER '') + ) + append-cflags "${cflags[@]}" + append-libs "$($(tc-getPKG_CONFIG) --libs ncurses) -lm" +} + +src_compile() { + emake ${PN} LDLIBS="${LIBS}" +} + +src_install() { + dobin ${PN} +} |