1 |
commit: 7acb1f9f858574a994c30c73f0c3edfbbd3f0700 |
2 |
Author: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de> |
3 |
AuthorDate: Sun Nov 6 21:58:59 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 7 11:33:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7acb1f9f |
7 |
|
8 |
sys-process/btop: add 1.2.13 |
9 |
|
10 |
Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/28161 |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
sys-process/btop/Manifest | 1 + |
15 |
sys-process/btop/btop-1.2.13.ebuild | 57 +++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 58 insertions(+) |
17 |
|
18 |
diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest |
19 |
index c01df74cd1ce..b772e97b9196 100644 |
20 |
--- a/sys-process/btop/Manifest |
21 |
+++ b/sys-process/btop/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST btop-1.2.12.tar.gz 980406 BLAKE2B ddaa023b85a00edfb27b55e574950934cce578ad7bbf0ea03b2780a511078638c14cd2316ebce8701be76c13ed3af8f0ded703071b363fddc14bcbea040279dd SHA512 36bf329a7b9922ff5cae990f5528625280b6b3fcb83d0af2e502876a2a8f4864c3a6ecbc6cb5aaa885f637859eef66470ff0cc86036f76b499b23a7c4086ea60 |
24 |
+DIST btop-1.2.13.tar.gz 982660 BLAKE2B 053c1ef87203b894c2cbe6007c3b5962dca232733d28f97d82a2f70e771d4cc92fe4c49d3582c80cb79974d65329d3e95e758b9e8a7fa51a2ff0cdbf6cbd9a75 SHA512 324e572d43e57e5e65e646aa743f7730e6d535fdc52e848aeb55d60c8d73945850c5b89fe0b541e98495ddf2bae71427a6ec8fe8a495b41cef885c535d01019b |
25 |
DIST btop-1.2.9.tar.gz 978265 BLAKE2B ff80079a393342a2cf3aefad6ead8be8b786fbc2b9445e8e2a8b37386f65f4060c801a6f59d216cd611783f4135a60d64b95ff2b5e1a3d62bb2d40030bde8974 SHA512 424573c8f82d0daf748cba7c82e72232773f145af9792ac78a5f5f18d98a8695f11452de106c72cf685ecb8cc89729471a494f9ea6b4300bdb2fa6acdbf4ac60 |
26 |
|
27 |
diff --git a/sys-process/btop/btop-1.2.13.ebuild b/sys-process/btop/btop-1.2.13.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..77749296de4f |
30 |
--- /dev/null |
31 |
+++ b/sys-process/btop/btop-1.2.13.ebuild |
32 |
@@ -0,0 +1,57 @@ |
33 |
+# Copyright 2021-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit toolchain-funcs xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="A monitor of resources" |
41 |
+HOMEPAGE="https://github.com/aristocratos/btop" |
42 |
+SRC_URI="https://github.com/aristocratos/btop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
47 |
+ |
48 |
+BDEPEND=" |
49 |
+ >=sys-devel/gcc-8 |
50 |
+" |
51 |
+ |
52 |
+pkg_setup() { |
53 |
+ if [[ "${MERGE_TYPE}" != "binary" ]]; then |
54 |
+ if ! tc-is-gcc ; then |
55 |
+ # https://bugs.gentoo.org/839318 |
56 |
+ die "$(tc-getCXX) is not a supported compiler. Please use sys-devel/gcc instead." |
57 |
+ fi |
58 |
+ fi |
59 |
+} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ # btop installs README.md to /usr/share/btop by default |
64 |
+ sed -i '/^.*cp -p README.md.*$/d' Makefile || die |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ # Disable btop optimization flags, since we have our flags in CXXFLAGS |
69 |
+ emake VERBOSE=true OPTFLAGS="" CXX="$(tc-getCXX)" |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ emake \ |
74 |
+ PREFIX="${EPREFIX}/usr" \ |
75 |
+ DESTDIR="${D}" \ |
76 |
+ install |
77 |
+ |
78 |
+ dodoc README.md CHANGELOG.md |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ xdg_desktop_database_update |
83 |
+ xdg_icon_cache_update |
84 |
+} |
85 |
+ |
86 |
+pkg_postrm() { |
87 |
+ xdg_desktop_database_update |
88 |
+ xdg_icon_cache_update |
89 |
+} |