diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-18 04:11:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-18 04:11:17 +0100 |
commit | 75b7b7da41881995754ded71c9c029cb1686096d (patch) | |
tree | 02022977f8ef1eed026d9f132e5951721aded5ef /dev-util/spirv-tools/spirv-tools-1.3.246.ebuild | |
parent | 6854913aa1a57839328baafb435b84f9baacae65 (diff) |
gentoo auto-resync : 18:05:2023 - 04:11:16
Diffstat (limited to 'dev-util/spirv-tools/spirv-tools-1.3.246.ebuild')
-rw-r--r-- | dev-util/spirv-tools/spirv-tools-1.3.246.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-util/spirv-tools/spirv-tools-1.3.246.ebuild b/dev-util/spirv-tools/spirv-tools-1.3.246.ebuild new file mode 100644 index 000000000000..9b7c8253a4ff --- /dev/null +++ b/dev-util/spirv-tools/spirv-tools-1.3.246.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=SPIRV-Tools +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="xml(+)" +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + inherit git-r3 +else + EGIT_COMMIT="sdk-${PV}.0" + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}"/${MY_PN}-${EGIT_COMMIT} +fi + +DESCRIPTION="Provides an API and commands for processing SPIR-V modules" +HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools" + +LICENSE="Apache-2.0" +SLOT="0" +# Tests fail upon finding symbols that do not match a regular expression +# in the generated library. Easily hit with non-standard compiler flags +RESTRICT="test" + +DEPEND="~dev-util/spirv-headers-${PV}" +RDEPEND="" +BDEPEND="${PYTHON_DEPS}" + +multilib_src_configure() { + local mycmakeargs=( + -DSPIRV-Headers_SOURCE_DIR="${ESYSROOT}"/usr/ + -DSPIRV_WERROR=OFF + -DSPIRV_TOOLS_BUILD_STATIC=OFF + ) + + cmake_src_configure +} |