diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-04-26 22:22:43 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-04-26 22:24:56 +0100 |
commit | 2cf360025641ae4c9cf0090f8f3a618642358af4 (patch) | |
tree | d5bd88373fe52e48ce85d2512365be4fdf7c4317 /dev-util/spirv-llvm-translator | |
parent | dev-libs/intel-neo: bump to 20.16.16582 (diff) | |
download | gentoo-2cf360025641ae4c9cf0090f8f3a618642358af4.tar.gz gentoo-2cf360025641ae4c9cf0090f8f3a618642358af4.tar.bz2 gentoo-2cf360025641ae4c9cf0090f8f3a618642358af4.zip |
dev-util/spirv-llvm-translator: add the first SLOT=10 version, 10.0.0
Builds and tests fine, unfortunately I have run into weird build errors
in the LLVM-10 versions of dev-libs/opencl-clang so it might take a
while before dev-util/intel-graphics-compiler becomes able to use this
LLVM slot.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-util/spirv-llvm-translator')
-rw-r--r-- | dev-util/spirv-llvm-translator/Manifest | 1 | ||||
-rw-r--r-- | dev-util/spirv-llvm-translator/spirv-llvm-translator-10.0.0.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest index 6352e5adbcad..be6c43320b3e 100644 --- a/dev-util/spirv-llvm-translator/Manifest +++ b/dev-util/spirv-llvm-translator/Manifest @@ -1,3 +1,4 @@ +DIST spirv-llvm-translator-10.0.0.tar.gz 535828 BLAKE2B 0bce2f663b2f70a2db2b1ef0665d627716d63baa6cb47ced532ac2e30e8b0424934d273135581655445ea87f5c84c9df876da0490d7a302a6d00c86b78e05c22 SHA512 d6400bb3e4df780358b5d6d0af889e7654b7dfd472c8d41b77ff98e7ff1bd017c289ecacb59a3dd7bfddb1a5108e21028aa770bf645e06178610bb322de905be DIST spirv-llvm-translator-8.0.1.2.tar.gz 461803 BLAKE2B 58814d88bfa555f0deab8d072ecd0b54c1ee22c4f6464a9988d18dad2c99d25a5ed49e506644d01455fb92f476536148e0e0cce2eaca22b4b1c88220724f8d40 SHA512 954d4600f680d3325d4f7ea80551f814f2cee486254227609fc0354c1b112d4dea387736d601750587369a7c4f1c2a528a19f8a969df433649731efdd5ba4c23 DIST spirv-llvm-translator-8.0.1.3.tar.gz 472853 BLAKE2B 3f00aabd46dd43840b8a16f6a9a061e00385bae6d4e608ad1d2e59f943bfca747e1ce6b2f48eee7e124bc3ac47f5895274d9cf7bb587eba7133152b9658f5e9e SHA512 c10a426d83276718b116d664fd32c8457d87e336e7c99b64d323ea9a08330d206dc94e52ce8e7395bcb8ee2ddff49184b5c7810e4848d624396d0574ce48256d DIST spirv-llvm-translator-9.0.0.1.tar.gz 491089 BLAKE2B ebdab77316608c4a4a48e778abc749ac347d0ee4441c8cb152b303e99cf5c16bd4f883dad519f5d4a96b6d05975a56e8d2fa5b6fa403dedc163cc3611b905d13 SHA512 ad0e9a49440f8dc0a9c973c74245640c8392c8ae85431eb5e0ca6ea98e603cb6fcbfcaa8fa3d455df2f53537c7f61915a557f12744c39a9c9f9e1c400ddd74ad diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-10.0.0.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-10.0.0.ebuild new file mode 100644 index 000000000000..787306f0e0b5 --- /dev/null +++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-10.0.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake + +inherit cmake-multilib flag-o-matic llvm + +MY_PN="SPIRV-LLVM-Translator" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Bi-directional translator between SPIR-V and LLVM IR" +HOMEPAGE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" +SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="10" +KEYWORDS="~amd64" +IUSE="test tools" + +RESTRICT="!test? ( test )" + +S="${WORKDIR}/${MY_P}" + +COMMON="sys-devel/clang:10=[${MULTILIB_USEDEP}]" +DEPEND="${COMMON}" +RDEPEND="${COMMON}" +BDEPEND="test? ( dev-python/lit )" + +REQUIRED_USE="test? ( tools )" + +LLVM_MAX_SLOT=10 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0.1-no_pkgconfig_files.patch +) + +src_prepare() { + append-flags -fPIC + cmake_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix ${LLVM_MAX_SLOT})" + -DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF") + $(usex test "-DLLVM_INCLUDE_TESTS=ON" "") + ) + cmake_src_configure +} + +multilib_src_test() { + # Some tests fail on amd64 when ABI==x86 + if multilib_is_native_abi; then + lit "${BUILD_DIR}/test" || die "Error running tests for ABI ${ABI}" + fi +} |