summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfried Holzke <gentoo@holzke.net>2020-11-14 21:55:43 +0100
committerCraig Andrews <candrews@gentoo.org>2020-11-14 16:02:38 -0500
commit6ef967f94febd929afb75ad2916baff3ca190c05 (patch)
treebff66c3c8964b57753748d17fc355230d88d7ac5 /dev-libs/rocclr
parentdev-libs/rocm-opencl-runtime: Version bump to 3.9.0 (diff)
downloadgentoo-6ef967f94febd929afb75ad2916baff3ca190c05.tar.gz
gentoo-6ef967f94febd929afb75ad2916baff3ca190c05.tar.bz2
gentoo-6ef967f94febd929afb75ad2916baff3ca190c05.zip
dev-libs/rocclr: Version bump to 3.9.0
Signed-off-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/rocclr')
-rw-r--r--dev-libs/rocclr/Manifest2
-rw-r--r--dev-libs/rocclr/rocclr-3.9.0.ebuild44
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/rocclr/Manifest b/dev-libs/rocclr/Manifest
index 2081e2da55ee..8872eed5263a 100644
--- a/dev-libs/rocclr/Manifest
+++ b/dev-libs/rocclr/Manifest
@@ -1,2 +1,4 @@
DIST rocclr-3.8.0.tar.gz 882055 BLAKE2B 12b62d2316f3f2886f656c8fcca946735e262e850d49ef8cdb21dc984eba121d9c37250209696b2945f80be363c8244a66c3da91bc26f8c65405b27625b9538e SHA512 79bbaa628815620824fdf320451d729f630949a0e7cb35e2eca638a93f4788175759f68666a1cae6c1320458692c145a0c577739386681d2299c887420400edb
+DIST rocclr-3.9.0.tar.gz 811081 BLAKE2B 7c3131adcc820a7f331ddd178cd06eb8f3a22dfc85e9634906e60d7cd1b5b1ac3f0ac0327a815139901c8e2d40f74e8b7c84c761a2aecb2c63812559528ebf13 SHA512 211bc0e8008cdaeabe9e9d51f22d939f4f9703d546e6602e59286027c439ee996c44f805154bb31bedc4916ef810e4cffd9b91f054baa76db4a8945b03b07a73
DIST rocm-opencl-runtime-3.8.0.tar.gz 1004339 BLAKE2B 966a5bd1d4d188004b15fe4263f2c18f6dad6a07f4bc264a5afa010f6035fbf73288966cd624e6e31e1ba584ba322d93343e3482177e6480c4a57a4150546f5a SHA512 bb4e3568e32bf6acc3c4812d7db169396a01bf90d079dc420ffb7df4bd4146d39938e76e9b386548fe64276bbf938a545c898de599113f20cc73ae98268c3d6a
+DIST rocm-opencl-runtime-3.9.0.tar.gz 1004372 BLAKE2B f5485dfbc615826214e1071485636e94bc83d12d4412da912455cb0ddd39ede3429a749a16428cb3c10775e652ffbe31a63ad00b3ea38a7fa43a120776a12bfe SHA512 e8149e99a7116a2c2af0d04dde55290c35dd5c6c26d95da8c8a04fcfccdb23f6617ab8348f9fc201b6d9fde7202de4ede480d7ac547ae2471c6ae10897e1795e
diff --git a/dev-libs/rocclr/rocclr-3.9.0.ebuild b/dev-libs/rocclr/rocclr-3.9.0.ebuild
new file mode 100644
index 000000000000..ffa5203065d2
--- /dev/null
+++ b/dev-libs/rocclr/rocclr-3.9.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Radeon Open Compute Common Language Runtime"
+HOMEPAGE="https://github.com/ROCm-Developer-Tools/ROCclr"
+SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-${PV}.tar.gz -> rocm-opencl-runtime-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-libs/rocm-comgr-${PV}
+ >=dev-libs/rocr-runtime-${PV}"
+DEPEND="${RDEPEND}
+ >=dev-libs/rocm-comgr-${PV}
+ virtual/opengl
+ >=dev-util/rocm-cmake-${PV}"
+
+PATCHES=(
+ "${FILESDIR}/rocclr-3.7.0-cmake-install-destination.patch"
+)
+
+S="${WORKDIR}/ROCclr-rocm-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_COMGR_LIBRARY=YES
+ -DOPENCL_DIR="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}"
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # This should be fixed in the CMakeLists.txt
+ sed -e "s:${BUILD_DIR}:${EPREFIX}/usr:" -i "${D}/usr/lib/cmake/rocclr/ROCclrConfig.cmake" || die
+}