dev-util/rocm-smi: use optfeature instead of elog

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42610
Closes: https://github.com/gentoo/gentoo/pull/42610
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-06-15 18:04:11 +00:00
committed by Sam James
parent 6a7723e704
commit 54180b5c38
2 changed files with 4 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..13} python3_13t )
inherit cmake linux-info python-r1
inherit cmake linux-info optfeature python-r1
DESCRIPTION="ROCm System Management Interface Library"
HOMEPAGE="https://github.com/ROCm/rocm_smi_lib"
@@ -63,8 +63,5 @@ src_install() {
}
pkg_postinst() {
if ! has_version sys-apps/hwdata; then
elog "Install sys-apps/hwdata to see vendor and device names"
elog "instead of hex device IDs in rocm-smi output"
fi
optfeature "vendor and device names instead of hex device IDs" sys-apps/hwdata
}

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..14} python3_13t )
inherit cmake linux-info python-r1
inherit cmake linux-info optfeature python-r1
DESCRIPTION="ROCm System Management Interface Library"
HOMEPAGE="https://github.com/ROCm/rocm_smi_lib"
@@ -63,8 +63,5 @@ src_install() {
}
pkg_postinst() {
if ! has_version sys-apps/hwdata; then
elog "Install sys-apps/hwdata to see vendor and device names"
elog "instead of hex device IDs in rocm-smi output"
fi
optfeature "vendor and device names instead of hex device IDs" sys-apps/hwdata
}