summaryrefslogtreecommitdiff
path: root/app-misc/radeontop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-22 14:08:05 +0000
commit93a93e9a3b53c1a73142a305ea1f8136846942ee (patch)
treeb9791a06ab3284e27b568412c59316c66240c682 /app-misc/radeontop
parent2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff)
gentoo resync : 22.12.2021
Diffstat (limited to 'app-misc/radeontop')
-rw-r--r--app-misc/radeontop/Manifest2
-rw-r--r--app-misc/radeontop/radeontop-1.4.ebuild59
2 files changed, 61 insertions, 0 deletions
diff --git a/app-misc/radeontop/Manifest b/app-misc/radeontop/Manifest
index 1ebf45010387..794d9c4af9d2 100644
--- a/app-misc/radeontop/Manifest
+++ b/app-misc/radeontop/Manifest
@@ -1,4 +1,6 @@
DIST radeontop-1.3.tar.gz 38138 BLAKE2B 41bc36c571a99a136f2d1c1d5ff1a06b1e99bccb6e01f7432b9867e2700afa9d2b5cab7f743d3560b2120642c98253313e0356af977805ada173cd3c2168acbc SHA512 cc54e0726b2a934d14ad591c7a199474b49885e6122399b282e9289610d26f3c55b3d68a7d655d88a0ff8de1a0ac0994e868fa06ae1198416aaf857a099181f1
+DIST radeontop-1.4.tar.gz 44602 BLAKE2B ad8893f491442c06f91c2a7bcf9cf884f066bb4fb01be019afbaa8e604ca12355647c624efa0742b15cb99e00fddbf71fa5b75f34086139acf0779c72668b354 SHA512 078087929bdbcf9b131d78f5ab0adc3d086be168d376d9f8e27a886668764263b072e0b08cb4dde593284fcdd16faa44711125c2ea5a14aaad70c8fa0f57f2b9
EBUILD radeontop-1.3-r3.ebuild 1160 BLAKE2B ecf73b21aa0328c6de562a1396ae023addccdff599da07751801d5fad73e86feb1d812b87d6a174b12ab5e9e4e3df27a20bd73ed43c334f63b4713e801d14e7c SHA512 6714b25d073b99cfd1a46914d0e7f097142396e5f87839a46b1fe16fd3962525ba5c6855831a3795861f54bb97e73ae7e953e3e31d384dc0b8646e4a009accb5
+EBUILD radeontop-1.4.ebuild 1161 BLAKE2B 91c106aab72dec8269f5e8df5b66d914d4f18802a3b03ee9eae0c38c6ef4df0935ebfd94d2fd99dedf378a23f48e2639af8ee4adf06314cd718ef1ad7ae701c9 SHA512 7b94b4cd15c084d43455f475fe7de6a7cd9b769f614740ee660c78dece768658657b5fbb0b5eea84f8e4ba36b019944e41f49ca123bd830bc4c46331b9d83553
EBUILD radeontop-9999.ebuild 949 BLAKE2B 0e3848df70261c48edf2ef2aeba3f849f223bf5bdac504f28b7e49ebbb441d6bd6611ff8bc71384af72d9ca0351892d731eea84636fb29be39789e6cc31598b1 SHA512 2cab73ca387a147ea575228365e8c79bf62f29c893ca8e67793d9af859828dfa8a75a377f7cc7f3d2de53243fabefecf19698440b4115017bcdbd71c63f35aa7
MISC metadata.xml 482 BLAKE2B 6e20916b0a497603d7956ee38cb34288f561ff799e60b454fe3fc227fcb4845fe5ba1a6f02bed5a6afee67c53a38af80f7a23ccae51110afe99093f2774cb637 SHA512 4f5279922bc1c7416d61e79317f4d097d8b51ea706148ee5bc77693114e4833413c07777a4691e8da8ef2651c672b209aa36f65de55df17bad3623a3bc7d4be3
diff --git a/app-misc/radeontop/radeontop-1.4.ebuild b/app-misc/radeontop/radeontop-1.4.ebuild
new file mode 100644
index 000000000000..31f1c853a9f5
--- /dev/null
+++ b/app-misc/radeontop/radeontop-1.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Utility to view Radeon GPU utilization"
+HOMEPAGE="https://github.com/clbr/radeontop"
+SRC_URI="https://github.com/clbr/radeontop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls video_cards_amdgpu video_cards_radeon"
+REQUIRED_USE="
+ || ( video_cards_amdgpu video_cards_radeon )
+"
+
+RDEPEND="
+ sys-libs/ncurses:=
+ x11-libs/libdrm[video_cards_amdgpu?,video_cards_radeon?]
+ x11-libs/libpciaccess
+ x11-libs/libxcb
+ nls? (
+ sys-libs/ncurses:=[unicode(+)]
+ virtual/libintl
+ )
+"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ cat > include/version.h <<-EOF || die
+ #ifndef VER_H
+ #define VER_H
+
+ #define VERSION "${PV}"
+
+ #endif
+ EOF
+ >getver.sh || die
+ touch .git || die
+}
+
+src_configure() {
+ tc-export CC
+ export LIBDIR=$(get_libdir)
+ export nls=$(usex nls 1 0)
+ export amdgpu=$(usex video_cards_amdgpu 1 0)
+ export xcb=1
+ # Do not add -g or -s to CFLAGS
+ export plain=1
+ export PREFIX="${EPREFIX}"/usr
+}