diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-02-17 20:27:00 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-02-17 20:32:50 +0100 |
commit | d50c2b42a4b140da2c9dba85542ec5bba82b84bf (patch) | |
tree | 0b69e5b2855fb3e64fe3d28a891786c5ad8e4e5f /app-misc/radeontop | |
parent | golang-base.eclass: keep GO111MODULE in auto mode (diff) | |
download | gentoo-d50c2b42a4b140da2c9dba85542ec5bba82b84bf.tar.gz gentoo-d50c2b42a4b140da2c9dba85542ec5bba82b84bf.tar.bz2 gentoo-d50c2b42a4b140da2c9dba85542ec5bba82b84bf.zip |
app-misc/radeontop: fix build without amdgpu
Really fixes #768549.
Bug: https://bugs.gentoo.org/768549
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Jernej Jakob <jernej.jakob@gmail.com>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/radeontop')
-rw-r--r-- | app-misc/radeontop/radeontop-1.3-r2.ebuild | 57 | ||||
-rw-r--r-- | app-misc/radeontop/radeontop-9999.ebuild | 2 |
2 files changed, 58 insertions, 1 deletions
diff --git a/app-misc/radeontop/radeontop-1.3-r2.ebuild b/app-misc/radeontop/radeontop-1.3-r2.ebuild new file mode 100644 index 000000000000..504d9fd32d8c --- /dev/null +++ b/app-misc/radeontop/radeontop-1.3-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 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 video_cards_amdgpu video_cards_radeon" +REQUIRED_USE=" + || ( video_cards_amdgpu video_cards_radeon ) +" + +RDEPEND=" + sys-libs/ncurses:0= + x11-libs/libdrm[video_cards_amdgpu?,video_cards_radeon?] + 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=$(usex video_cards_amdgpu 1 0) + export xcb=1 + # Do not add -g or -s to CFLAGS + export plain=1 +} diff --git a/app-misc/radeontop/radeontop-9999.ebuild b/app-misc/radeontop/radeontop-9999.ebuild index f8399ddb7e69..8185bf5f830e 100644 --- a/app-misc/radeontop/radeontop-9999.ebuild +++ b/app-misc/radeontop/radeontop-9999.ebuild @@ -35,7 +35,7 @@ src_configure() { tc-export CC export LIBDIR=$(get_libdir) export nls=$(usex nls 1 0) - export amdgpu=1 + export amdgpu=$(usex video_cards_amdgpu 1 0) export xcb=1 # Do not add -g or -s to CFLAGS export plain=1 |