From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-964971-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 25580139694
	for <garchives@archives.gentoo.org>; Wed,  2 Aug 2017 07:43:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 287A31FC0A3;
	Wed,  2 Aug 2017 07:43:37 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id DB9C91FC0A3
	for <gentoo-commits@lists.gentoo.org>; Wed,  2 Aug 2017 07:43:36 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 7E2A43418EA
	for <gentoo-commits@lists.gentoo.org>; Wed,  2 Aug 2017 07:43:35 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1011075D1
	for <gentoo-commits@lists.gentoo.org>; Wed,  2 Aug 2017 07:43:34 +0000 (UTC)
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" <polynomial-c@gentoo.org>
Message-ID: <1501659809.2752abb987ff28997e5f7fd2da3adb5a4d6db28c.polynomial-c@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/nmon/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-process/nmon/Manifest sys-process/nmon/nmon-16g.ebuild
X-VCS-Directories: sys-process/nmon/
X-VCS-Committer: polynomial-c
X-VCS-Committer-Name: Lars Wendler
X-VCS-Revision: 2752abb987ff28997e5f7fd2da3adb5a4d6db28c
X-VCS-Branch: master
Date: Wed,  2 Aug 2017 07:43:34 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 06b783f1-dd9b-401d-865a-48675bddf8f7
X-Archives-Hash: 5dc9b5b64595c2e4b8a5b78bc0d32b37

commit:     2752abb987ff28997e5f7fd2da3adb5a4d6db28c
Author:     Nelo-T. Wallus <nelo <AT> wallus <DOT> de>
AuthorDate: Tue Aug  1 19:44:13 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Aug  2 07:43:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2752abb9

sys-process/nmon: Bump version

Package-Manager: Portage-2.3.6, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/5269

 sys-process/nmon/Manifest        |  1 +
 sys-process/nmon/nmon-16g.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/sys-process/nmon/Manifest b/sys-process/nmon/Manifest
index c9c0fa4ef93..1c3b065ea72 100644
--- a/sys-process/nmon/Manifest
+++ b/sys-process/nmon/Manifest
@@ -1 +1,2 @@
 DIST lmon16f.c 271123 SHA256 280a371e17488f8a2c5e0c64273155789be6fa5b937ab5c465488e591bdc5cd9 SHA512 04d22b4678932067d42158f1bc794f79b5a321e10ba7163632be3b930e28176d0d057cd652ef7cd342167741aafdc00a16e612a99522bfe75072e67cf8d0a66b WHIRLPOOL 26d7f13fad94171a9f66da52fc5a927e2133c41f524956725a4f5e4527d61c2d0034a4c0eada85d22ff81c2b0cbc0f4f26eee0595f844212af36197b76704d3d
+DIST lmon16g.c 267681 SHA256 da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688 SHA512 87287183db48338a281438efc7a8b74249cf88c0a0799e826a9a89b0eb39835b0ba223c7ea6decc217848179f4991909b3cf307aa7eec8a3a4604ebf8a4e8ebe WHIRLPOOL 662146f0554692435969d191848aecec630c48d156fa4f23544c8a30f15ee6fd03f43de4fa556dc644a9c1dfb5714e9fb2eb51d9dd3d0566e4145541e13fa28f

diff --git a/sys-process/nmon/nmon-16g.ebuild b/sys-process/nmon/nmon-16g.ebuild
new file mode 100644
index 00000000000..918ae4569cc
--- /dev/null
+++ b/sys-process/nmon/nmon-16g.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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}
+	virtual/pkgconfig
+"
+
+S="${WORKDIR}"
+
+src_unpack() {
+	cp -v -f "${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[@]}"
+	export LDLIBS="$( $(tc-getPKG_CONFIG) --libs ncurses ) -lm"
+}
+
+src_compile() {
+	emake ${PN}
+}
+
+src_install() {
+	dobin ${PN}
+}