From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/
Date: Thu, 4 Jul 2019 12:01:35 +0000 (UTC) [thread overview]
Message-ID: <1562241682.6e1dfe5cfd4ba44f6da00e59a038b6033893cc14.marecki@gentoo> (raw)
commit: 6e1dfe5cfd4ba44f6da00e59a038b6033893cc14
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 4 12:00:19 2019 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Jul 4 12:01:22 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e1dfe5c
dev-util/spirv-llvm-translator: streamline installation of cmdline tool
1. Use the LLVM_BUILD_TOOLS flag from the CMake module AddLLVM to
control whether to build and install llvm-spirv or not. This should also
take care of the "insecure RUNPATHs" QA warning;
2. Make the above conditional upon USE=tools.
Closes: https://bugs.gentoo.org/689242
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
dev-util/spirv-llvm-translator/metadata.xml | 5 ++
.../spirv-llvm-translator-8.0.1.1-r1.ebuild | 53 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/dev-util/spirv-llvm-translator/metadata.xml b/dev-util/spirv-llvm-translator/metadata.xml
index d7dec83e2de..f5e348c67b5 100644
--- a/dev-util/spirv-llvm-translator/metadata.xml
+++ b/dev-util/spirv-llvm-translator/metadata.xml
@@ -5,6 +5,11 @@
<email>marecki@gentoo.org</email>
<name>Marek Szuba</name>
</maintainer>
+ <use>
+ <flag name="tools">
+ Install the command-line translator llvm-spirv
+ </flag>
+ </use>
<upstream>
<remote-id type="github">KhronosGroup/SPIRV-LLVM-Translator</remote-id>
</upstream>
diff --git a/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.1-r1.ebuild b/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.1-r1.ebuild
new file mode 100644
index 00000000000..675e083db1a
--- /dev/null
+++ b/dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.1-r1.ebuild
@@ -0,0 +1,53 @@
+# 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/llvm:8=[${MULTILIB_USEDEP}]"
+DEPEND="${COMMON}
+ test? ( dev-python/lit )"
+RDEPEND="${COMMON}"
+
+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
+}
next reply other threads:[~2019-07-04 12:01 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-04 12:01 Marek Szuba [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-09 1:41 [gentoo-commits] repo/gentoo:master commit in: dev-util/spirv-llvm-translator/ Conrad Kostecki
2024-10-23 7:53 Jakov Smolić
2024-10-23 7:53 Jakov Smolić
2024-10-22 22:26 Conrad Kostecki
2024-10-22 22:26 Conrad Kostecki
2024-10-22 22:26 Conrad Kostecki
2024-10-04 15:23 Matt Turner
2024-10-04 0:10 Sam James
2024-10-04 0:10 Sam James
2024-09-29 9:52 Conrad Kostecki
2024-09-24 0:36 Matt Turner
2024-09-23 4:08 Matt Turner
2024-09-21 20:29 Conrad Kostecki
2024-09-21 15:47 Conrad Kostecki
2024-09-09 16:07 Matt Turner
2024-09-02 19:25 Sam James
2024-09-02 19:25 Sam James
2024-09-02 17:52 Matt Turner
2024-08-02 4:41 Matt Turner
2024-07-23 17:42 Sam James
2024-07-23 16:45 Jakov Smolić
2024-07-23 16:45 Jakov Smolić
2024-07-11 15:41 Matt Turner
2024-07-02 17:00 Matt Turner
2024-06-09 15:37 Matt Turner
2024-06-09 3:31 Ionen Wolkens
2024-06-07 21:59 Matt Turner
2024-04-25 19:17 Matt Turner
2024-04-02 6:09 Arthur Zamarin
2024-03-01 19:46 Arthur Zamarin
2024-02-08 21:50 Conrad Kostecki
2024-01-21 13:38 Conrad Kostecki
2023-12-17 13:18 Mart Raudsepp
2023-09-25 20:47 Matt Turner
2023-09-22 21:47 Conrad Kostecki
2023-08-14 17:57 Jakov Smolić
2023-06-17 23:22 Sam James
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-23 2:58 Matt Turner
2023-05-04 3:41 Michał Górny
2023-04-25 18:48 Jakov Smolić
2023-03-25 0:11 Conrad Kostecki
2023-02-01 5:15 Michał Górny
2022-12-11 20:37 Arthur Zamarin
2022-11-11 7:04 Sam James
2022-10-26 20:09 Conrad Kostecki
2022-10-26 19:43 Conrad Kostecki
2022-09-25 23:12 Conrad Kostecki
2022-07-19 7:47 Michał Górny
2022-06-05 14:40 Conrad Kostecki
2022-04-29 21:08 Conrad Kostecki
2022-04-29 21:08 Conrad Kostecki
2022-04-25 21:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 22:35 Conrad Kostecki
2022-04-24 14:41 Michał Górny
2022-04-23 15:27 Sam James
2021-12-27 1:38 Sam James
2021-12-27 1:38 Sam James
2021-10-08 21:46 Conrad Kostecki
2021-10-08 18:48 Agostino Sarubbo
2021-09-12 7:09 Agostino Sarubbo
2021-08-16 17:12 Conrad Kostecki
2021-07-16 9:39 Joonas Niilola
2021-02-27 14:39 Conrad Kostecki
2021-02-02 13:46 Joonas Niilola
2020-11-03 11:49 Marek Szuba
2020-11-03 11:40 Marek Szuba
2020-10-12 12:14 Marek Szuba
2020-09-13 13:12 Marek Szuba
2020-07-29 13:57 Marek Szuba
2020-06-19 14:31 Marek Szuba
2020-04-26 21:27 Marek Szuba
2020-03-11 19:18 Marek Szuba
2020-03-11 19:18 Marek Szuba
2020-01-27 11:31 Marek Szuba
2020-01-24 16:24 Marek Szuba
2019-10-08 14:57 Marek Szuba
2019-10-07 12:23 Marek Szuba
2019-10-07 12:23 Marek Szuba
2019-10-01 21:54 Marek Szuba
2019-08-30 14:40 Michał Górny
2019-07-08 11:44 Marek Szuba
2019-07-03 16:12 Marek Szuba
2019-05-03 14:05 Marek Szuba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1562241682.6e1dfe5cfd4ba44f6da00e59a038b6033893cc14.marecki@gentoo \
--to=marecki@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox