summaryrefslogtreecommitdiff
path: root/media-libs/shaderc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-04 21:14:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-04 21:14:48 +0000
commit2997df5d95cb64694ec91d50c93407e92c68e2a8 (patch)
tree4cc7277d0f8e23337b953de5f5b0a374ca2366e5 /media-libs/shaderc
parent0a18aff6704a42e6affa21ec92064d29fc7f8646 (diff)
gentoo auto-resync : 04:02:2023 - 21:14:48
Diffstat (limited to 'media-libs/shaderc')
-rw-r--r--media-libs/shaderc/Manifest2
-rw-r--r--media-libs/shaderc/shaderc-2023.2.ebuild79
2 files changed, 81 insertions, 0 deletions
diff --git a/media-libs/shaderc/Manifest b/media-libs/shaderc/Manifest
index ccc22eb0ef38..02ffc15ab168 100644
--- a/media-libs/shaderc/Manifest
+++ b/media-libs/shaderc/Manifest
@@ -1,6 +1,8 @@
AUX shaderc-2020.4-fix-build.patch 424 BLAKE2B 6d8760ef64bf9f4d6e291d7b3b37735573b1cf43f510870a43f8169a6ea1909d72c1b3d7c0fb295733c07f6e626d4b148ca2deb384d7aae4554c8da01482b930 SHA512 95cbd65997146c3ba018c81d49f90a7713f99f5bc86b6c30d6c83ca9bb139309df763d325b75c9b1d02ca60ed3bddd003eb08e64e3856867bc15d58c620341ed
DIST shaderc-2022.2.tar.gz 223386 BLAKE2B feb18bef51bea72574d784d4992e5b8514b0d1d70fbd9194ad842a361740ed3d66c6c3d2cf6114a0ef77279845ab686d01ad5fcd91cbddcc289cee4e521aec6a SHA512 85962f17d07496ba4cef3ad62dc7fd1967ff628449ceb1fec77336211fddbd2554ea94e5558cfaf2cfe4dcfdf6f56744d905714be7dbb776ba2bcd67e4665039
DIST shaderc-2022.3.tar.gz 223478 BLAKE2B 6b00677464a916618f0f204c650a89a3a74fcfd463a4e9476f16f8ff3f1079979da2e42f30dff93ddb1d509cb117c03e50508661f8de892157334ad0e477fd3c SHA512 a0ac3350defb89e39de79eba64a3648d24fd4d764be2df3193cabc1976d4a8f6bd8ebe296b02cc53788c8b74d66e8bcea3fe1266f7ad1c7e0e5a0d70ecb842ee
+DIST shaderc-2023.2.tar.gz 222452 BLAKE2B e827a4b408fa70142896ca6c957d2569a364ca426a077ef75bd49999057d60c179ca2ba6374d1b73ff12f839b2c0ca94dcae4b466af4c6b2c6c22b11c151b113 SHA512 8d0c05ba766d2e102062233c02850fa42c19ebaac33a6aff31549a3b12c34f5c6e44ce2c368d9bcb28b09ba8bffbf398711ca61890d7745a716d016f17f9fb84
EBUILD shaderc-2022.2-r1.ebuild 1879 BLAKE2B 769d075be73d761b27597e75a9fbdf44e7cf759f34df5b09f51d459609cc0cac76a4ef2bbf432fc6eed7fdf49103ad42907e09d18d3da87c42f58099561f65a6 SHA512 efb73630d0f3c2230277b3ff6f6ad3da4df8b34870026addad4530511736e96c6b4f8b4607a8d1df66b07a58c70433ef3506b0bd57efea463dac6f0d46665aef
EBUILD shaderc-2022.3.ebuild 1881 BLAKE2B 619f051d6cae80d1a1c549feabe842701ed3fcfb068373bd67fbec7cbac61b744fab621231e67bf84fe26578b0a4556e4187e459c77628d40260189d06ebec39 SHA512 d9e685805533630b631507ea3be9fdc8b6b63ada79111bf29963bce54415741dc7c8e9923199bd062b3618dd137a19ae163dc27f3d40908ac867c8c57746a232
+EBUILD shaderc-2023.2.ebuild 1884 BLAKE2B db6161c2d84f61054abf68d128b453a7278c1ef2f8a6f16926bef66ca9c7989a6727e8fc9e12007ab96c631c85af8e84109f4983aeacf7e55a23fbf515efd5f0 SHA512 0352c046bdf5be6a86c2d2d3e3f5a6f60fa15be643ba852b52d310d8402f695018ff85ac5cd825b3ebda7ae4f5a9e6df52812ec379ec95d92b5a770458745474
MISC metadata.xml 336 BLAKE2B 5dbc5d2e5dc2e389582376ea40375fed6b20e766cd59415f8f23fd81af9abac9c07379f341dff21901fc5934920c6534c525452c67aa606783350b84f071c88e SHA512 b72710b6ca796b364037d6c8646b0760688ee06a3854ae74dfff15d902dd7a2d94ba9872c42110e9e8e005ef8cc443b89108553fc11b79c1b5872daeff7b0f70
diff --git a/media-libs/shaderc/shaderc-2023.2.ebuild b/media-libs/shaderc/shaderc-2023.2.ebuild
new file mode 100644
index 000000000000..8f66336f9c0d
--- /dev/null
+++ b/media-libs/shaderc/shaderc-2023.2.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..11} )
+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 ~ppc64 ~x86"
+IUSE="doc"
+
+RDEPEND="
+ >=dev-util/glslang-1.3.239:=[${MULTILIB_USEDEP}]
+ >=dev-util/spirv-tools-1.3.239[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ >=dev-util/spirv-headers-1.3.239"
+
+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
+}