commit:     aa83aff75192ac299ec82ae77b98a939460389c0
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 20 08:09:09 2022 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Dec 20 09:25:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa83aff7

dev-libs/rocm-device-libs: add 5.3.3

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-libs/rocm-device-libs/Manifest                 |  1 +
 .../rocm-device-libs/rocm-device-libs-5.3.3.ebuild | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-libs/rocm-device-libs/Manifest 
b/dev-libs/rocm-device-libs/Manifest
index beca0a347022..aba9c8d78700 100644
--- a/dev-libs/rocm-device-libs/Manifest
+++ b/dev-libs/rocm-device-libs/Manifest
@@ -1,2 +1,3 @@
 DIST rocm-device-libs-5.0.2.tar.gz 242099 BLAKE2B 
3fc2afc3a837557da04bcd5673656c08d0b5ebf48fd6568a4b1687d157dc4b08e3b5cd219a7bf3c2ed82ca1391477c32c42b4e594d07ad47ef429061be351af9
 SHA512 
1c37401641080e511f325cddb62490c8827d1bcef7f2198449246afbd391162ed3294c24b0529e1b3669129e29544989e2cf12d46c90fea8d880c52cfdca5a72
 DIST rocm-device-libs-5.1.3.tar.gz 242862 BLAKE2B 
68d66de897f461e9f876de5fe2214803d4c00665651dea6af0952f0ce579c6704a5ec41b08971fa613ade309a0a85cb611b56b592dc2a25e247183e634ea3378
 SHA512 
cc3dfb8d4b4841ba777355c537175259d0019159ff462358320674b85082cccd99f6462f60fee66228ddfb88fade043445c1bac62504aa1462ba61b7e2751de7
+DIST rocm-device-libs-5.3.3.tar.gz 245690 BLAKE2B 
475c0d818b8b0f090a8daeca2910cd4002e4cdf505d020327f46eb5f864a26937a6a3dfe4ff7b188ebda0f936b1c396f2163bb27b9e2a62c5976e60fa60856ac
 SHA512 
8f6f2fc1534e348e02ba30a25cfc6017f8eab768968b5d0344a5ea7d65c4f0a874072f9e53919c74545814330602ef7c190753c7ff019137230e02f58a5d3a5d

diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild 
b/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild
new file mode 100644
index 000000000000..771081d38665
--- /dev/null
+++ b/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake llvm
+
+LLVM_MAX_SLOT=15
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/";
+       inherit git-r3
+       S="${WORKDIR}/${P}/src"
+else
+       
SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz
 -> ${P}.tar.gz"
+       S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}"
+       KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Radeon Open Compute Device Libraries"
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs";
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-devel/clang:${LLVM_MAX_SLOT}"
+DEPEND="${RDEPEND}"
+
+CMAKE_BUILD_TYPE=Release
+
+PATCHES=( "${FILESDIR}/${PN}-5.1.3-test-bitcode-dir.patch"
+       "${FILESDIR}/${PN}-5.1.3-llvm-link.patch" )
+
+src_prepare() {
+       sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" 
|| die
+       sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i 
"${S}/cmake/Packages.cmake" || die
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
+       )
+       cmake_src_configure
+}

Reply via email to