summaryrefslogtreecommitdiff
path: root/app-admin/ryzen_monitor/ryzen_monitor-1.0.4.ebuild
blob: 9ac20aa452729262e3443ffe9ccbca0c50875603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

SRC_URI="https://github.com/hattedsquirrel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"

DESCRIPTION="Monitor power information of Ryzen processors via the PM table of the SMU "
HOMEPAGE="https://github.com/hattedsquirrel/ryzen_monitor"

SLOT="0"
LICENSE="AGPL-3"
IUSE=""

DEPEND=""
RDEPEND="app-admin/ryzen_smu"

PATCHES=(
	"${FILESDIR}"/CFLAGS_override_fix.patch
)

src_compile() {
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}

src_install() {
	dobin src/ryzen_monitor
}