app-misc/radeontop: bump to 1.2
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Thu, 1 Aug 2019 17:06:58 +0000 (19:06 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Fri, 2 Aug 2019 19:03:35 +0000 (22:03 +0300)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12595
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
app-misc/radeontop/Manifest
app-misc/radeontop/radeontop-1.2.ebuild [new file with mode: 0644]

index 4b0f2900728606af11c2122a9ac172e0867f6039..e11d5e3b37bd3442ba0609792802c60423e3864b 100644 (file)
@@ -1,2 +1,3 @@
 DIST radeontop-1.0.tar.gz 32677 BLAKE2B e3445c400dff0f8afaa743d349477b67ccc4da187cbf979fe42c63b9e60f246f54e5fa2076ef6af789fea093c175d0ec66fa9f0f30bfb926a28f1aa12f2b10cf SHA512 bd7e8ecff962d8ac3072f3f1fa7a5d9981e2da28b38a1f234f6fe550511c3fbda2c1c6e9a6d1120bf99ef3ae621a91ff67c451eaf98dfa1264e9e6a59ae55e08
 DIST radeontop-1.1.tar.gz 33527 BLAKE2B 920376e5fb8acffb181b7a9e1362f46bad2de66fcf3665dc212f931d9b6fb9bf3f6765e2f8de78f8b2ba7d13cc5baae3e4d3b0612a1097f917420a43b3215f8d SHA512 abf4e51582cc668e1abbcd87bfa6ec5f16a301c3327a276a6f27fe928f780acf1442a696bb00bdbd3e8cad21a1416ffcf500a865dd4bac9517fac1a43d851c5a
+DIST radeontop-1.2.tar.gz 35319 BLAKE2B 52a92b86379c9340b8f59b3039a4ad725827e1b3ee2bb7d2f544d6ec8730e03ab1baab266edbc263195e68ca56a4e7b3f251337401775fff588fbfb8bae0751d SHA512 f36c2e418fe8add77080642e575b99c092afeda24811f33ee161a8c9341decb611f631e5511a5255089d63e172eda6836295e5795c3ebd3f5cad172f7599d862
diff --git a/app-misc/radeontop/radeontop-1.2.ebuild b/app-misc/radeontop/radeontop-1.2.ebuild
new file mode 100644 (file)
index 0000000..0a38726
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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"
+
+RDEPEND="
+       sys-libs/ncurses:0=
+       x11-libs/libdrm
+       x11-libs/libpciaccess
+       x11-libs/libxcb
+       nls? (
+               sys-libs/ncurses:0=[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=1
+       export xcb=1
+       # Do not add -g or -s to CFLAGS
+       export plain=1
+}