summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2021-12-12 13:50:11 +0100
committerConrad Kostecki <conikost@gentoo.org>2021-12-12 20:37:07 +0100
commit389299b4ed19f924bb8caf11177a45c4c663648e (patch)
tree3c95de93a6a8e5c496c81931dc573d5a6723dc49
parentsci-libs/lapack: remove unused patch (diff)
downloadgentoo-389299b4ed19f924bb8caf11177a45c4c663648e.tar.gz
gentoo-389299b4ed19f924bb8caf11177a45c4c663648e.tar.bz2
gentoo-389299b4ed19f924bb8caf11177a45c4c663648e.zip
app-misc/radeontop: version bummp (1.4)
Closes: https://github.com/gentoo/gentoo/pull/23264 Package-Manager: Portage-3.0.29, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--app-misc/radeontop/Manifest1
-rw-r--r--app-misc/radeontop/radeontop-1.4.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/radeontop/Manifest b/app-misc/radeontop/Manifest
index f188178c6e36..f686bbaa1eba 100644
--- a/app-misc/radeontop/Manifest
+++ b/app-misc/radeontop/Manifest
@@ -1 +1,2 @@
DIST radeontop-1.3.tar.gz 38138 BLAKE2B 41bc36c571a99a136f2d1c1d5ff1a06b1e99bccb6e01f7432b9867e2700afa9d2b5cab7f743d3560b2120642c98253313e0356af977805ada173cd3c2168acbc SHA512 cc54e0726b2a934d14ad591c7a199474b49885e6122399b282e9289610d26f3c55b3d68a7d655d88a0ff8de1a0ac0994e868fa06ae1198416aaf857a099181f1
+DIST radeontop-1.4.tar.gz 44602 BLAKE2B ad8893f491442c06f91c2a7bcf9cf884f066bb4fb01be019afbaa8e604ca12355647c624efa0742b15cb99e00fddbf71fa5b75f34086139acf0779c72668b354 SHA512 078087929bdbcf9b131d78f5ab0adc3d086be168d376d9f8e27a886668764263b072e0b08cb4dde593284fcdd16faa44711125c2ea5a14aaad70c8fa0f57f2b9
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
+}