diff options
author | Sam James <sam@gentoo.org> | 2021-02-27 19:16:34 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-27 19:21:01 +0000 |
commit | c6a0b4e4e05ca7d70d3331ccdf7a083b0909ba73 (patch) | |
tree | adaf9e4c560a066d5da0dfda1c0f6797d8c65f3f /sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild | |
parent | sys-libs/glibc: Bump to 2.32 patchlevel 8 (diff) | |
download | gentoo-c6a0b4e4e05ca7d70d3331ccdf7a083b0909ba73.tar.gz gentoo-c6a0b4e4e05ca7d70d3331ccdf7a083b0909ba73.tar.bz2 gentoo-c6a0b4e4e05ca7d70d3331ccdf7a083b0909ba73.zip |
sci-libs/hipSPARSE: fix RDPEND typo
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild')
-rw-r--r-- | sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild b/sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild new file mode 100644 index 000000000000..83afe36617b3 --- /dev/null +++ b/sci-libs/hipSPARSE/hipSPARSE-4.0.0-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="ROCm SPARSE marshalling library" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/hipSPARSE" +SRC_URI="https://github.com/ROCmSoftwarePlatform/hipSPARSE/archive/rocm-${PV}.tar.gz -> hipSPARSE-$(ver_cut 1-2).tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0" + +RDEPEND=">=dev-util/rocminfo-$(ver_cut 1-2) + =dev-util/hip-$(ver_cut 1-2)* + =sci-libs/rocSPARSE-${PV}*" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/hipSPARSE-rocm-${PV}" + +src_prepare() { + sed -e "s/PREFIX hipsparse//" \ + -e "/<INSTALL_INTERFACE/s,include,include/hipsparse," \ + -e "s:rocm_install_symlink_subdir(hipsparse):#rocm_install_symlink_subdir(hipsparse):" \ + -i library/CMakeLists.txt || die + + eapply_user + cmake_src_prepare +} + +src_configure() { + # Grant access to the device + addwrite /dev/kfd + addpredict /dev/dri/ + + # Compiler to use + export CXX=hipcc + + local mycmakeargs=( + -DHIP_RUNTIME="ROCclr" + -DBUILD_CLIENTS_TESTS=OFF + -DBUILD_CLIENTS_SAMPLES=OFF + -DCMAKE_INSTALL_INCLUDEDIR=include/hipsparse + ) + + cmake_src_configure +} |