summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-08-24 15:01:07 -0400
committerRick Farina <zerochaos@gentoo.org>2020-08-24 15:01:18 -0400
commit41db1eaa71bfde1180ed5774b4fc3d7c0f725d47 (patch)
tree0ab74efa76b8c3a4e289a6b125c8e065ecc55da2 /sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild
parentnet-wireless/gnuradio: 3.8.2.0 bump (diff)
downloadgentoo-41db1eaa71bfde1180ed5774b4fc3d7c0f725d47.tar.gz
gentoo-41db1eaa71bfde1180ed5774b4fc3d7c0f725d47.tar.bz2
gentoo-41db1eaa71bfde1180ed5774b4fc3d7c0f725d47.zip
sys-devel/llvm-roc: fix circular deps
add some minor missing deps fixed with permission from candrews Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild')
-rw-r--r--sys-devel/llvm-roc/llvm-roc-3.7.0-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
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 00000000000..ec60b28f085
--- /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}"
+}