sys-devel/llvm-roc: 3.5.0 version bump
authorCraig Andrews <candrews@gentoo.org>
Wed, 27 May 2020 13:40:01 +0000 (09:40 -0400)
committerCraig Andrews <candrews@gentoo.org>
Thu, 28 May 2020 14:01:32 +0000 (10:01 -0400)
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Craig Andrews <candrews@gentoo.org>
sys-devel/llvm-roc/Manifest
sys-devel/llvm-roc/llvm-roc-3.5.0.ebuild [new file with mode: 0644]

index 88a7951824028a6ea0369c39c18be3de3a368187..55c41d64e6a3594d147ddf20ddce73a0008cde02 100644 (file)
@@ -16,3 +16,4 @@ DIST llvm-roc-ocl-2.9.0.tar.gz 50246154 BLAKE2B 5ed8faf4582a41dac3bdc71a9fc6e12e
 DIST llvm-roc-ocl-3.0.0.tar.gz 117363122 BLAKE2B a85e456e715629fbb3349e13e50a62aee7c82c6479127d7e46ff2de13f0eab108dd0332136aa736c30ed46c1563207b7ab22df0f7f53404315d51f0a172b5e86 SHA512 7d1281fc1628e4e88ddd740ccf03107cdccf86178046dfe79efd6b503193b3be4e23a67363f24f1d6250a156da86fe0d93933d9c67510b755d1e454e7bbedb68
 DIST llvm-roc-ocl-3.1.0.tar.gz 120981974 BLAKE2B cbefc7b087c8df81ee093aeebff292c652dc29f37ee5bcf9ef891130c52bf93b3b735f1aa746fd1ec5e5e86c879d73ffa6f9df074f27b31799ef701206a7ea32 SHA512 bc6eb441f655f3b9cb13161fb731e592295a156e7d7bd0a38e4d3017bac90852d2ef64980c70889939ae082c9d1523af25d82ec2221415bbae0d01201d20ec57
 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
diff --git a/sys-devel/llvm-roc/llvm-roc-3.5.0.ebuild b/sys-devel/llvm-roc/llvm-roc-3.5.0.ebuild
new file mode 100644 (file)
index 0000000..616e05f
--- /dev/null
@@ -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}"
+}