diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2022-06-11 16:16:08 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2022-06-11 21:54:07 +0800 |
commit | f9870b064f3eb1119e4d7ffaa3d05cd692002a3f (patch) | |
tree | d89d2384b541ca6ca800198e34dc7f36ba222045 /dev-util/rocm-clang-ocl | |
parent | www-client/qutebrowser: disable py3.11 (diff) | |
download | gentoo-f9870b064f3eb1119e4d7ffaa3d05cd692002a3f.tar.gz gentoo-f9870b064f3eb1119e4d7ffaa3d05cd692002a3f.tar.bz2 gentoo-f9870b064f3eb1119e4d7ffaa3d05cd692002a3f.zip |
dev-util/rocm-clang-ocl: add 5.0.2
Bug: https://github.com/gentoo/gentoo/pull/25851
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/rocm-clang-ocl')
-rw-r--r-- | dev-util/rocm-clang-ocl/Manifest | 1 | ||||
-rw-r--r-- | dev-util/rocm-clang-ocl/rocm-clang-ocl-5.0.2.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-util/rocm-clang-ocl/Manifest b/dev-util/rocm-clang-ocl/Manifest index 6241ed5c05ca..397d1ebb486c 100644 --- a/dev-util/rocm-clang-ocl/Manifest +++ b/dev-util/rocm-clang-ocl/Manifest @@ -1 +1,2 @@ DIST rocm-clang-ocl-4.3.0.tar.gz 3241 BLAKE2B 1a646d64e42a8884a7714b4ca25d888aa1e84d68be3f6ceacefcf7836340133740c8df85f152fadb40d463af76eb659f0fd11ebd2b0a6a3c0da3b7ac64bf541c SHA512 059d0d118205d6f4c2a61222fc74709a86bbe71687615debcc1698f73c28a769379b909cd18742b4d3340ba30a65b02da9224fbe5fe0e2fb005d9a45f22dfe9c +DIST rocm-clang-ocl-5.0.2.tar.gz 3908 BLAKE2B b348c047d2dcea9524847cbb44d37e56c16fa05d5ab7f1b798e22c1f3d61b38aa725436f3ef44491898f4afd675716036efaf3959cac310b2905a2d16fc6e911 SHA512 582b9ff425c1f9ff4fb32cf7b64c8357f8f585ab75b31b63cfa8705725f823cd0cc60f0d0a641f66c6760d8a5378444f29f3f57b8989d36f4fd32bb7b397d167 diff --git a/dev-util/rocm-clang-ocl/rocm-clang-ocl-5.0.2.ebuild b/dev-util/rocm-clang-ocl/rocm-clang-ocl-5.0.2.ebuild new file mode 100644 index 000000000000..202836d1adbe --- /dev/null +++ b/dev-util/rocm-clang-ocl/rocm-clang-ocl-5.0.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="OpenCL compilation with clang compiler" +HOMEPAGE="https://github.com/RadeonOpenCompute/clang-ocl.git" +SRC_URI="https://github.com/RadeonOpenCompute/clang-ocl/archive/rocm-${PV}.tar.gz -> rocm-clang-ocl-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/rocm-opencl-runtime:${SLOT}" +DEPEND=" + dev-util/rocm-cmake:${SLOT} + ${RDEPEND}" + +S="${WORKDIR}/clang-ocl-rocm-${PV}" + +src_prepare() { + sed -e "s:HINTS \${CXX_COMPILER_PATH}/bin:NO_DEFAULT_PATH:" \ + -e "s:/opt/rocm/llvm/bin:${EPREFIX}/usr/lib/llvm/roc/bin:" \ + -e "/AMDDeviceLibs PATHS/s:/opt/rocm:${EPREFIX}/usr/lib/cmake/AMDDeviceLibs:" \ + -e "s:\${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode:${EPREFIX}/usr/lib/amdgcn/bitcode:" \ + -i CMakeLists.txt || die + + cmake_src_prepare +} |