2014-11-14 10:42:58 +03:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2013-12-20 12:29:23 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2013-12-20 12:29:23 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils toolchain-funcs git-r3
|
|
|
|
|
|
|
|
DESCRIPTION="Utility to view Radeon GPU utilization"
|
|
|
|
HOMEPAGE="https://github.com/clbr/radeontop"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
EGIT_REPO_URI="https://github.com/clbr/radeontop.git"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
IUSE="nls"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
sys-libs/ncurses
|
|
|
|
x11-libs/libpciaccess
|
2014-11-14 10:42:58 +03:00
|
|
|
x11-libs/libdrm
|
2013-12-20 12:29:23 +04:00
|
|
|
nls? ( sys-libs/ncurses[unicode] virtual/libintl )
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
nls? ( sys-devel/gettext )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch_user
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
tc-export CC
|
|
|
|
export nls=$(usex nls 1 0)
|
|
|
|
# Do not add -g or -s to CFLAGS
|
|
|
|
export plain=1
|
|
|
|
}
|