sci-libs/hipCUB: fix benchmark build dependencies

Closes: https://bugs.gentoo.org/984533
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/46924
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Sv. Lockal
2026-10-21 09:24:43 +02:00
committed by Alfredo Tupone
parent 0bc1bcd745
commit dfe522b005
@@ -29,7 +29,10 @@ REQUIRED_USE="
RESTRICT="!test? ( test )"
RDEPEND="
benchmark? ( dev-util/hip:${SLOT} )
benchmark? (
dev-util/amdsmi:${SLOT}
dev-util/hip:${SLOT}
)
"
DEPEND="
${RDEPEND}
@@ -44,9 +47,11 @@ PATCHES=(
)
src_prepare() {
# primbench comes from its own tarball
# primbench comes from its own tarball; git only provides a branch name and
# commit hash for benchmark results
if use benchmark; then
sed -e "s:\.\./\.\./\.\./shared/primbench:${WORKDIR}/primbench:" \
-e "/find_package(Git REQUIRED)/d" \
-i benchmark/CMakeLists.txt || die
fi