mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
* update ebuild to use zenstats (mantain fork of zenpower3) * update Makefile patch to work with clang Closes: https://bugs.gentoo.org/947057 Closes: https://bugs.gentoo.org/947153 Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
46 lines
931 B
Bash
46 lines
931 B
Bash
# Copyright 2020-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit linux-mod-r1
|
|
_PN="zenstats"
|
|
_P="${_PN}-${PV}"
|
|
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
|
|
HOMEPAGE="
|
|
https://github.com/Sid127/zenstats
|
|
https://github.com/ocerman/zenpower
|
|
"
|
|
|
|
if [[ ${PV} == "9999" ]]; then
|
|
inherit git-r3
|
|
# Mantain fork of zenpower3
|
|
EGIT_REPO_URI="https://github.com/Sid127/zenstats"
|
|
else
|
|
SRC_URI="https://github.com/Sid127/zenstats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${_P}"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
|
|
CONFIG_CHECK="HWMON PCI AMD_NB"
|
|
|
|
PATCHES="${FILESDIR}/${PN}-use-symlink-to-detect-kernel-version.patch"
|
|
|
|
src_compile() {
|
|
MODULES_MAKEARGS+=(
|
|
TARGET="${KV_FULL}"
|
|
)
|
|
local modlist=(
|
|
${_PN}=kernel/drivers/hwmon:::all
|
|
)
|
|
linux-mod-r1_src_compile
|
|
}
|
|
|
|
src_install() {
|
|
linux-mod-r1_src_install
|
|
dodoc README.md
|
|
}
|