dev-util/spirv-tools: Initial Versions
authorNick Sarnie <commendsarnex@gmail.com>
Tue, 13 Mar 2018 01:10:01 +0000 (21:10 -0400)
committerMatt Turner <mattst88@gentoo.org>
Fri, 23 Mar 2018 23:36:11 +0000 (16:36 -0700)
Signed-off-by: Nick Sarnie <commendsarnex@gmail.com>
dev-util/spirv-tools/Manifest [new file with mode: 0644]
dev-util/spirv-tools/metadata.xml [new file with mode: 0644]
dev-util/spirv-tools/spirv-tools-2018.2.ebuild [new file with mode: 0644]
dev-util/spirv-tools/spirv-tools-9999.ebuild [new file with mode: 0644]

diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
new file mode 100644 (file)
index 0000000..f797048
--- /dev/null
@@ -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 (file)
index 0000000..72d8623
--- /dev/null
@@ -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 (file)
index 0000000..ccda023
--- /dev/null
@@ -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 (file)
index 0000000..e6ecb91
--- /dev/null
@@ -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
+}