diff options
author | Marek Szuba <marecki@gentoo.org> | 2019-10-01 22:48:40 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2019-10-01 22:54:03 +0100 |
commit | e9afdf41d862e9dc1f84967d1a9581bc2d1693d5 (patch) | |
tree | 3c3bdcf3cd274428b47b1d5c1ac3527427e09114 /dev-util/spirv-llvm-translator | |
parent | media-libs/lib3ds: Conditionally install static libs with USE flag (diff) | |
download | gentoo-e9afdf41d862e9dc1f84967d1a9581bc2d1693d5.tar.gz gentoo-e9afdf41d862e9dc1f84967d1a9581bc2d1693d5.tar.bz2 gentoo-e9afdf41d862e9dc1f84967d1a9581bc2d1693d5.zip |
dev-util/spirv-llvm-translator: bump to 8.0.1.2
Package-Manager: Portage-2.3.76, Repoman-2.3.16
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-8.0.1.2.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest index 913844f59ce1..d26d46327274 100644 --- a/dev-util/spirv-llvm-translator/Manifest +++ b/dev-util/spirv-llvm-translator/Manifest @@ -1 +1,2 @@ DIST spirv-llvm-translator-8.0.1.1.tar.gz 451282 BLAKE2B 6c1a5f7b9d280b040a48d987304f11c743180cb53d7068705a5be2c66a5235fd04344e31e3538cded1e9c5bce81155e00089de65b2b8baceebe54598a1305dd3 SHA512 b0e06b967caecf9b47921e7df1fef42c5c112ccf7962888c6e2f34358e9c27acb4a549cd855625fc942c4a6bcf0e5992e4c7e4d40ff962115733fc8901d04bcc +DIST spirv-llvm-translator-8.0.1.2.tar.gz 461803 BLAKE2B 58814d88bfa555f0deab8d072ecd0b54c1ee22c4f6464a9988d18dad2c99d25a5ed49e506644d01455fb92f476536148e0e0cce2eaca22b4b1c88220724f8d40 SHA512 954d4600f680d3325d4f7ea80551f814f2cee486254227609fc0354c1b112d4dea387736d601750587369a7c4f1c2a528a19f8a969df433649731efdd5ba4c23 diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.2.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.2.ebuild new file mode 100644 index 000000000000..68cfb3a2f5d1 --- /dev/null +++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-multilib flag-o-matic llvm + +MY_PN="SPIRV-LLVM-Translator" +MY_PV="$(ver_rs 3 -)" +MY_P="${MY_PN}-${MY_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${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="8" +KEYWORDS="~amd64" +IUSE="test tools" + +S="${WORKDIR}/${MY_P}" + +COMMON="sys-devel/clang:8=[${MULTILIB_USEDEP}]" +DEPEND="${COMMON} + test? ( dev-python/lit )" +RDEPEND="${COMMON}" + +REQUIRED_USE="test? ( tools )" + +LLVM_MAX_SLOT=8 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0.1-no_pkgconfig_files.patch +) + +src_prepare() { + append-flags -fPIC + cmake-utils_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -DLLVM_BUILD_TOOLS=$(usex tools "ON" "OFF") + $(usex test "-DLLVM_INCLUDE_TESTS=ON" "") + ) + cmake-utils_src_configure +} + +multilib_src_test() { + # TODO: figure out why 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 +} |