summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <commendsarnex@gmail.com>2018-03-12 21:10:01 -0400
committerMatt Turner <mattst88@gentoo.org>2018-03-23 16:36:11 -0700
commit9c4878c78c9481ea62e0a6665f0409fc06afd170 (patch)
treeba568ce68f258f111fc14371a3f743cc7a65e99e
parentdev-util/spirv-headers: Initial versions (diff)
downloadgentoo-9c4878c78c9481ea62e0a6665f0409fc06afd170.tar.gz
gentoo-9c4878c78c9481ea62e0a6665f0409fc06afd170.tar.bz2
gentoo-9c4878c78c9481ea62e0a6665f0409fc06afd170.zip
dev-util/spirv-tools: Initial Versions
Signed-off-by: Nick Sarnie <commendsarnex@gmail.com>
-rw-r--r--dev-util/spirv-tools/Manifest1
-rw-r--r--dev-util/spirv-tools/metadata.xml16
-rw-r--r--dev-util/spirv-tools/spirv-tools-2018.2.ebuild27
-rw-r--r--dev-util/spirv-tools/spirv-tools-9999.ebuild25
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
new file mode 100644
index 000000000000..f797048754ec
--- /dev/null
+++ b/dev-util/spirv-tools/Manifest
@@ -0,0 +1 @@
+DIST spirv-tools-2018.2.tar.gz 1039360 BLAKE2B bef1c3e4efa598bffad8f71c4a92cce9db98fd5699ab2f5616a7a4985c15da87f1e246391a2ca5e07affd352c6314896ff1599cdddc117b01655990f9c7b78f4 SHA512 6deed7a36b460135fd7db613b7101d53a87ae5d555f1795aa9a96ab14f437621d4667a41e5f5ae16e849f8e5d66e02611bed21e3110a902feac6c7f376eb5815
diff --git a/dev-util/spirv-tools/metadata.xml b/dev-util/spirv-tools/metadata.xml
new file mode 100644
index 000000000000..72d8623dc68e
--- /dev/null
+++ b/dev-util/spirv-tools/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>x11@gentoo.org</email>
+ <name>X11</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>commendsarnex@gmail.com</email>
+ <name>Nick Sarnie</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">KhronosGroup/SPIRV-Tools</remote-id>
+ </upstream>
+</pkgmetadata>
+
diff --git a/dev-util/spirv-tools/spirv-tools-2018.2.ebuild b/dev-util/spirv-tools/spirv-tools-2018.2.ebuild
new file mode 100644
index 000000000000..ccda02331582
--- /dev/null
+++ b/dev-util/spirv-tools/spirv-tools-2018.2.ebuild
@@ -0,0 +1,27 @@
+# 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"
+
+RDEPEND=""
+DEPEND="dev-util/spirv-headers"
+
+S="${WORKDIR}/SPIRV-Tools-${PV}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ "-DSPIRV-Headers_SOURCE_DIR=/usr/"
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/dev-util/spirv-tools/spirv-tools-9999.ebuild b/dev-util/spirv-tools/spirv-tools-9999.ebuild
new file mode 100644
index 000000000000..e6ecb91d83e6
--- /dev/null
+++ b/dev-util/spirv-tools/spirv-tools-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib cmake-utils git-r3
+
+DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
+HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
+EGIT_REPO_URI="https://github.com/KhronosGroup/SPIRV-Tools.git"
+SRC_URI=""
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND=""
+DEPEND="dev-util/spirv-headers"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ "-DSPIRV-Headers_SOURCE_DIR=/usr/"
+ )
+
+ cmake-utils_src_configure
+}