commit:     a2c2cf173f76236087b7839689ceb58946ce0f72
Author:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 12 02:13:28 2018 +0000
Commit:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Thu Jul 12 02:13:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c2cf17

dev-util/spirv-tools: Version bump

Package-Manager: Portage-2.3.42, Repoman-2.3.9

 dev-util/spirv-tools/Manifest                  |  1 +
 dev-util/spirv-tools/spirv-tools-2018.4.ebuild | 37 ++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
index f797048754e..32fa406d06d 100644
--- a/dev-util/spirv-tools/Manifest
+++ b/dev-util/spirv-tools/Manifest
@@ -1 +1,2 @@
 DIST spirv-tools-2018.2.tar.gz 1039360 BLAKE2B 
bef1c3e4efa598bffad8f71c4a92cce9db98fd5699ab2f5616a7a4985c15da87f1e246391a2ca5e07affd352c6314896ff1599cdddc117b01655990f9c7b78f4
 SHA512 
6deed7a36b460135fd7db613b7101d53a87ae5d555f1795aa9a96ab14f437621d4667a41e5f5ae16e849f8e5d66e02611bed21e3110a902feac6c7f376eb5815
+DIST spirv-tools-2018.4.tar.gz 1327904 BLAKE2B 
1ed01edf0dd5e8c3ac0d1a866d27f2e2ef377e9c082579291f8e755592ff3ea4f44a597e3e7694977500b9434889b0f741e03d566e777bb0f9af5e2e59374d61
 SHA512 
6b982efb30529e7f7776d7702f563bb4f874b9be3a7b0d838d77a15813f4177da99c152f40f11854fc3d60791ecf4026e006ff25a216bb44194dfd921c50920d

diff --git a/dev-util/spirv-tools/spirv-tools-2018.4.ebuild 
b/dev-util/spirv-tools/spirv-tools-2018.4.ebuild
new file mode 100644
index 00000000000..9b76b868f23
--- /dev/null
+++ b/dev-util/spirv-tools/spirv-tools-2018.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib cmake-utils
+
+DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools";
+SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# Tests fail upon finding symbols that do not match a regular expression
+# in the generated library. Easily hit with non-standard compiler flags
+RESTRICT="test"
+
+RDEPEND=""
+DEPEND="dev-util/spirv-headers"
+EGIT_COMMIT="f508896d6487d09f5c9a2a3835595446fec0791a"
+S="${WORKDIR}/SPIRV-Tools-${PV}"
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               "-DSPIRV-Headers_SOURCE_DIR=/usr/"
+       )
+
+       cmake-utils_src_configure
+}
+
+multilib_src_install() {
+       default
+       echo "${EGIT_COMMIT}" > "${PN}-commit.h" || die
+       insinto /usr/include/"${PN}"
+       doins  "${PN}-commit.h"
+}

Reply via email to