summaryrefslogtreecommitdiff
path: root/dev-util/spirv-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-16 16:47:37 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-16 16:47:37 +0100
commit8aebb228036d5e2863b7eaa6e319ab41c1669269 (patch)
tree00f4b90ce32462dc8e99ae54a31d6462ea2c3ac6 /dev-util/spirv-tools
parent76cba73c47c8694e74377004634daca18f2d9c08 (diff)
gentoo resync : 16.04.2018
Diffstat (limited to 'dev-util/spirv-tools')
-rw-r--r--dev-util/spirv-tools/Manifest4
-rw-r--r--dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild (renamed from dev-util/spirv-tools/spirv-tools-2018.2.ebuild)9
-rw-r--r--dev-util/spirv-tools/spirv-tools-9999.ebuild9
3 files changed, 20 insertions, 2 deletions
diff --git a/dev-util/spirv-tools/Manifest b/dev-util/spirv-tools/Manifest
index 393e74406ce4..301bd0284e92 100644
--- a/dev-util/spirv-tools/Manifest
+++ b/dev-util/spirv-tools/Manifest
@@ -1,4 +1,4 @@
DIST spirv-tools-2018.2.tar.gz 1039360 BLAKE2B bef1c3e4efa598bffad8f71c4a92cce9db98fd5699ab2f5616a7a4985c15da87f1e246391a2ca5e07affd352c6314896ff1599cdddc117b01655990f9c7b78f4 SHA512 6deed7a36b460135fd7db613b7101d53a87ae5d555f1795aa9a96ab14f437621d4667a41e5f5ae16e849f8e5d66e02611bed21e3110a902feac6c7f376eb5815
-EBUILD spirv-tools-2018.2.ebuild 617 BLAKE2B 7a3a6c6d7dc3a90386dd6c893a0ebf65bb1a43c7d309ae0fcc771f921769b3d35f2751f8fd60ac9b5ce859acfef5548c0b871fdb6fc46e6ab82da9f27c97eb96 SHA512 851d87e6c52a534aa17101c67746b0d827e5ca065184e09f353a506140dab8b0cf813373d7257e4954fdd49e34e65fe992d9c149fe5a75fe8beef32a4774f89f
-EBUILD spirv-tools-9999.ebuild 556 BLAKE2B d2efcc80959ac8455dd01526585b0fe62750b094bb26390b0a414e3daa1620c2248681417e8a73616299552fbabf0ede768b3c9fc4f7924977e2d71c4720b7f2 SHA512 f4ad82e40a68b811abcdb5bc9e3ca5799edede222356d5aec680f6e3f58f60b1851cc9520331c5e155def002dfde1c5861622af55f2794a9d8c0499499f9fa2a
+EBUILD spirv-tools-2018.2-r1.ebuild 822 BLAKE2B 4a7872b35a711706348ce7d5d9b169715845d0ad194bf6a60baf97a7d6198231b45cfca20536a562a237247020b5d090d23219e056bd4ac6db676a8c86992481 SHA512 6b5b2fc029db2b0b2ec88d7f112ede0681609be1e27ac1e383de8973f84d6739cffaca614391f7841bcb72766a0eaa44f8b45f6bb04633723257094ef0e14dff
+EBUILD spirv-tools-9999.ebuild 825 BLAKE2B 103363a96bb5f105c67dc49f7db53394b6eeaf4126d1224ed2eadf20e23808acea5288f6245dc58aa8fed8fff47c6bdcfd6e610aa0b83501ca65db657e0e668d SHA512 2f088ae880f902c71433f61f52b29747841f6be5b6e708214ed887adab5c7a0d34b399bc6a00d803e3048930cb3fb4b91f38266752adc1973e05a1bfe72968b1
MISC metadata.xml 435 BLAKE2B 907f35e3f59db2ebdf69dde5e9c01e6b4dc3efeea3defcbb81dfe7b84a94518008925b3b24849c150cfe5ea80b166cf3bb93f4851db0a5c647ee27742b68df65 SHA512 7a436d1fb3280e11ab02fdfb76051788f492e03649ae6f88c8cb0b15e4432d10b40c8ee27d5a732cead38b137faf1a9af5713e28c26ea179c4d8c8b18eb59b72
diff --git a/dev-util/spirv-tools/spirv-tools-2018.2.ebuild b/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
index ccda02331582..fa84f40f6b7e 100644
--- a/dev-util/spirv-tools/spirv-tools-2018.2.ebuild
+++ b/dev-util/spirv-tools/spirv-tools-2018.2-r1.ebuild
@@ -18,6 +18,8 @@ DEPEND="dev-util/spirv-headers"
S="${WORKDIR}/SPIRV-Tools-${PV}"
+UPSTREAM_COMMIT="8d8a71278bf9e83dd0fb30d5474386d30870b74d"
+
multilib_src_configure() {
local mycmakeargs=(
"-DSPIRV-Headers_SOURCE_DIR=/usr/"
@@ -25,3 +27,10 @@ multilib_src_configure() {
cmake-utils_src_configure
}
+
+multilib_src_install() {
+ default
+ echo "${UPSTREAM_COMMIT}" > "${PN}-commit.h" || die
+ insinto /usr/include/"${PN}"
+ doins "${PN}-commit.h"
+}
diff --git a/dev-util/spirv-tools/spirv-tools-9999.ebuild b/dev-util/spirv-tools/spirv-tools-9999.ebuild
index e6ecb91d83e6..e0e2f53d0e21 100644
--- a/dev-util/spirv-tools/spirv-tools-9999.ebuild
+++ b/dev-util/spirv-tools/spirv-tools-9999.ebuild
@@ -23,3 +23,12 @@ multilib_src_configure() {
cmake-utils_src_configure
}
+
+multilib_src_install() {
+ default
+
+ # create a header file with the commit hash of the current revision
+ # vulkan-tools needs this to build
+ local revision="$(git-r3_peek_remote_ref)" &> /dev/null
+ echo "${revision}" > "${D}/usr/include/${PN}/${PN}-commit.h" || die
+}