summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2018-05-26 18:40:21 -0400
committerNick Sarnie <sarnex@gentoo.org>2018-05-26 18:58:21 -0400
commit04df882488ca386d0928759ab1878d15e4d12d46 (patch)
treebb1c50c4c496dad33b31859be432ac71112c1a8e /dev-util/vulkan-headers/vulkan-headers-9999.ebuild
parentnet-vpn/openfortivpn: Version bump 1.7.0 (diff)
downloadgentoo-04df882488ca386d0928759ab1878d15e4d12d46.tar.gz
gentoo-04df882488ca386d0928759ab1878d15e4d12d46.tar.bz2
gentoo-04df882488ca386d0928759ab1878d15e4d12d46.zip
dev-util/vulkan-headers: Initial version
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-util/vulkan-headers/vulkan-headers-9999.ebuild')
-rw-r--r--dev-util/vulkan-headers/vulkan-headers-9999.ebuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-util/vulkan-headers/vulkan-headers-9999.ebuild b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild
new file mode 100644
index 000000000000..6ee6d098e650
--- /dev/null
+++ b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-Headers.git"
+ inherit git-r3
+else
+ EGIT_COMMIT="a901a3edf256c1a1441433e77feac919fb8e5ed6"
+ KEYWORDS="~amd64"
+ SRC_URI="https://github.com/KhronosGroup/Vulkan-Headers/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/Vulkan-Headers-${EGIT_COMMIT}"
+fi
+
+DESCRIPTION="Vulkan Header files and API registry"
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Headers"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+src_install() {
+ mkdir "include/vulkan/registry" || die
+ mv "registry/" "include/vulkan/" || die
+ insinto /usr/include/vulkan
+ doins -r include/vulkan/*
+}