From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8155515812E for ; Mon, 12 Jun 2023 01:24:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F1E9E0886; Mon, 12 Jun 2023 01:24:25 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id E8B98E0886 for ; Mon, 12 Jun 2023 01:24:24 +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 D4F4434143A for ; Mon, 12 Jun 2023 01:24:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD3EDA98 for ; Mon, 12 Jun 2023 01:24:20 +0000 (UTC) From: "Nick Sarnie" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nick Sarnie" Message-ID: <1686532907.ed293b7c3e41c4cb664ce68ad074abd045f94fed.sarnex@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-2023.4.ebuild X-VCS-Directories: media-libs/shaderc/ X-VCS-Committer: sarnex X-VCS-Committer-Name: Nick Sarnie X-VCS-Revision: ed293b7c3e41c4cb664ce68ad074abd045f94fed X-VCS-Branch: master Date: Mon, 12 Jun 2023 01:24:20 +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: 7d23d852-6c1d-4743-a325-931ef99b4880 X-Archives-Hash: a0fcd6c6fdf4c0f01b082bbc4de5853d commit: ed293b7c3e41c4cb664ce68ad074abd045f94fed Author: Nick Sarnie gentoo org> AuthorDate: Mon Jun 12 01:16:29 2023 +0000 Commit: Nick Sarnie gentoo org> CommitDate: Mon Jun 12 01:21:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed293b7c media-libs/shaderc: add 2023.4 Signed-off-by: Nick Sarnie gentoo.org> media-libs/shaderc/Manifest | 1 + media-libs/shaderc/shaderc-2023.4.ebuild | 79 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/media-libs/shaderc/Manifest b/media-libs/shaderc/Manifest index 459cb7a6b8a6..d62b610f5046 100644 --- a/media-libs/shaderc/Manifest +++ b/media-libs/shaderc/Manifest @@ -1,3 +1,4 @@ DIST shaderc-2022.3.tar.gz 223478 BLAKE2B 6b00677464a916618f0f204c650a89a3a74fcfd463a4e9476f16f8ff3f1079979da2e42f30dff93ddb1d509cb117c03e50508661f8de892157334ad0e477fd3c SHA512 a0ac3350defb89e39de79eba64a3648d24fd4d764be2df3193cabc1976d4a8f6bd8ebe296b02cc53788c8b74d66e8bcea3fe1266f7ad1c7e0e5a0d70ecb842ee DIST shaderc-2023.2.tar.gz 222452 BLAKE2B e827a4b408fa70142896ca6c957d2569a364ca426a077ef75bd49999057d60c179ca2ba6374d1b73ff12f839b2c0ca94dcae4b466af4c6b2c6c22b11c151b113 SHA512 8d0c05ba766d2e102062233c02850fa42c19ebaac33a6aff31549a3b12c34f5c6e44ce2c368d9bcb28b09ba8bffbf398711ca61890d7745a716d016f17f9fb84 DIST shaderc-2023.3.tar.gz 223292 BLAKE2B a9a29b4cef74b864b87af5700b830d1d193cf2cdb8ae6cafffc50c6130ac6e1bfb0a598ca30ecf1cfa06dd50144bdd421b7541a6fdb2965b8ee029ad749ea0fe SHA512 41e8a931ce47f42964c69c747aae96795d9791787deee411ce2e7053e2f426f1766a5aa42e8400fa9179c9428f11f3283a7b4c1dd20e7969963e6a00443549c1 +DIST shaderc-2023.4.tar.gz 225728 BLAKE2B b033f9d5e8afdf53afb5c3299a2b0496558b25d4fb1b04eab0ab1610377c391084fcb952bf2836bf88078e902e78bd579d46ae8f07aaed42569edbbc21b0d5c9 SHA512 18b7c31eec9408fc038211d4424d5d82414f427a580ec6f412e9e8d6a7e060e4c39d2c223bfbbf4bd167a1575a7bb900591ff834b3356f4024772e0b96993e91 diff --git a/media-libs/shaderc/shaderc-2023.4.ebuild b/media-libs/shaderc/shaderc-2023.4.ebuild new file mode 100644 index 000000000000..4a7ae5104227 --- /dev/null +++ b/media-libs/shaderc/shaderc-2023.4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +inherit cmake-multilib multibuild 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 ~ppc64 ~x86" +IUSE="doc" + +RDEPEND=" + >=dev-util/glslang-1.3.246:=[${MULTILIB_USEDEP}] + >=dev-util/spirv-tools-1.3.246[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + >=dev-util/spirv-headers-1.3.246" + +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() { + 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 +}