From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/bottom/
Date: Tue, 18 Apr 2023 13:10:31 +0000 (UTC) [thread overview]
Message-ID: <1681823429.7df54ac02027d0361169551bfd26bac46e6127b6.juippis@gentoo> (raw)
commit: 7df54ac02027d0361169551bfd26bac46e6127b6
Author: Lucas Hosseini <lucas.hosseini <AT> gmail <DOT> com>
AuthorDate: Wed Mar 22 05:11:58 2023 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Apr 18 13:10:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7df54ac0
sys-process/bottom: add `zfs` and `gpu` USE
Signed-off-by: Lucas Hosseini <lucas.hosseini <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/30296
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sys-process/bottom/bottom-0.8.0-r1.ebuild | 270 ++++++++++++++++++++++++++++++
sys-process/bottom/metadata.xml | 4 +-
2 files changed, 273 insertions(+), 1 deletion(-)
diff --git a/sys-process/bottom/bottom-0.8.0-r1.ebuild b/sys-process/bottom/bottom-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..593cb8a5465e
--- /dev/null
+++ b/sys-process/bottom/bottom-0.8.0-r1.ebuild
@@ -0,0 +1,270 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+ addr2line-0.19.0
+ adler-1.0.2
+ aho-corasick-0.7.18
+ anyhow-1.0.57
+ assert_cmd-2.0.4
+ async-channel-1.6.1
+ async-executor-1.4.1
+ async-fs-1.5.0
+ async-io-1.6.0
+ async-lock-2.5.0
+ async-net-1.6.1
+ async-process-1.3.0
+ async-task-4.2.0
+ atomic-waker-1.0.0
+ atty-0.2.14
+ autocfg-1.1.0
+ backtrace-0.3.67
+ bitflags-1.3.2
+ blocking-1.2.0
+ bottom-0.8.0
+ bstr-0.2.17
+ byteorder-1.4.3
+ cache-padded-1.2.0
+ cargo-husky-1.5.0
+ cassowary-0.3.0
+ cc-1.0.73
+ cfg-if-1.0.0
+ clap-3.1.12
+ clap_complete-3.1.2
+ clap_lex-0.1.1
+ clap_mangen-0.1.6
+ concat-string-1.0.1
+ concurrent-queue-1.2.2
+ const_format-0.2.30
+ const_format_proc_macros-0.2.29
+ core-foundation-0.7.0
+ core-foundation-0.9.3
+ core-foundation-sys-0.7.0
+ core-foundation-sys-0.8.3
+ crossbeam-channel-0.5.4
+ crossbeam-deque-0.8.1
+ crossbeam-epoch-0.9.8
+ crossbeam-utils-0.8.8
+ crossterm-0.25.0
+ crossterm_winapi-0.9.0
+ ctrlc-3.2.4
+ darling-0.10.2
+ darling_core-0.10.2
+ darling_macro-0.10.2
+ difflib-0.4.0
+ dirs-4.0.0
+ dirs-sys-0.3.7
+ doc-comment-0.3.3
+ either-1.6.1
+ errno-0.2.8
+ errno-dragonfly-0.1.2
+ event-listener-2.5.2
+ fastrand-1.7.0
+ fern-0.6.1
+ filedescriptor-0.8.2
+ float-cmp-0.9.0
+ fnv-1.0.7
+ futures-0.3.25
+ futures-channel-0.3.25
+ futures-core-0.3.25
+ futures-executor-0.3.25
+ futures-io-0.3.25
+ futures-lite-1.12.0
+ futures-macro-0.3.25
+ futures-sink-0.3.25
+ futures-task-0.3.25
+ futures-timer-3.0.2
+ futures-util-0.3.25
+ fxhash-0.2.1
+ getrandom-0.2.6
+ gimli-0.27.0
+ glob-0.3.0
+ hashbrown-0.12.3
+ heim-0.1.0-rc.1
+ heim-common-0.1.0-rc.1
+ heim-cpu-0.1.0-rc.1
+ heim-disk-0.1.0-rc.1
+ heim-memory-0.1.0-rc.1
+ heim-net-0.1.0-rc.1
+ heim-runtime-0.1.0-rc.1
+ heim-sensors-0.1.0-rc.1
+ hermit-abi-0.1.19
+ hex-0.4.3
+ humantime-2.1.0
+ humantime-serde-1.1.1
+ ident_case-1.0.1
+ indexmap-1.9.2
+ instant-0.1.12
+ io-lifetimes-1.0.4
+ itertools-0.10.5
+ itoa-1.0.1
+ kstring-2.0.0
+ lazy_static-1.4.0
+ lazycell-1.3.0
+ libc-0.2.137
+ libloading-0.7.3
+ linux-raw-sys-0.1.4
+ lock_api-0.4.7
+ log-0.4.17
+ macaddr-1.0.1
+ mach-0.3.2
+ mach2-0.4.1
+ memchr-2.4.1
+ memoffset-0.6.5
+ miniz_oxide-0.6.2
+ mio-0.8.5
+ nix-0.19.1
+ nix-0.23.1
+ nix-0.26.1
+ normalize-line-endings-0.3.0
+ ntapi-0.3.7
+ ntapi-0.4.0
+ num-integer-0.1.44
+ num-rational-0.3.2
+ num-traits-0.2.14
+ num_cpus-1.13.1
+ num_threads-0.1.5
+ nvml-wrapper-0.8.0
+ nvml-wrapper-sys-0.6.0
+ object-0.30.2
+ once_cell-1.5.2
+ os_str_bytes-6.0.0
+ parking-2.0.0
+ parking_lot-0.12.1
+ parking_lot_core-0.9.4
+ pin-project-lite-0.2.9
+ pin-utils-0.1.0
+ polling-2.2.0
+ predicates-2.1.1
+ predicates-core-1.0.3
+ predicates-tree-1.0.5
+ proc-macro2-1.0.49
+ procfs-0.14.2
+ quote-1.0.18
+ rayon-1.5.2
+ rayon-core-1.9.2
+ redox_syscall-0.2.13
+ redox_users-0.4.3
+ regex-1.7.1
+ regex-automata-0.1.10
+ regex-syntax-0.6.28
+ roff-0.2.1
+ rustc-demangle-0.1.21
+ rustix-0.36.6
+ ryu-1.0.10
+ same-file-1.0.6
+ scopeguard-1.1.0
+ serde-1.0.152
+ serde_derive-1.0.152
+ serde_json-1.0.82
+ signal-hook-0.3.13
+ signal-hook-mio-0.2.3
+ signal-hook-registry-1.4.0
+ slab-0.4.6
+ smallvec-1.8.0
+ smol-1.2.5
+ socket2-0.4.4
+ starship-battery-0.7.9
+ static_assertions-1.1.0
+ strsim-0.9.3
+ strsim-0.10.0
+ syn-1.0.107
+ sysctl-0.5.2
+ sysinfo-0.26.7
+ termcolor-1.1.3
+ terminal_size-0.1.17
+ termtree-0.2.4
+ textwrap-0.15.0
+ thiserror-1.0.38
+ thiserror-impl-1.0.38
+ time-0.3.9
+ time-macros-0.2.4
+ toml-0.5.10
+ tui-0.19.0
+ typed-builder-0.10.0
+ typenum-1.15.0
+ unicode-ident-1.0.6
+ unicode-segmentation-1.10.0
+ unicode-width-0.1.10
+ unicode-xid-0.2.2
+ uom-0.30.0
+ wait-timeout-0.2.0
+ waker-fn-1.1.0
+ walkdir-2.3.2
+ wasi-0.10.2+wasi-snapshot-preview1
+ wasi-0.11.0+wasi-snapshot-preview1
+ wepoll-ffi-0.1.2
+ widestring-0.4.3
+ winapi-0.3.9
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-util-0.1.5
+ winapi-x86_64-pc-windows-gnu-0.4.0
+ windows-0.44.0
+ windows-sys-0.42.0
+ windows-targets-0.42.1
+ windows_aarch64_gnullvm-0.42.1
+ windows_aarch64_msvc-0.42.1
+ windows_i686_gnu-0.42.1
+ windows_i686_msvc-0.42.1
+ windows_x86_64_gnu-0.42.1
+ windows_x86_64_gnullvm-0.42.1
+ windows_x86_64_msvc-0.42.1
+ wrapcenum-derive-0.4.0
+"
+
+inherit bash-completion-r1 cargo
+
+DESCRIPTION="A graphical process/system monitor with a customizable interface"
+HOMEPAGE="https://github.com/ClementTsang/bottom"
+SRC_URI="$(cargo_crate_uris)"
+
+LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 ISC MIT Unicode-DFS-2016 Unlicense ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+IUSE="+battery +gpu +zfs"
+
+# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
+QA_FLAGS_IGNORED="usr/bin/btm"
+
+src_prepare() {
+ # Stripping symbols should be the choice of the user.
+ sed -i '/strip = "symbols"/d' Cargo.toml || die "Unable to patch out symbol stripping"
+
+ eapply_user
+}
+
+src_configure() {
+ myfeatures=(
+ $(usev battery)
+ $(usev gpu)
+ $(usev zfs)
+ )
+
+ # This will turn on generation of shell completion scripts
+ export BTM_GENERATE=true
+
+ # https://github.com/ClementTsang/bottom/blob/bacaca5548c2b23d261ef961ee6584b609529567/Cargo.toml#L63
+ # fern and log features are for debugging only, so disable default features
+ cargo_src_configure $(usev !debug --no-default-features)
+}
+
+src_install() {
+ cargo_src_install
+
+ # Find generated shell completion files. btm.bash can be present in multiple dirs if we build
+ # additional features, so grab the first match only.
+ local BUILD_DIR="$(dirname $(find target -name btm.bash -print -quit || die) || die)"
+
+ newbashcomp "${BUILD_DIR}"/btm.bash btm
+
+ insinto /usr/share/fish/vendor_completions.d
+ doins "${BUILD_DIR}"/btm.fish
+
+ insinto /usr/share/zsh/site-functions
+ doins "${BUILD_DIR}"/_btm
+
+ local DOCS=( README.md )
+ einstalldocs
+}
diff --git a/sys-process/bottom/metadata.xml b/sys-process/bottom/metadata.xml
index cc41a7f280aa..b69962904de5 100644
--- a/sys-process/bottom/metadata.xml
+++ b/sys-process/bottom/metadata.xml
@@ -17,6 +17,8 @@
<remote-id type="github">ClementTsang/bottom</remote-id>
</upstream>
<use>
- <flag name='battery'>Include support for laptop battery information.</flag>
+ <flag name='battery'>Include support for laptop battery information</flag>
+ <flag name='gpu'>Include support for GPU temperature and memory usage information</flag>
+ <flag name='zfs'>Include support for ZFS ARC memory usage information</flag>
</use>
</pkgmetadata>
next reply other threads:[~2023-04-18 13:10 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 13:10 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-04 7:54 [gentoo-commits] repo/gentoo:master commit in: sys-process/bottom/ Florian Schmaus
2024-10-04 7:54 Florian Schmaus
2024-09-11 22:13 Sam James
2024-09-09 20:44 Arthur Zamarin
2024-09-08 6:42 Sam James
2024-08-03 15:51 Michał Górny
2024-01-11 13:33 Joonas Niilola
2023-10-26 18:24 Arthur Zamarin
2023-10-18 6:29 Joonas Niilola
2023-09-11 23:54 Sam James
2023-09-11 22:59 Sam James
2023-09-11 22:59 Sam James
2023-09-11 12:24 Florian Schmaus
2023-07-13 9:17 Florian Schmaus
2023-07-13 9:17 Florian Schmaus
2023-07-13 9:17 Florian Schmaus
2023-07-13 9:17 Florian Schmaus
2023-07-02 17:31 Sam James
2023-07-02 8:33 Sam James
2023-07-02 8:04 Sam James
2023-05-27 7:49 Joonas Niilola
2023-05-16 14:02 Florian Schmaus
2023-05-16 14:02 Florian Schmaus
2023-03-31 16:37 Sam James
2023-03-31 16:23 Sam James
2023-03-31 16:22 Arthur Zamarin
2023-02-26 7:53 Joonas Niilola
2023-02-26 7:53 Joonas Niilola
2023-02-26 7:53 Joonas Niilola
2023-02-12 2:05 Sam James
2023-02-12 2:05 Sam James
2023-02-11 19:13 Sam James
2023-01-10 7:51 Florian Schmaus
2023-01-06 9:15 Florian Schmaus
2023-01-06 9:15 Florian Schmaus
2022-03-12 16:55 Arthur Zamarin
2022-03-12 13:51 Arthur Zamarin
2022-03-12 6:11 Joonas Niilola
2022-02-10 4:01 Ionen Wolkens
2022-02-02 0:10 Sam James
2022-02-02 0:10 Sam James
2022-02-01 7:30 Agostino Sarubbo
2021-12-30 8:39 Florian Schmaus
2021-12-30 8:39 Florian Schmaus
2021-10-20 0:22 Sam James
2021-10-18 23:50 Sam James
2021-10-18 23:49 Sam James
2021-09-04 21:39 Sam James
2021-09-01 7:55 Agostino Sarubbo
2021-09-01 7:53 Agostino Sarubbo
2021-07-24 5:42 Georgy Yakovlev
2021-07-24 5:42 Georgy Yakovlev
2021-07-24 5:42 Georgy Yakovlev
2021-07-24 5:42 Georgy Yakovlev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681823429.7df54ac02027d0361169551bfd26bac46e6127b6.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox