Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/smem/
Date: Sun, 13 Oct 2019 11:22:18
Message-Id: 1570965718.bb4c4617af1a8a7a1786135f4807a3e9d5c2c30e.juippis@gentoo
1 commit: bb4c4617af1a8a7a1786135f4807a3e9d5c2c30e
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Fri Oct 4 22:33:42 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 11:21:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb4c4617
7
8 dev-util/smem: bump to version 1.4
9
10 Closes: https://bugs.gentoo.org/683354
11 Package-Manager: Portage-2.3.76, Repoman-2.3.17
12 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 dev-util/smem/Manifest | 1 +
16 dev-util/smem/metadata.xml | 21 ++++++++++++++++++++-
17 dev-util/smem/smem-1.4.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++
18 3 files changed, 63 insertions(+), 1 deletion(-)
19
20 diff --git a/dev-util/smem/Manifest b/dev-util/smem/Manifest
21 index 360f05065df..deaf11d8e35 100644
22 --- a/dev-util/smem/Manifest
23 +++ b/dev-util/smem/Manifest
24 @@ -1 +1,2 @@
25 +DIST smem-1.4.tar.gz 15733 BLAKE2B 6c097c10625050a9d3a133144054d9791bb0ae2f498335398889b58c243b4477d38aefd8203a0483016647a6a72b4bcf4b9af23c241c0e87494614ca6cdaeade SHA512 2740b9ebede8e742e3d01f5f2e7a77a4d3ed04bee78585a904d07c299ea5a77be135dd5b6626abfdebcf2742b9004035443d3faeca04ca9b59c603f74708af9b
26 DIST smem.pl.20071119_p1.bz2 794 BLAKE2B eb48d3ed41d0261a94381da5795764a78d95abcb23fe9d46755e7c4a6672931a972bca8f188a359b7bb4a52afcfe177098c048e3dddc910a7423f5c2bf5d37ac SHA512 452d10b2e3dda5d4167e62e3fd541f89f90cb07c431876e0fb671f30e224b8cd14a0268ab14243342c2188f3d3826e7a8303b3fd2eda393fdc8e31d0f1b1d575
27
28 diff --git a/dev-util/smem/metadata.xml b/dev-util/smem/metadata.xml
29 index 7a38bb90096..bd732509198 100644
30 --- a/dev-util/smem/metadata.xml
31 +++ b/dev-util/smem/metadata.xml
32 @@ -1,5 +1,24 @@
33 <?xml version="1.0" encoding="UTF-8"?>
34 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 <pkgmetadata>
36 - <!-- maintainer-needed -->
37 + <maintainer type="person">
38 + <email>ck+gentoo@××××××××.de</email>
39 + <name>Conrad Kostecki</name>
40 + </maintainer>
41 + <maintainer type="project">
42 + <email>proxy-maint@g.o</email>
43 + <name>Proxy Maintainers</name>
44 + </maintainer>
45 + <longdescription>
46 + A tool that can give numerous reports on memory usage on Linux systems.
47 + Unlike existing tools, smem can report proportional set size (PSS),
48 + which is a more meaningful representation of the amount of memory
49 + used by libraries and applications in a virtual memory system.
50 +
51 + Because large portions of physical memory are typically shared among
52 + multiple applications, the standard measure of memory usage known as
53 + resident set size (RSS) will significantly overestimate memory usage.
54 + PSS instead measures each application's "fair share" of each shared
55 + area to give a realistic measure.
56 + </longdescription>
57 </pkgmetadata>
58
59 diff --git a/dev-util/smem/smem-1.4.ebuild b/dev-util/smem/smem-1.4.ebuild
60 new file mode 100644
61 index 00000000000..2eff0923ad8
62 --- /dev/null
63 +++ b/dev-util/smem/smem-1.4.ebuild
64 @@ -0,0 +1,42 @@
65 +# Copyright 2019 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=7
69 +
70 +PYTHON_COMPAT=( python2_7 )
71 +
72 +inherit python-single-r1 toolchain-funcs
73 +
74 +DESCRIPTION="A tool that can give numerous reports on memory usage on Linux systems"
75 +HOMEPAGE="https://www.selenic.com/smem/"
76 +SRC_URI="https://www.selenic.com/${PN}/download/${P}.tar.gz"
77 +
78 +LICENSE="GPL-2+"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
82 +
83 +RDEPEND="${PYTHON_DEPS}"
84 +
85 +BDEPEND="dev-lang/python:2.7"
86 +
87 +src_prepare() {
88 + default
89 +
90 + python_fix_shebang smem
91 +}
92 +
93 +src_compile() {
94 + "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -o smemcap smemcap.c || die
95 +}
96 +
97 +src_install() {
98 + dobin smemcap
99 + python_doexe smem
100 +
101 + doman smem.8
102 +}
103 +
104 +pkg_postinst() {
105 + optfeature "for chart generation." dev-python/matplotlib
106 +}