Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/radeontop/
Date: Thu, 23 Aug 2018 19:57:21
Message-Id: 1535053999.2ce36631bdbf8daa1c6d74559d534aa9d33aa615.mgorny@gentoo
1 commit: 2ce36631bdbf8daa1c6d74559d534aa9d33aa615
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Thu Aug 23 09:16:59 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 23 19:53:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ce36631
7
8 app-misc/radeontop: version and EAPI bump
9
10 app-misc/radeontop/Manifest | 1 +
11 app-misc/radeontop/radeontop-1.1.ebuild | 54 +++++++++++++++++++++++++++++++++
12 2 files changed, 55 insertions(+)
13
14 diff --git a/app-misc/radeontop/Manifest b/app-misc/radeontop/Manifest
15 index dbbad14e4ea..4b0f2900728 100644
16 --- a/app-misc/radeontop/Manifest
17 +++ b/app-misc/radeontop/Manifest
18 @@ -1 +1,2 @@
19 DIST radeontop-1.0.tar.gz 32677 BLAKE2B e3445c400dff0f8afaa743d349477b67ccc4da187cbf979fe42c63b9e60f246f54e5fa2076ef6af789fea093c175d0ec66fa9f0f30bfb926a28f1aa12f2b10cf SHA512 bd7e8ecff962d8ac3072f3f1fa7a5d9981e2da28b38a1f234f6fe550511c3fbda2c1c6e9a6d1120bf99ef3ae621a91ff67c451eaf98dfa1264e9e6a59ae55e08
20 +DIST radeontop-1.1.tar.gz 33527 BLAKE2B 920376e5fb8acffb181b7a9e1362f46bad2de66fcf3665dc212f931d9b6fb9bf3f6765e2f8de78f8b2ba7d13cc5baae3e4d3b0612a1097f917420a43b3215f8d SHA512 abf4e51582cc668e1abbcd87bfa6ec5f16a301c3327a276a6f27fe928f780acf1442a696bb00bdbd3e8cad21a1416ffcf500a865dd4bac9517fac1a43d851c5a
21
22 diff --git a/app-misc/radeontop/radeontop-1.1.ebuild b/app-misc/radeontop/radeontop-1.1.ebuild
23 new file mode 100644
24 index 00000000000..aea4af8f943
25 --- /dev/null
26 +++ b/app-misc/radeontop/radeontop-1.1.ebuild
27 @@ -0,0 +1,54 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +inherit toolchain-funcs
33 +
34 +DESCRIPTION="Utility to view Radeon GPU utilization"
35 +HOMEPAGE="https://github.com/clbr/radeontop"
36 +SRC_URI="https://github.com/clbr/radeontop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="GPL-3"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="nls"
42 +
43 +RDEPEND="
44 + sys-libs/ncurses:0=
45 + x11-libs/libdrm
46 + x11-libs/libpciaccess
47 + x11-libs/libxcb
48 + nls? (
49 + sys-libs/ncurses:0=[unicode]
50 + virtual/libintl
51 + )
52 +"
53 +DEPEND="${RDEPEND}
54 + nls? ( sys-devel/gettext )
55 +"
56 +BDEPEND="virtual/pkgconfig"
57 +
58 +src_prepare() {
59 + default
60 +
61 + cat > include/version.h <<-EOF || die
62 + #ifndef VER_H
63 + #define VER_H
64 +
65 + #define VERSION "${PV}"
66 +
67 + #endif
68 + EOF
69 + >getver.sh || die
70 + touch .git || die
71 +}
72 +
73 +src_configure() {
74 + tc-export CC
75 + export LIBDIR=$(get_libdir)
76 + export nls=$(usex nls 1 0)
77 + export amdgpu=1
78 + export xcb=1
79 + # Do not add -g or -s to CFLAGS
80 + export plain=1
81 +}