mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user