diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-19 04:04:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-19 04:04:36 +0100 |
commit | d895362f98ae63a6ed12cd16d3b3df95d6967f25 (patch) | |
tree | e6c8a50e31dc122b10c6dc3d9eee5d6ec6f002c0 /media-libs/shaderc | |
parent | 483d7c056fba15727fe24545f93627a1d1e1e2eb (diff) |
gentoo auto-resync : 19:10:2024 - 04:04:35
Diffstat (limited to 'media-libs/shaderc')
-rw-r--r-- | media-libs/shaderc/Manifest | 2 | ||||
-rw-r--r-- | media-libs/shaderc/shaderc-2024.3.ebuild | 79 |
2 files changed, 81 insertions, 0 deletions
diff --git a/media-libs/shaderc/Manifest b/media-libs/shaderc/Manifest index f83a5f1078e3..8f92694daa57 100644 --- a/media-libs/shaderc/Manifest +++ b/media-libs/shaderc/Manifest @@ -1,4 +1,6 @@ AUX shaderc-2020.4-fix-build.patch 424 BLAKE2B 6d8760ef64bf9f4d6e291d7b3b37735573b1cf43f510870a43f8169a6ea1909d72c1b3d7c0fb295733c07f6e626d4b148ca2deb384d7aae4554c8da01482b930 SHA512 95cbd65997146c3ba018c81d49f90a7713f99f5bc86b6c30d6c83ca9bb139309df763d325b75c9b1d02ca60ed3bddd003eb08e64e3856867bc15d58c620341ed DIST shaderc-2024.1.tar.gz 227211 BLAKE2B a4c9790cb117e4cf2d528ed294ef0599dc3c17ac367a4f658254ff9e161f82b3338a2d70a033fabcdb7a2925c2f4668ee89cfff0d4b88cd2b22fcfb3f2786ea9 SHA512 017d8625c66da7eb5b431f595b27a4ddf146aaa12ef56777cb8c3f7f0f15eb01c3286e5905c5268de55d07cc19d5ffae4d4c08987d105b0a6be74616a467b736 +DIST shaderc-2024.3.tar.gz 227490 BLAKE2B 0f9df6251b1a107c89a4e509c7a36f4035b5282f11e0b00cb7a1603b3212917894e805337d2404509b839dd9ac40aa19d8aa23bf6666b330dae2cfdabc18c9c6 SHA512 ba990054b3e50bd1c3e7decaca80b80dfade0f15505f6e89c455b7a114b8507931dff2c570ca81fd38882472e7d7014c417ca8f4c1117fc0e6825ea9f669222a EBUILD shaderc-2024.1-r1.ebuild 1902 BLAKE2B 1550d18346f423868f5016cade6320a0dc36021375bbe37655b548d36f577d2091479719a07aeb7a323503e7cdf6b900b99c0ff4fbc662f4c0f401c540492964 SHA512 be70ad1c285716139e7153b7c4e1a5da154334b77b3cc3557f3e93d79d06cb06ae11a96f02dc9c095dcef470410b02bc9378178316dd47b13c32afff53e57a96 +EBUILD shaderc-2024.3.ebuild 1905 BLAKE2B 618b248e575675e4dd9b377e6440a5a25f502bd0ad3aa1ea14f44d55b46e06b5aba8f5a853c65545096251ad900951712c68edee15dcac04519165a944ec4cde SHA512 911ea3a270d2f64ace550182a0c7f8932e1e1d2dfeaa215669e9cba902c9be07d2b5aa8afdca9c3b49cd8eb2bbf76e7234e614b3535114ee4ce9ecf7a325f7e7 MISC metadata.xml 328 BLAKE2B 90488589d89b69a7840eea25c4456ce0d1032d77c99dc6cbafa830d2d274e72b5075b3eaede07ae6b07f699fdbb8d894dd82beee25e5172fdd5171c753619b43 SHA512 ca9eaa48af61542d9110b28954241f98b19a91fe47483cd80ccf7f761302fc23f5455379958d535431292c70dbc27c6347185208245b738bd9bcdbf3ebaeba8b diff --git a/media-libs/shaderc/shaderc-2024.3.ebuild b/media-libs/shaderc/shaderc-2024.3.ebuild new file mode 100644 index 000000000000..90e614d6c010 --- /dev/null +++ b/media-libs/shaderc/shaderc-2024.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake-multilib python-any-r1 + +DESCRIPTION="Collection of tools, libraries and tests for shader compilation" +HOMEPAGE="https://github.com/google/shaderc" +EGIT_COMMIT="${PV}" +SRC_URI="https://github.com/google/${PN}/archive/v${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~loong ~ppc64 ~riscv ~x86" +IUSE="doc" + +RDEPEND=" + >=dev-util/glslang-1.3.296.0:=[${MULTILIB_USEDEP}] + >=dev-util/spirv-tools-1.3.296.0[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + >=dev-util/spirv-headers-1.3.296.0" + +BDEPEND="doc? ( dev-ruby/asciidoctor )" + +PATCHES=( + "${FILESDIR}"/${PN}-2020.4-fix-build.patch +) + +# https://github.com/google/shaderc/issues/470 +RESTRICT=test + +src_prepare() { + cmake_comment_add_subdirectory examples + + # Unbundle glslang, spirv-headers, spirv-tools + cmake_comment_add_subdirectory third_party + sed -i \ + -e "s|\$<TARGET_FILE:spirv-dis>|${EPREFIX}/usr/bin/spirv-dis|" \ + glslc/test/CMakeLists.txt || die + + # Disable git versioning + sed -i -e '/build-version/d' glslc/CMakeLists.txt || die + + # Manually create build-version.inc as we disabled git versioning + cat <<- EOF > glslc/src/build-version.inc || die + "${P}\n" + "$(best_version dev-util/spirv-tools)\n" + "$(best_version dev-util/glslang)\n" + EOF + + cmake_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DSHADERC_SKIP_TESTS="true" + -DSHADERC_ENABLE_WERROR_COMPILE="false" + ) + cmake_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi && use doc; then + cmake_src_compile glslc_doc_README + fi + cmake_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi; then + use doc && local HTML_DOCS=( "${BUILD_DIR}/glslc/README.html" ) + fi + cmake_src_install +} |