diff options
author | Chris Xiong <chirs241097@gmail.com> | 2023-04-12 18:36:18 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2023-04-12 18:36:18 -0400 |
commit | b67f08e91eec6402a5017bdc28a837e1acb2320d (patch) | |
tree | 0a9190369197ec048173236273544f67dd9c07e9 /sys-process | |
parent | b786e13f0e119f7a00ba79230c97617b754634ea (diff) | |
download | ppo-b67f08e91eec6402a5017bdc28a837e1acb2320d.tar.xz |
nvtop
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/nvtop/Manifest | 2 | ||||
-rw-r--r-- | sys-process/nvtop/nvtop-3.0.1.ebuild | 47 |
2 files changed, 49 insertions, 0 deletions
diff --git a/sys-process/nvtop/Manifest b/sys-process/nvtop/Manifest new file mode 100644 index 0000000..ba0f054 --- /dev/null +++ b/sys-process/nvtop/Manifest @@ -0,0 +1,2 @@ +DIST nvtop-3.0.1.tar.gz 234246 BLAKE2B bc93ee28e81490a43fabfcbad441bf76b49890699afcabf19146aba9b87734cd6d0ff292f05ec05aab4642b0828fc1fe6de2dd2c2ecb82f21eb2920a53a86895 SHA512 2d4584c004776ac72e08ab6ffa7ade66e498a170a71310c4ef36fe6d648ab2a19dcabf4292187d7b260783b4f4b1318a35c628fa860fa57ffd47a7d998566e12 +EBUILD nvtop-3.0.1.ebuild 1056 BLAKE2B c66a76a2aca8b8fce289c79394a44c47e73d22a90748fe56e94d3582eeceaef15b28f7d6325981841ed0c1ba54b536baa91b31055507b425d56201d352e784e8 SHA512 98e3884474a93a4644d5b103f6e90e469438da0e451586ae1a9f49bbe5fdbd33e7bc7cfbb25e947c72b135de0ca6a8585c1131cd25068a6ac73fd16b0b29b44b diff --git a/sys-process/nvtop/nvtop-3.0.1.ebuild b/sys-process/nvtop/nvtop-3.0.1.ebuild new file mode 100644 index 0000000..5c2c509 --- /dev/null +++ b/sys-process/nvtop/nvtop-3.0.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="NVIDIA GPUs htop like monitoring tool" +HOMEPAGE="https://github.com/Syllo/nvtop" + +if [[ "${PV}" == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/Syllo/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/Syllo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="unicode video_cards_intel video_cards_amdgpu video_cards_nvidia" + +RDEPEND=" + video_cards_intel? ( virtual/udev ) + video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu] ) + video_cards_nvidia? ( x11-drivers/nvidia-drivers ) + sys-libs/ncurses:0= +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" + -DCURSES_NEED_WIDE=$(usex unicode) + -DINTEL_SUPPORT=$(usex video_cards_intel) + -DNVIDIA_SUPPORT=$(usex video_cards_nvidia) + -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu) + ) + + cmake_src_configure +}
\ No newline at end of file |