summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarri Nieminen <moikkis@gmail.com>2017-03-17 10:13:43 +0200
committerDavid Seifert <soap@gentoo.org>2017-03-23 21:50:22 +0100
commitfd2a78c641a083e1db50a578aa5841b03a9f7452 (patch)
tree4f7baf18d3aa442861eda0d11a24d64628e2c8e9 /x11-apps
parentx11-misc/trayer: Remove old (diff)
downloadgentoo-fd2a78c641a083e1db50a578aa5841b03a9f7452.tar.gz
gentoo-fd2a78c641a083e1db50a578aa5841b03a9f7452.tar.bz2
gentoo-fd2a78c641a083e1db50a578aa5841b03a9f7452.zip
x11-apps/radeontop: Add amdgpu useflag
Gentoo-Bug: https://bugs.gentoo.org/612858 Package-Manager: Portage-2.3.5, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4225
Diffstat (limited to 'x11-apps')
-rw-r--r--x11-apps/radeontop/radeontop-1.0.ebuild3
-rw-r--r--x11-apps/radeontop/radeontop-9999.ebuild3
2 files changed, 4 insertions, 2 deletions
diff --git a/x11-apps/radeontop/radeontop-1.0.ebuild b/x11-apps/radeontop/radeontop-1.0.ebuild
index 7b81237a64ba..44dc27fcece4 100644
--- a/x11-apps/radeontop/radeontop-1.0.ebuild
+++ b/x11-apps/radeontop/radeontop-1.0.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://github.com/clbr/radeontop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="nls"
+IUSE="nls video_cards_amdgpu"
RDEPEND="
sys-libs/ncurses:0=
@@ -46,6 +46,7 @@ src_prepare() {
src_configure() {
tc-export CC
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
diff --git a/x11-apps/radeontop/radeontop-9999.ebuild b/x11-apps/radeontop/radeontop-9999.ebuild
index e3919c9db7f2..5d334bccb1a3 100644
--- a/x11-apps/radeontop/radeontop-9999.ebuild
+++ b/x11-apps/radeontop/radeontop-9999.ebuild
@@ -11,7 +11,7 @@ EGIT_REPO_URI="https://github.com/clbr/radeontop.git"
SLOT="0"
KEYWORDS=""
-IUSE="nls"
+IUSE="nls video_cards_amdgpu"
RDEPEND="
sys-libs/ncurses:0=
@@ -31,6 +31,7 @@ DEPEND="${RDEPEND}
src_configure() {
tc-export CC
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