From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 624D8138350 for ; Sun, 26 Apr 2020 21:27:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CC46E09C8; Sun, 26 Apr 2020 21:27:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 61571E09C8 for ; Sun, 26 Apr 2020 21:27:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A672034F93F for ; Sun, 26 Apr 2020 21:27:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E142E1F4 for ; Sun, 26 Apr 2020 21:27:28 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1587936296.2cf360025641ae4c9cf0090f8f3a618642358af4.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/spirv-llvm-translator/Manifest dev-util/spirv-llvm-translator/spirv-llvm-translator-10.0.0.ebuild X-VCS-Directories: dev-util/spirv-llvm-translator/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 2cf360025641ae4c9cf0090f8f3a618642358af4 X-VCS-Branch: master Date: Sun, 26 Apr 2020 21:27:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 19855c08-7ed4-456b-b9c3-0a3e0cd280b4 X-Archives-Hash: cbfa2112f40c82df71bbf89a11f81453 commit: 2cf360025641ae4c9cf0090f8f3a618642358af4 Author: Marek Szuba gentoo org> AuthorDate: Sun Apr 26 21:22:43 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sun Apr 26 21:24:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cf36002 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 gentoo.org> dev-util/spirv-llvm-translator/Manifest | 1 + .../spirv-llvm-translator-10.0.0.ebuild | 58 ++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-util/spirv-llvm-translator/Manifest b/dev-util/spirv-llvm-translator/Manifest index 6352e5adbca..be6c43320b3 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 00000000000..787306f0e0b --- /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 +}