From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 80AE7158287 for ; Fri, 16 May 2025 03:16:44 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 6CF2B343851 for ; Fri, 16 May 2025 03:16:44 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8B7341104B8; Fri, 16 May 2025 03:16:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 830C31104B9 for ; Fri, 16 May 2025 03:16:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33D693436A1 for ; Fri, 16 May 2025 03:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C85028B0 for ; Fri, 16 May 2025 03:16:16 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1747365370.d9f7ebb8d5fce322a539503dc0fcc8470092b0a9.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/shaderc/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/shaderc/Manifest media-libs/shaderc/shaderc-2025.2.ebuild X-VCS-Directories: media-libs/shaderc/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: d9f7ebb8d5fce322a539503dc0fcc8470092b0a9 X-VCS-Branch: master Date: Fri, 16 May 2025 03:16:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7b97c0f3-c43c-43ad-b593-e432eeedc28b X-Archives-Hash: d3b5fb4e3bdd71b91414303c3db00798 commit: d9f7ebb8d5fce322a539503dc0fcc8470092b0a9 Author: Matt Turner gentoo org> AuthorDate: Fri May 16 03:10:40 2025 +0000 Commit: Matt Turner gentoo org> CommitDate: Fri May 16 03:16:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f7ebb8 media-libs/shaderc: Version bump to 2025.2 Signed-off-by: Matt Turner gentoo.org> media-libs/shaderc/Manifest | 1 + media-libs/shaderc/shaderc-2025.2.ebuild | 81 ++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/media-libs/shaderc/Manifest b/media-libs/shaderc/Manifest index 02ed93370739..4c7acb7f26d7 100644 --- a/media-libs/shaderc/Manifest +++ b/media-libs/shaderc/Manifest @@ -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 diff --git a/media-libs/shaderc/shaderc-2025.2.ebuild b/media-libs/shaderc/shaderc-2025.2.ebuild new file mode 100644 index 000000000000..b086ad8a1724 --- /dev/null +++ b/media-libs/shaderc/shaderc-2025.2.ebuild @@ -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|\$|${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 +}