From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 68922138335 for ; Sun, 13 Oct 2019 11:22:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2FB7E087E; Sun, 13 Oct 2019 11:22:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 BC4BCE085B for ; Sun, 13 Oct 2019 11:22:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 A255634BCD1 for ; Sun, 13 Oct 2019 11:22:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E508885 for ; Sun, 13 Oct 2019 11:22:12 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1570965718.bb4c4617af1a8a7a1786135f4807a3e9d5c2c30e.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/smem/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/smem/Manifest dev-util/smem/metadata.xml dev-util/smem/smem-1.4.ebuild X-VCS-Directories: dev-util/smem/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: bb4c4617af1a8a7a1786135f4807a3e9d5c2c30e X-VCS-Branch: master Date: Sun, 13 Oct 2019 11:22:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9404e52e-4b17-415f-a6e7-73fb2bcf288e X-Archives-Hash: 4203f6fc1f5e8a677eebedba1b5da7da commit: bb4c4617af1a8a7a1786135f4807a3e9d5c2c30e Author: Conrad Kostecki kostecki com> AuthorDate: Fri Oct 4 22:33:42 2019 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Oct 13 11:21:58 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb4c4617 dev-util/smem: bump to version 1.4 Closes: https://bugs.gentoo.org/683354 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Conrad Kostecki kostecki.com> Signed-off-by: Joonas Niilola gentoo.org> dev-util/smem/Manifest | 1 + dev-util/smem/metadata.xml | 21 ++++++++++++++++++++- dev-util/smem/smem-1.4.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/dev-util/smem/Manifest b/dev-util/smem/Manifest index 360f05065df..deaf11d8e35 100644 --- a/dev-util/smem/Manifest +++ b/dev-util/smem/Manifest @@ -1 +1,2 @@ +DIST smem-1.4.tar.gz 15733 BLAKE2B 6c097c10625050a9d3a133144054d9791bb0ae2f498335398889b58c243b4477d38aefd8203a0483016647a6a72b4bcf4b9af23c241c0e87494614ca6cdaeade SHA512 2740b9ebede8e742e3d01f5f2e7a77a4d3ed04bee78585a904d07c299ea5a77be135dd5b6626abfdebcf2742b9004035443d3faeca04ca9b59c603f74708af9b DIST smem.pl.20071119_p1.bz2 794 BLAKE2B eb48d3ed41d0261a94381da5795764a78d95abcb23fe9d46755e7c4a6672931a972bca8f188a359b7bb4a52afcfe177098c048e3dddc910a7423f5c2bf5d37ac SHA512 452d10b2e3dda5d4167e62e3fd541f89f90cb07c431876e0fb671f30e224b8cd14a0268ab14243342c2188f3d3826e7a8303b3fd2eda393fdc8e31d0f1b1d575 diff --git a/dev-util/smem/metadata.xml b/dev-util/smem/metadata.xml index 7a38bb90096..bd732509198 100644 --- a/dev-util/smem/metadata.xml +++ b/dev-util/smem/metadata.xml @@ -1,5 +1,24 @@ - + + ck+gentoo@bl4ckb0x.de + Conrad Kostecki + + + proxy-maint@gentoo.org + Proxy Maintainers + + + A tool that can give numerous reports on memory usage on Linux systems. + Unlike existing tools, smem can report proportional set size (PSS), + which is a more meaningful representation of the amount of memory + used by libraries and applications in a virtual memory system. + + Because large portions of physical memory are typically shared among + multiple applications, the standard measure of memory usage known as + resident set size (RSS) will significantly overestimate memory usage. + PSS instead measures each application's "fair share" of each shared + area to give a realistic measure. + diff --git a/dev-util/smem/smem-1.4.ebuild b/dev-util/smem/smem-1.4.ebuild new file mode 100644 index 00000000000..2eff0923ad8 --- /dev/null +++ b/dev-util/smem/smem-1.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 toolchain-funcs + +DESCRIPTION="A tool that can give numerous reports on memory usage on Linux systems" +HOMEPAGE="https://www.selenic.com/smem/" +SRC_URI="https://www.selenic.com/${PN}/download/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" + +BDEPEND="dev-lang/python:2.7" + +src_prepare() { + default + + python_fix_shebang smem +} + +src_compile() { + "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -o smemcap smemcap.c || die +} + +src_install() { + dobin smemcap + python_doexe smem + + doman smem.8 +} + +pkg_postinst() { + optfeature "for chart generation." dev-python/matplotlib +}