mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
zenpower3: add 0.2.0-r1 9999, drop 0.2.0
* 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>
This commit is contained in:
45
sys-kernel/zenpower3/zenpower3-9999.ebuild
Normal file
45
sys-kernel/zenpower3/zenpower3-9999.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user