summaryrefslogtreecommitdiff
path: root/dev-libs/rocclr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
commit9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch)
tree8ac67e26b45f34d71c5aab3621813b100a0d5f00 /dev-libs/rocclr
parentf516638b7fe9592837389826a6152a7e1b251c54 (diff)
gentoo resync : 13.06.2020
Diffstat (limited to 'dev-libs/rocclr')
-rw-r--r--dev-libs/rocclr/Manifest5
-rw-r--r--dev-libs/rocclr/files/rocclr-3.5.0-cmake-install-destination.patch53
-rw-r--r--dev-libs/rocclr/metadata.xml15
-rw-r--r--dev-libs/rocclr/rocclr-3.5.0.ebuild45
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-libs/rocclr/Manifest b/dev-libs/rocclr/Manifest
new file mode 100644
index 000000000000..b60bd644654b
--- /dev/null
+++ b/dev-libs/rocclr/Manifest
@@ -0,0 +1,5 @@
+AUX rocclr-3.5.0-cmake-install-destination.patch 1743 BLAKE2B cacc53fe9ca31a90e294fc75d611d3dec70a196cbd8456f3c7d21639cd8d1a30e2bbfc336756936995b7bc1e23b4ce486410aff10e3f39a1d6da627d74a4ac81 SHA512 2675850ee6f1cf3b8ea66a9f54cfb35573f2d6ff1fe56b69630fe1323bdf916357eefb5927692bba58ec7007be24f2d1b2734ee13a81afe72c36fa59c4de5f28
+DIST rocclr-3.5.0.tar.gz 874139 BLAKE2B 027403d51c86aa492c0951f8d75bd90493fc0fbe99987e9f443a9fa0b86fc69335a4a6625b5af67231b99c9e0b0adbd914e11369fb2a2b1acb3b5254e475b09f SHA512 732c439f900896c0e065b64054a789edbc0258a0e53723077e578b99bd59925517b201c31a428389cc0dbd100051df8344378aee4a0c2c294110ad9bcf1a3098
+DIST rocm-opencl-runtime-3.5.0.tar.gz 734076 BLAKE2B cc6992999188968c628b378f637c8073c99381fab42e05d7d9d89d75fe9f2bd3d573f61f00a18c078542f7fc4a3a856385d0f34fa9bb599dd63de8be18594bdf SHA512 658649c3f13d32308f8f031f26b62c20bda4841059b5ea0db5c6a827af26b07aa0bdee07a461cc4b3c37108b3f25ae59b1658fab30125f84c0729fb57c2fa014
+EBUILD rocclr-3.5.0.ebuild 1272 BLAKE2B 90c6bf25ff0812121ff24d19d93cd81ee039602891b41ee86ee23c2e789e686733d28e8aa5448aca6b383f56c7901039b7c9f5cad3123b0e0e90934922e4d0fc SHA512 736fbd3cfbe6746c366d41cb4b71ceec1ddf975ecc0a6c8c88a443b294fab02226e6bec0b13b9810f4b548f6da7c1a7e59c0661b25ae78d883fde265c91a9b8a
+MISC metadata.xml 497 BLAKE2B f21bb8a043e512036294e7af578c86aec248b4d8fd76bbb2c86026d7c1c8cc4e0bdd1725685ea3ff861dc2a63708b740fa45c7e19b95589de0fd6fac4391b3e8 SHA512 5275f1799db5d847e09eae59d624ecf40134513a3c9c370a6ad05ea0808b7f456eae32a37c1501e156d26d155a8f692d4f661757c0a2f0b436cc46666930850d
diff --git a/dev-libs/rocclr/files/rocclr-3.5.0-cmake-install-destination.patch b/dev-libs/rocclr/files/rocclr-3.5.0-cmake-install-destination.patch
new file mode 100644
index 000000000000..4f915284f627
--- /dev/null
+++ b/dev-libs/rocclr/files/rocclr-3.5.0-cmake-install-destination.patch
@@ -0,0 +1,53 @@
+--- a/CMakeLists.txt 2020-06-07 13:12:46.497062447 +0200
++++ b/CMakeLists.txt 2020-06-07 13:13:44.401062226 +0200
+@@ -202,40 +202,40 @@
+ #endif()
+ endif()
+
+-install( TARGETS amdrocclr_static ARCHIVE DESTINATION lib LIBRARY DESTINATION lib COMPONENT applications)
++install( TARGETS amdrocclr_static ARCHIVE DESTINATION lib64 LIBRARY DESTINATION lib64 COMPONENT applications)
+ file(GLOB headerfiles "${CMAKE_CURRENT_SOURCE_DIR}/*.h*")
+ install (
+ FILES ${headerfiles}
+- DESTINATION include)
++ DESTINATION include/rocclr)
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/elf"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/compiler"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/utils"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/platform"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thread"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/os"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
+ install (
+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/device"
+- DESTINATION include
++ DESTINATION include/rocclr
+ FILES_MATCHING PATTERN "*.h*")
diff --git a/dev-libs/rocclr/metadata.xml b/dev-libs/rocclr/metadata.xml
new file mode 100644
index 000000000000..26f1de03c97b
--- /dev/null
+++ b/dev-libs/rocclr/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>gentoo@holzke.net</email>
+ <name>Wilfried Holzke</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ROCm-Developer-Tools/ROCclr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/rocclr/rocclr-3.5.0.ebuild b/dev-libs/rocclr/rocclr-3.5.0.ebuild
new file mode 100644
index 000000000000..a82c2461e653
--- /dev/null
+++ b/dev-libs/rocclr/rocclr-3.5.0.ebuild
@@ -0,0 +1,45 @@
+# 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/roc-${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/roc-${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}"
+DEPEND="${RDEPEND}
+ >=dev-libs/rocm-comgr-${PV}
+ virtual/opengl
+ >=dev-util/rocm-cmake-${PV}"
+
+PATCHES=(
+ "${FILESDIR}/rocclr-3.5.0-cmake-install-destination.patch"
+)
+
+S="${WORKDIR}/ROCclr-roc-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_COMGR_LIBRARY=YES
+ -DOPENCL_DIR="${WORKDIR}/ROCm-OpenCL-Runtime-roc-${PV}"
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ # This should be fixed in the CMakeLists.txt to get this installed automatically
+ sed -e "s:/var/tmp/portage/dev-libs/${PF}/work/rocclr-${PV}_build:/usr/lib64:" -i "${BUILD_DIR}/amdrocclr_staticTargets.cmake"
+ insinto /usr/lib64/cmake/rocclr
+ doins "${BUILD_DIR}/amdrocclr_staticTargets.cmake"
+
+ cmake_src_install
+}