summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2019-08-13 20:49:30 -0400
committerCraig Andrews <candrews@gentoo.org>2019-08-14 16:54:32 -0400
commite089159516f9e345544ff6ed04809453583cc94c (patch)
tree42c8275849ec22a5ffa2da320a28cb1b2d4ddd70 /sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild
parentprofiles/package.mask: mask dev-java/itext (diff)
downloadgentoo-e089159516f9e345544ff6ed04809453583cc94c.tar.gz
gentoo-e089159516f9e345544ff6ed04809453583cc94c.tar.bz2
gentoo-e089159516f9e345544ff6ed04809453583cc94c.zip
sys-devel/llvm-roc: 2.7.0 version bump
Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild')
-rw-r--r--sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild b/sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild
new file mode 100644
index 00000000000..7cc195bf655
--- /dev/null
+++ b/sys-devel/llvm-roc/llvm-roc-2.7.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+DESCRIPTION="Radeon Open Compute llvm,lld,clang"
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm/"
+SRC_URI="https://github.com/RadeonOpenCompute/llvm/archive/roc-ocl-${PV}.tar.gz -> llvm-roc-ocl-${PV}.tar.gz
+ https://github.com/RadeonOpenCompute/clang/archive/roc-${PV}.tar.gz -> clang-roc-${PV}.tar.gz
+ https://github.com/RadeonOpenCompute/lld/archive/roc-ocl-${PV}.tar.gz -> lld-roc-ocl-${PV}.tar.gz"
+
+LICENSE="UoI-NCSA rc BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="virtual/cblas
+ dev-libs/rocr-runtime"
+DEPEND="${RDEPEND}"
+
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+S="${WORKDIR}/llvm-roc-ocl-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ ln -s "${WORKDIR}/clang-roc-${PV}" "${WORKDIR}/llvm-roc-ocl-${PV}/tools/clang"
+ ln -s "${WORKDIR}/lld-roc-ocl-${PV}" "${WORKDIR}/llvm-roc-ocl-${PV}/tools/lld"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/roc"
+ -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" "${S}"
+ -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
+ )
+ cmake-utils_src_configure
+}
+src_install(){
+ cmake-utils_src_install
+ cat > "99${PN}" <<-EOF
+ LDPATH="${EROOT}/usr/lib/llvm/roc/lib"
+ EOF
+ doenvd "99${PN}"
+}