diff options
author | Khue Nguyen <Z5483Y@gmail.com> | 2021-01-15 19:55:05 -0500 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-02-02 15:45:56 +0200 |
commit | 157fe3daaa3837e2d95dc128f059adfb65f6b13e (patch) | |
tree | 7106e2d2abe93fa832c186aa404416f60afbcec4 /dev-libs | |
parent | dev-util/spirv-llvm-translator: bump to 11.0.0 (diff) | |
download | gentoo-157fe3daaa3837e2d95dc128f059adfb65f6b13e.tar.gz gentoo-157fe3daaa3837e2d95dc128f059adfb65f6b13e.tar.bz2 gentoo-157fe3daaa3837e2d95dc128f059adfb65f6b13e.zip |
dev-libs/opencl-clang: bump to 11.0.0
Signed-off-by: Khue Nguyen <Z5483Y@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/opencl-clang/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-11.0.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest index dfd01099a9fe..1337910ae00a 100644 --- a/dev-libs/opencl-clang/Manifest +++ b/dev-libs/opencl-clang/Manifest @@ -1,2 +1,3 @@ DIST opencl-clang-10.0.0.1.tar.gz 23549 BLAKE2B 8663da4525507862835ebc14fb4666d9f2f3cca0a2c08aadfc2875bc285e604e81b21ccc7476976eea2e3eb1ce88ae7b187c2d0ce085fc3ede1a2dbfea0789eb SHA512 406e27d90ae26a2f8ade04172bf680f8786011c7e8357a40b15c8bbfd933d0f1c5e0c114e371036318439fcab999ec5f141dab2df4b498eb9d2548bf175f8502 DIST opencl-clang-10.0.0.2.tar.gz 53935 BLAKE2B a0f1c1d8f9e4be24e63318daf38fc70a0372ee1dc5cb2443831b6bf64dd3d44ac3f52ca70de5f52dabab2b34a53d4efafd9c19598b471e6f3b855355c03cf4af SHA512 817cc7d977629e63b9d61bdf7ec8e93596f28102a321927507b035397c99e6e6eda1e5f36d0ed59c9949ba12baab32b138f5053a6bc84ba74211e199ddbf3109 +DIST opencl-clang-11.0.0.tar.gz 79487 BLAKE2B a5ec89c68dd31f53881a002fda0fa9f83b6355273a6f2085c6794a0c9a74ba44b8ac21175854a87427c30523f2dd024006050b77d90bbfa7041e4abfbf0bb9e5 SHA512 bd27d15d5e6f396f0b0a79fb1f2081033e26db1df701a37558f7b9976299e17cfb383beff8fb0f1a5ab63601648cac2a33e4de73100fd1ab8706161c52aabe3c diff --git a/dev-libs/opencl-clang/opencl-clang-11.0.0.ebuild b/dev-libs/opencl-clang/opencl-clang-11.0.0.ebuild new file mode 100644 index 000000000000..c359b97d9e13 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-11.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake + +inherit cmake-multilib llvm + +MY_PV="$(ver_rs 3 -)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="OpenCL-oriented thin wrapper library around clang" +HOMEPAGE="https://github.com/intel/opencl-clang" +SRC_URI="https://github.com/intel/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="11" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +# Force a rebuild of this package once clang has been updated from 10.0.0 to 10.0.1 +# in order to work around Bug #743992. Hopefully a one-time thing. +DEPEND="~sys-devel/clang-11.0.1:11=[static-analyzer,${MULTILIB_USEDEP}] + sys-devel/llvm:11=[${MULTILIB_USEDEP}] + >=dev-util/spirv-llvm-translator-11.0.0:11=[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +LLVM_MAX_SLOT=11 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch + "${FILESDIR}"/${PN}-10.0.0.1_find-llvm-tblgen.patch +) + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + ) + cmake_src_configure +} |