diff options
Diffstat (limited to 'dev-util/vulkan-headers/vulkan-headers-0_p20180526.ebuild')
-rw-r--r-- | dev-util/vulkan-headers/vulkan-headers-0_p20180526.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/vulkan-headers/vulkan-headers-0_p20180526.ebuild b/dev-util/vulkan-headers/vulkan-headers-0_p20180526.ebuild new file mode 100644 index 000000000000..531392083dfb --- /dev/null +++ b/dev-util/vulkan-headers/vulkan-headers-0_p20180526.ebuild @@ -0,0 +1,30 @@ +# 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" + +# Old packaging will cause file collisions +RDEPEND="!<=media-libs/vulkan-loader-1.1.70.0-r999" + +src_install() { + mkdir "include/vulkan/registry" || die + mv "registry/" "include/vulkan/" || die + insinto /usr/include/vulkan + doins -r include/vulkan/* +} |