mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
media-libs/shaderc: Version bump to 2025.2
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
parent
e3ad206324
commit
d9f7ebb8d5
@ -1 +1,2 @@
|
||||
DIST shaderc-2025.1.tar.gz 228284 BLAKE2B c2018b44c9da3744864e6ba86ce147ff5ff931265d4fdd0785b399ad980d86000b5b785be6a859e991e047be994c78259aea253118457a579f3b65f6fc19757d SHA512 3be5ffc10e870e63ac01b68ac27d9bde14d365b0ddd454ca28694198c494be1e4c5c9d3eabace953b2242ef2f66e412318331ca945fef755861dc68c8b439c46
|
||||
DIST shaderc-2025.2.tar.gz 228308 BLAKE2B 85ed096488921d042aa1fce18e0c38abe7de54d681b7ab1d5bd1fd0c179ab1e492c703c3b92f7f03a27378fec903384fcb41d6ac740a09770afd02616504ead2 SHA512 6761372591075944fddd926e9f7c2ea9447496566d2d549f523c6c529c3bd753d459b66d499f76d955bdcfb335016daddbeba49b087f4ecabf37d76a46ac14cd
|
||||
|
||||
81
media-libs/shaderc/shaderc-2025.2.ebuild
Normal file
81
media-libs/shaderc/shaderc-2025.2.ebuild
Normal file
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake-multilib dot-a 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 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-util/glslang-1.4.313.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-util/spirv-tools-1.4.313.0[${MULTILIB_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/spirv-headers-1.4.313.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() {
|
||||
lto-guarantee-fat
|
||||
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
|
||||
strip-lto-bytecode
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user