summaryrefslogtreecommitdiff
blob: 639396330c56c001b77b40ded1794551f3836c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..11} )

inherit python-any-r1

COMMIT="e6b89494142eec0ac6061f82a947d2f1246d3d7a"
DESCRIPTION="Simple framework for writing Vulkan layers"
HOMEPAGE="https://github.com/Joshua-Ashton/vkroots"
SRC_URI="https://github.com/Joshua-Ashton/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="Apache-2.0 MIT LGPL-2.1"
SLOT="0"

BDEPEND="
	${PYTHON_DEPS}
	dev-util/vulkan-headers
"

S="${WORKDIR}/${PN}-${COMMIT}"

src_compile() {
	"${PYTHON}" ./gen/make_vkroots --xml "${BROOT}"/usr/share/vulkan/registry/vk.xml || die
}

src_install() {
	default
	insinto /usr/include/${PN}
	doins ${PN}.h meson.build
}