summaryrefslogtreecommitdiff
path: root/sys-devel/llvm-roc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /sys-devel/llvm-roc
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'sys-devel/llvm-roc')
-rw-r--r--sys-devel/llvm-roc/Manifest4
-rw-r--r--sys-devel/llvm-roc/llvm-roc-3.6.0.ebuild57
-rw-r--r--sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild60
3 files changed, 121 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/Manifest b/sys-devel/llvm-roc/Manifest
index 70c5494f20f1..31e52423cca3 100644
--- a/sys-devel/llvm-roc/Manifest
+++ b/sys-devel/llvm-roc/Manifest
@@ -19,6 +19,8 @@ DIST llvm-roc-ocl-3.1.0.tar.gz 120981974 BLAKE2B cbefc7b087c8df81ee093aeebff292c
DIST llvm-rocm-ocl-3.3.0.tar.gz 115703174 BLAKE2B 4695f07317d625bb285470cc906489f22a5eb023b4337945c1d7b4237509d3481b9f9369611dc57f4e8daa8a70c7cdd8a9b0df4842cc1424e301a5366f458727 SHA512 896afa458c7527de469e6ee891b22be6ef351858c5d0c3da57bcd6d1d85667256b3ab3fe64167cc26536dbcfd95e1146edff9c24daf5e1c966195555748d9278
DIST llvm-rocm-ocl-3.5.0.tar.gz 116948115 BLAKE2B 067ce3cef03b714059e6720269c864d8cffa8687040ae9a8607c6207d00a6a4d8e31099aba7ff09144bf1ded809b842fe856103346b9b06eb9bcd393397fe63f SHA512 04808724c7ede3e21485153d3ccf8050b4f2ceae356c4c6451e36da714ed57ac3578f1485d922b747e3c1f654cc9f27544800f869bef24efa80f4e1b98afbbaf
DIST llvm-rocm-ocl-3.5.1.tar.gz 116945831 BLAKE2B cab1023077a9425d158a4974b8b7baa12e15dd69ced4ea58a4f388c8057e9f6d57020e236c8f0903d5633fa73c799646f70493193cf36a760e8b658f9745ffb3 SHA512 cabc507d560c980e38214441f628e773d6621f72001fbc7d37516d1fa3d361f11919a8bf7903df60914e6f4ad6cf4993e44d121c5b6711b6ac69052d75974ab1
+DIST llvm-rocm-ocl-3.6.0.tar.gz 116957974 BLAKE2B b078af4a924525ff5654753a26f67168ff291cdcc3291b97a86a99975cb8ceaea44e1f25db917fc6e082337b16acd961818d59a3079dcb7353abed5f2ef17d1b SHA512 769f96869cd05f0b146422fc9b200cec08898a08d0d6032c1347720bb7dcee94600b1f8131b9e0e7e58943d0adfa6c02d214e100f2bc1f1937273c6861e43e92
+DIST llvm-rocm-ocl-3.7.0.tar.gz 116973132 BLAKE2B c1cc8a3b95292d726626d3cb59ec1b96549682bfcbec16030e47cf1318c6ea01bc76f3349f012ce4f1e4d8b9fe192c51a025c2d08cf593622c61fe7c61969ba6 SHA512 0626075bedb3898c96c0bb0be7a2aba4662050a1c738115f661bedc03d744ace7a4581b55c6325060740c13a0e50e72e09272bb02c1186c2c4a40fc9b961dcbe
EBUILD llvm-roc-2.10.0.ebuild 1408 BLAKE2B 403c92548945befa4f863b45432096e19ce5e382a4f7b12ec8d178551e00e47e05d28ef46b8ad930fd01cfa3a052ca4947de59bb69ed3c54fdd76133c0e42fd2 SHA512 3fd04264ec0a05f28661cf63d7b2dd63824c41a9c4e8ed5b209f94ab1a816b8cf6968c1c70cad8dc4a2d34811baf8971116aa99aebe7f14481ee22ae5039ebfe
EBUILD llvm-roc-2.6.0-r1.ebuild 1380 BLAKE2B 76af5352a82861b2ee0d95f1d3d2d8025af747523f36ef847bb03e77aa8b4aa3932dda9f57d525265eb39cfaafa9e8a7c5fe3b106875bfd3090f5627e7d55c96 SHA512 4fbb8add4966a700e31e4774665b4a8a583b5fb2a09bdac395ed0ccd19b4726d36e7c84a0d3bc571e846abdd282f7cd8b06c50a127a5d31346b99c689adcdd45
EBUILD llvm-roc-2.7.0.ebuild 1408 BLAKE2B 403c92548945befa4f863b45432096e19ce5e382a4f7b12ec8d178551e00e47e05d28ef46b8ad930fd01cfa3a052ca4947de59bb69ed3c54fdd76133c0e42fd2 SHA512 3fd04264ec0a05f28661cf63d7b2dd63824c41a9c4e8ed5b209f94ab1a816b8cf6968c1c70cad8dc4a2d34811baf8971116aa99aebe7f14481ee22ae5039ebfe
@@ -29,4 +31,6 @@ EBUILD llvm-roc-3.1.0.ebuild 1286 BLAKE2B 9349a3432f62a8884ad2105cfd1e82b942239e
EBUILD llvm-roc-3.3.0.ebuild 1289 BLAKE2B 569f17f1a4a97932a55e352a80fb6b8769809b1d05ecc52d25b262726382c68779dd2e2a2a4bea1c4b15bdafa36a0380dc99d6d3e250f79cf4f394ea4f83f75f SHA512 ec7822fc2774d905368c84c39bd9341f4df8706adf8c44afd26f9364d83ef0098d67d11b9075710c21355e60f6ca8470f3e6255db52b6e170342f3ae95350781
EBUILD llvm-roc-3.5.0.ebuild 1284 BLAKE2B 00d1837eba74f2bae5e40c5a7cad49cbe41bcfa13a92005367916028ebb16516f39f3951426f17aa2db46b7a0dd663ca3dbb6dc7084c4bcb2e8ad708999b8d3f SHA512 23174cc206eddab27d9e180b479ee02ce355f996b0a954531192835b6a8fc5bf6ac7f0d82578e7eaece5553f5587309bdcc235ebb62ddd5b43826e7fe0a37d53
EBUILD llvm-roc-3.5.1.ebuild 1284 BLAKE2B 00d1837eba74f2bae5e40c5a7cad49cbe41bcfa13a92005367916028ebb16516f39f3951426f17aa2db46b7a0dd663ca3dbb6dc7084c4bcb2e8ad708999b8d3f SHA512 23174cc206eddab27d9e180b479ee02ce355f996b0a954531192835b6a8fc5bf6ac7f0d82578e7eaece5553f5587309bdcc235ebb62ddd5b43826e7fe0a37d53
+EBUILD llvm-roc-3.6.0.ebuild 1284 BLAKE2B 00d1837eba74f2bae5e40c5a7cad49cbe41bcfa13a92005367916028ebb16516f39f3951426f17aa2db46b7a0dd663ca3dbb6dc7084c4bcb2e8ad708999b8d3f SHA512 23174cc206eddab27d9e180b479ee02ce355f996b0a954531192835b6a8fc5bf6ac7f0d82578e7eaece5553f5587309bdcc235ebb62ddd5b43826e7fe0a37d53
+EBUILD llvm-roc-3.7.0-r1.ebuild 1346 BLAKE2B 8094d7fe8a9f8a717d83b812d4323483e4bd8fc4f30b6ddeea84b10aad68cad10ae26289eda5038b71543db18bed37f8245e7383e7ef86d3dc3afd0507cc3093 SHA512 7dabd9d4e1fb15a26c6b010b15e68d6b6b37ec568bdbace9d57e31d8e53b2b528123f8dcc684c14b51899b05b8f0c00660a27efc0467dc1c3314dd83b1b2713d
MISC metadata.xml 469 BLAKE2B f2b3af990bf9b130ed1be4ad2c4da5a97f6eae74d5feb43d81b4dc90ca1c5dcf896b293ad60d1c932d0c64773c203c52ccca8a6e0e5dd1d614f97b53113146db SHA512 e3783dde65d914cc272478c2d1823de27a2daaf8fa3aa2d281b98b0ed707c758bce1d52326dda577baed5b127293fca435211cfee17cc43553b9be424a4e2348
diff --git a/sys-devel/llvm-roc/llvm-roc-3.6.0.ebuild b/sys-devel/llvm-roc/llvm-roc-3.6.0.ebuild
new file mode 100644
index 000000000000..616e05f5cb90
--- /dev/null
+++ b/sys-devel/llvm-roc/llvm-roc-3.6.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Radeon Open Compute llvm,lld,clang"
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm/"
+SRC_URI="https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-${PV}.tar.gz -> llvm-rocm-ocl-${PV}.tar.gz"
+
+LICENSE="UoI-NCSA rc BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND="virtual/cblas
+ dev-libs/rocr-runtime"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
+
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+src_prepare() {
+ cd "${WORKDIR}/llvm-project-rocm-${PV}" || die
+ eapply "${FILESDIR}/${PN}-3.0.0-add_libraries.patch"
+ eapply_user
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/roc"
+ -DLLVM_ENABLE_PROJECTS="clang;lld"
+ -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86"
+ -DLLVM_BUILD_DOCS=NO
+ -DLLVM_ENABLE_OCAMLDOC=OFF
+ -DLLVM_ENABLE_SPHINX=NO
+ -DLLVM_ENABLE_DOXYGEN=OFF
+ -DLLVM_INSTALL_UTILS=ON
+ -DLLVM_VERSION_SUFFIX=roc
+ -DOCAMLFIND=NO
+ )
+
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ cat > "99${PN}" <<-EOF
+ LDPATH="${EROOT}/usr/lib/llvm/roc/lib"
+ EOF
+ doenvd "99${PN}"
+}
diff --git a/sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild b/sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild
new file mode 100644
index 000000000000..ec60b28f0853
--- /dev/null
+++ b/sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Radeon Open Compute llvm,lld,clang"
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm/"
+SRC_URI="https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-${PV}.tar.gz -> llvm-rocm-ocl-${PV}.tar.gz"
+
+LICENSE="UoI-NCSA rc BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND="virtual/cblas
+ dev-libs/libxml2
+ sys-libs/zlib
+ sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+PDEPEND="dev-libs/rocr-runtime"
+
+S="${WORKDIR}/llvm-project-rocm-${PV}/llvm"
+
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+src_prepare() {
+ cd "${WORKDIR}/llvm-project-rocm-${PV}" || die
+ eapply "${FILESDIR}/${PN}-3.0.0-add_libraries.patch"
+ eapply_user
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/roc"
+ -DLLVM_ENABLE_PROJECTS="clang;lld"
+ -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86"
+ -DLLVM_BUILD_DOCS=NO
+ -DLLVM_ENABLE_OCAMLDOC=OFF
+ -DLLVM_ENABLE_SPHINX=NO
+ -DLLVM_ENABLE_DOXYGEN=OFF
+ -DLLVM_INSTALL_UTILS=ON
+ -DLLVM_VERSION_SUFFIX=roc
+ -DOCAMLFIND=NO
+ )
+
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ cat > "99${PN}" <<-EOF
+ LDPATH="${EROOT}/usr/lib/llvm/roc/lib"
+ EOF
+ doenvd "99${PN}"
+}