guru/sys-kernel/zenpower3/zenpower3-0.2.0-r2.ebuild
Gonçalo Negrier Duarte f4a2efe6ce
sys-kernel/zenpower3: change fork to koweda one
* decide to use this fork since it fix some issues with the unmainted
  original package

* decided to drop Sid127 package since it change the name of
  module/sensor to zenstats breaking compatiblity with software
  that uses zenpower. Also I don't have way to check if the zen4/5
  support work since I only have zen3 hardware.

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
2025-03-23 01:13:53 +00:00

43 lines
841 B
Bash

# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
_PN=zenpower
inherit linux-mod-r1
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
HOMEPAGE="
https://github.com/koweda/zenpower3
https://github.com/ocerman/zenpower
"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
# Mantain fork of zenpower3
EGIT_REPO_URI="https://github.com/koweda/zenpower3"
else
SRC_URI="https://github.com/koweda/zenpower3/archive/v0.2.0.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
CONFIG_CHECK="HWMON PCI AMD_NB"
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
}