diff options
author | Sam James <sam@gentoo.org> | 2022-06-17 02:52:30 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-17 13:10:05 +0100 |
commit | d47943bb0264fb10611c404a6394279f1f74f39e (patch) | |
tree | 28669b010c797685064bb6ebc5b729de9e799dce /sys-process/nmon/nmon-16n.ebuild | |
parent | media-sound/frescobaldi: add qpageview dep (diff) | |
download | gentoo-d47943bb0264fb10611c404a6394279f1f74f39e.tar.gz gentoo-d47943bb0264fb10611c404a6394279f1f74f39e.tar.bz2 gentoo-d47943bb0264fb10611c404a6394279f1f74f39e.zip |
sys-process/nmon: add 16n
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process/nmon/nmon-16n.ebuild')
-rw-r--r-- | sys-process/nmon/nmon-16n.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sys-process/nmon/nmon-16n.ebuild b/sys-process/nmon/nmon-16n.ebuild new file mode 100644 index 000000000000..f4d4553ac6e5 --- /dev/null +++ b/sys-process/nmon/nmon-16n.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +RDEPEND="sys-libs/ncurses:=" +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() { + tc-export CC + + emake ${PN} LDLIBS="${LIBS}" +} + +src_install() { + dobin ${PN} +} |