mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user