From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 16C081382C5 for ; Sat, 13 Feb 2021 11:59:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51F3BE0896; Sat, 13 Feb 2021 11:59:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 39860E0896 for ; Sat, 13 Feb 2021 11:59:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E677334101E for ; Sat, 13 Feb 2021 11:59:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B69A47 for ; Sat, 13 Feb 2021 11:59:33 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1613217340.23e9991e1bfdfe1ea2331459fdaf8f64fc253274.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/radeontop/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/radeontop/radeontop-1.3-r1.ebuild X-VCS-Directories: app-misc/radeontop/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 23e9991e1bfdfe1ea2331459fdaf8f64fc253274 X-VCS-Branch: master Date: Sat, 13 Feb 2021 11:59:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e0408af-e550-42b8-acb8-cf59fe17cbe5 X-Archives-Hash: 43665dcab95de830f77feab732940f25 commit: 23e9991e1bfdfe1ea2331459fdaf8f64fc253274 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sat Feb 13 09:06:15 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Feb 13 11:55:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e9991e app-misc/radeontop: add dependency on amd radeon gpus, fixes #768549 Closes: https://github.com/gentoo/gentoo/pull/19350 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Conrad Kostecki gentoo.org> app-misc/radeontop/radeontop-1.3-r1.ebuild | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/app-misc/radeontop/radeontop-1.3-r1.ebuild b/app-misc/radeontop/radeontop-1.3-r1.ebuild new file mode 100644 index 00000000000..c82aa5733c6 --- /dev/null +++ b/app-misc/radeontop/radeontop-1.3-r1.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=1 + export xcb=1 + # Do not add -g or -s to CFLAGS + export plain=1 +}