1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7} )
7 inherit cmake-multilib cmake-utils python-any-r1
9 DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
10 HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
11 EGIT_COMMIT="ec12de9131244a076c34ddca2e8d7451288be7e1"
12 SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64 ~ppc64 x86"
17 # Tests fail upon finding symbols that do not match a regular expression
18 # in the generated library. Easily hit with non-standard compiler flags
21 COMMON_DEPEND=">=dev-util/spirv-headers-1.5.1"
22 DEPEND="${COMMON_DEPEND}"
24 BDEPEND="${PYTHON_DEPS}
27 PATCHES=( "${FILESDIR}/${P}-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-files.patch" )
29 S="${WORKDIR}/SPIRV-Tools-${EGIT_COMMIT}"
31 multilib_src_configure() {
33 "-DSPIRV-Headers_SOURCE_DIR=/usr/"
37 cmake-utils_src_configure
40 multilib_src_install() {
41 cmake-utils_src_install
42 echo "${EGIT_COMMIT}" > "${PN}-commit.h" || die
43 insinto /usr/include/"${PN}"
44 doins "${PN}-commit.h"