# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
inherit linux-mod-r1
DESCRIPTION="Few modules for ACPI debugging"
HOMEPAGE="https://github.com/Lekensteyn/acpi-stuff"
if [[ ${PV} =~ "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Lekensteyn/${PN}.git"
else
SRC_URI="https://github.com/downloads/Lekensteyn/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
DEPEND="
virtual/linux-sources
sys-kernel/linux-headers
"
src_compile() {
local modlist=(
acpi_dump_info="kernel/drivers/acpi:${S}/acpi_dump_info"
pcidev="kernel/drivers/acpi:${S}/pcidev"
)
linux-mod-r1_src_compile
}