sci-libs/rocThrust: don't install tests; install cmake files in a better place

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42691
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-06-22 15:12:56 +00:00
committed by Sam James
parent c3ee5ea9cb
commit 335d7ba7bb
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
Disable installation of test files.
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -106,7 +106,6 @@ function(add_rocthrust_test TEST)
LABELS "hip"
)
endif()
- rocm_install(TARGETS ${TEST_TARGET} COMPONENT tests)
if (WIN32 AND NOT DEFINED DLLS_COPIED)
set(DLLS_COPIED "YES")
set(DLLS_COPIED ${DLLS_COPIED} PARENT_SCOPE)
@@ -266,10 +265,3 @@ if(BUILD_HIPSTDPAR_TEST)
endif()
endif()
endif()
-
-rocm_install(
- FILES "${INSTALL_TEST_FILE}"
- DESTINATION "${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME}"
- COMPONENT tests
- RENAME "CTestTestfile.cmake"
-)

View File

@@ -43,8 +43,16 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-4.0-operator_new.patch"
"${FILESDIR}/${PN}-6.4.1-fix-libcxx.patch"
"${FILESDIR}/${PN}-6.4.1-no-tests-install.patch"
)
src_prepare() {
sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR $(get_libdir)):" \
-i cmake/ROCMExportTargetsHeaderOnly.cmake || die
cmake_src_prepare
}
src_configure() {
rocm_use_hipcc