diff options
Diffstat (limited to 'sys-process/bottom')
-rw-r--r-- | sys-process/bottom/Manifest | 3 | ||||
-rw-r--r-- | sys-process/bottom/bottom-0.8.0-r1.ebuild | 270 | ||||
-rw-r--r-- | sys-process/bottom/metadata.xml | 4 |
3 files changed, 275 insertions, 2 deletions
diff --git a/sys-process/bottom/Manifest b/sys-process/bottom/Manifest index 1d9af7733ebe..bb2a2a3308d9 100644 --- a/sys-process/bottom/Manifest +++ b/sys-process/bottom/Manifest @@ -250,5 +250,6 @@ DIST windows_x86_64_msvc-0.42.0.crate 659377 BLAKE2B f01dbfcb86dcb7301790a1a7046 DIST windows_x86_64_msvc-0.42.1.crate 664606 BLAKE2B 6c460cfa392aad0d11add200d652a42ee1a60052570527c4e85405f765255375729d4e26287f5246dcad65fa89ccadea23c5135171b311e6da5027e33149c547 SHA512 a651b1a34f101125f929c1d1f5e933691c7a5c19d0bb0c501fb6812236d2771805428e3bd5e05be7d72715595f5fc9e7978dd7934e5d92e9b78a41c2ece695b2 DIST wrapcenum-derive-0.4.0.crate 7281 BLAKE2B fd5c935f64c6bb7d1e7e4fbe38b6550ac1cbea7d0817204e5c0d73c6711028e472f323563ff52e329f9cbadf5d45d547e3468a8b97f3d5577514cdc705714edd SHA512 85b8a9ec70ef30c2de04ad766694a5b29ea97d0cefab0708421976f1b5168761f8af652851155e06b5eb39fce32e3c9ceb4ff440f8ef687aa2b03c7017f1de0d EBUILD bottom-0.7.1.ebuild 5316 BLAKE2B 485e919b579d613fdd14dd290aa64d71e5c2e630246168e220d7a8067c733d7c60c27d080ffe88c2325ad42db85389ddd431fc9af48614033b72e973f46a58a3 SHA512 885c7192fc27b8ea5fc51410e6613999730a2a037226a179bc6523d6355e608604051535b389917af6b6ba094326b8904358f8f0fbfafcc9b72d9823452db6fb +EBUILD bottom-0.8.0-r1.ebuild 5627 BLAKE2B 201ccd78b5f5621e53643c23f5bd8d950e8961e04aa5caff0734b12a362a0d0fce3b24fd9e18e7c4f5e7fc35b2412df868bf0b28ce9521a980b9c0121946b626 SHA512 421461362b31b42c945e1c8f1cf0ecc82593b627be32c710a79c2bff26554f71fcf98e50f7b221b668703e2576ac9d61cdb58215396e78ef549e2594205fac6c EBUILD bottom-0.8.0.ebuild 5586 BLAKE2B 3a0f9dad111004156d90f3a929819e84759f7a89de3dfba396b42c012417acd003af3d6b52cc6e84c29f4d58c7af059faba0b879960552fe4fd2da19fd939ccb SHA512 cf8d5188f0d6dd49d1a1836c68b111c4252ac5909bd0f0ca97e32bf661c503a1166f0f6fee59b7280ea1354eb15add86347a93274e4b97994c881cbce93a6b71 -MISC metadata.xml 797 BLAKE2B 444693b0becb99edaa93f5623dfa48058648852e0d328802001df5de7661ca8a5f07e920f75aaa06ad7287cbbb46e47f24e5f9897d626574ade3d6270f8eea6f SHA512 e209429c2824e3248c7c2e89b121c6665f80d3a410038709c19fbc9a30b118edd317b8f0b1dab8059aa8c74a3b72d8086f35cd19f7c722d106e0aba5c2586c3d +MISC metadata.xml 966 BLAKE2B 1b23ea1d8fb31ff8b6d039c408f738d5f2858b17e6ec685265fc19828e3e05a8f10718084a2a72d6d38bf278d6bbd0089777cf99e7366ca11670ab7ce3be4a69 SHA512 3fe83314b77e63a2261bc3c2967f5fc53e590e8f4461609be181504ebd8c690cea119c8dd7b6dec692691e7f33d363f13858b525d09929e2672aadc448443071 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> |