1 |
commit: 7e44924e497c51d7309c797f3379aa421099723a |
2 |
Author: mercuriete <mercuriete <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jan 18 19:36:49 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 3 10:33:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e44924e |
7 |
|
8 |
app-misc/radeontop: bump to 1.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/765529 |
11 |
Signed-off-by: Abel Garcia Dorta <mercuriete <AT> yahoo.es> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/19108 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-misc/radeontop/Manifest | 1 + |
16 |
app-misc/radeontop/radeontop-1.3.ebuild | 54 +++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 55 insertions(+) |
18 |
|
19 |
diff --git a/app-misc/radeontop/Manifest b/app-misc/radeontop/Manifest |
20 |
index 151d26a0f7d..f2c3f518943 100644 |
21 |
--- a/app-misc/radeontop/Manifest |
22 |
+++ b/app-misc/radeontop/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST radeontop-1.2.tar.gz 35319 BLAKE2B 52a92b86379c9340b8f59b3039a4ad725827e1b3ee2bb7d2f544d6ec8730e03ab1baab266edbc263195e68ca56a4e7b3f251337401775fff588fbfb8bae0751d SHA512 f36c2e418fe8add77080642e575b99c092afeda24811f33ee161a8c9341decb611f631e5511a5255089d63e172eda6836295e5795c3ebd3f5cad172f7599d862 |
25 |
+DIST radeontop-1.3.tar.gz 38138 BLAKE2B 41bc36c571a99a136f2d1c1d5ff1a06b1e99bccb6e01f7432b9867e2700afa9d2b5cab7f743d3560b2120642c98253313e0356af977805ada173cd3c2168acbc SHA512 cc54e0726b2a934d14ad591c7a199474b49885e6122399b282e9289610d26f3c55b3d68a7d655d88a0ff8de1a0ac0994e868fa06ae1198416aaf857a099181f1 |
26 |
|
27 |
diff --git a/app-misc/radeontop/radeontop-1.3.ebuild b/app-misc/radeontop/radeontop-1.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..78d907d4151 |
30 |
--- /dev/null |
31 |
+++ b/app-misc/radeontop/radeontop-1.3.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Utility to view Radeon GPU utilization" |
40 |
+HOMEPAGE="https://github.com/clbr/radeontop" |
41 |
+SRC_URI="https://github.com/clbr/radeontop/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="nls" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ sys-libs/ncurses:0= |
50 |
+ x11-libs/libdrm |
51 |
+ x11-libs/libpciaccess |
52 |
+ x11-libs/libxcb |
53 |
+ nls? ( |
54 |
+ sys-libs/ncurses:0=[unicode] |
55 |
+ virtual/libintl |
56 |
+ ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ nls? ( sys-devel/gettext ) |
60 |
+" |
61 |
+BDEPEND="virtual/pkgconfig" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ cat > include/version.h <<-EOF || die |
67 |
+ #ifndef VER_H |
68 |
+ #define VER_H |
69 |
+ |
70 |
+ #define VERSION "${PV}" |
71 |
+ |
72 |
+ #endif |
73 |
+ EOF |
74 |
+ >getver.sh || die |
75 |
+ touch .git || die |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ tc-export CC |
80 |
+ export LIBDIR=$(get_libdir) |
81 |
+ export nls=$(usex nls 1 0) |
82 |
+ export amdgpu=1 |
83 |
+ export xcb=1 |
84 |
+ # Do not add -g or -s to CFLAGS |
85 |
+ export plain=1 |
86 |
+} |