Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/btop/
Date: Mon, 04 Jul 2022 13:57:23
Message-Id: 1656942906.c7cd94f46d5f20d83b34afc505a66e6dab6f77fd.flow@gentoo
1 commit: c7cd94f46d5f20d83b34afc505a66e6dab6f77fd
2 Author: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de>
3 AuthorDate: Thu Jun 30 09:30:48 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 4 13:55:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7cd94f4
7
8 sys-process/btop: add 1.2.8
9
10 Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de>
11 Closes: https://github.com/gentoo/gentoo/pull/26162
12 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
13
14 sys-process/btop/Manifest | 1 +
15 sys-process/btop/btop-1.2.8.ebuild | 44 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 45 insertions(+)
17
18 diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest
19 index 7ac2b8e4e579..bcc4fb50a4dd 100644
20 --- a/sys-process/btop/Manifest
21 +++ b/sys-process/btop/Manifest
22 @@ -1 +1,2 @@
23 DIST btop-1.2.7.tar.gz 974883 BLAKE2B c23c0b13ee6749e30ca8a7624f27bac8dc81466ff957a042c9c5e4f7c31b81fc6c15d6b214186e4baed474263ea96a3ffc584783cd098f3ebcae9e34bd75a955 SHA512 c29e1e3d098ef29c710bf76c1ef20e54feceb490aa59d20475a7083a276d422a32f4b4ff423a121aa4aa7f83389980e553e1f78c165f111fe00ccac693d96447
24 +DIST btop-1.2.8.tar.gz 976370 BLAKE2B ab71ac322afd84b5b73c5deb9003f319078809d81e2725a7447d2a8fe7539af21c669e7199a3422b2a1cc2ecbd79a46179343e00311f2d56bfa30f51d6340bd3 SHA512 4b5a3685ca5cf301cd7d6556bd365892587e6811f8323ca66728022aba7cc3ff95cf591b452151c9431824dc458bc3d09e10474c7c02a944e8931c4585914f5a
25
26 diff --git a/sys-process/btop/btop-1.2.8.ebuild b/sys-process/btop/btop-1.2.8.ebuild
27 new file mode 100644
28 index 000000000000..e1fc710c461d
29 --- /dev/null
30 +++ b/sys-process/btop/btop-1.2.8.ebuild
31 @@ -0,0 +1,44 @@
32 +# Copyright 2021-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit toolchain-funcs xdg-utils
38 +
39 +DESCRIPTION="A monitor of resources"
40 +HOMEPAGE="https://github.com/aristocratos/btop"
41 +SRC_URI="https://github.com/aristocratos/btop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
46 +
47 +src_prepare() {
48 + default
49 + # btop installs README.md to /usr/share/btop by default
50 + sed -i '/^.*cp -p README.md.*$/d' Makefile || die
51 +}
52 +
53 +src_compile() {
54 + # Disable btop optimization flags, since we have our flags in CXXFLAGS
55 + emake OPTFLAGS="" CXX="$(tc-getCXX)"
56 +}
57 +
58 +src_install() {
59 + emake \
60 + PREFIX="${EPREFIX}/usr" \
61 + DESTDIR="${D}" \
62 + install
63 +
64 + dodoc README.md CHANGELOG.md
65 +}
66 +
67 +pkg_postinst() {
68 + xdg_desktop_database_update
69 + xdg_icon_cache_update
70 +}
71 +
72 +pkg_postrm() {
73 + xdg_desktop_database_update
74 + xdg_icon_cache_update
75 +}