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 7EA3E15800D for ; Fri, 7 Jul 2023 06:19:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3372E07F0; Fri, 7 Jul 2023 06:19:48 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8759EE07F0 for ; Fri, 7 Jul 2023 06:19:48 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F6E7341106 for ; Fri, 7 Jul 2023 06:19:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 90B6BAC3 for ; Fri, 7 Jul 2023 06:19:45 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1688710756.02014f9adf5d4cfbc33cb2810ec3e1ebc1d70d04.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libplacebo/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libplacebo/Manifest media-libs/libplacebo/libplacebo-6.292.0.ebuild X-VCS-Directories: media-libs/libplacebo/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 02014f9adf5d4cfbc33cb2810ec3e1ebc1d70d04 X-VCS-Branch: master Date: Fri, 7 Jul 2023 06:19:45 +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: ecd5dd85-877a-43eb-9d3a-ce3005641b2e X-Archives-Hash: f2d0d505228d2352ae3958477f8f8639 commit: 02014f9adf5d4cfbc33cb2810ec3e1ebc1d70d04 Author: Ionen Wolkens gentoo org> AuthorDate: Fri Jul 7 06:01:53 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Fri Jul 7 06:19:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02014f9a media-libs/libplacebo: add 6.292.0 Signed-off-by: Ionen Wolkens gentoo.org> media-libs/libplacebo/Manifest | 1 + media-libs/libplacebo/libplacebo-6.292.0.ebuild | 96 +++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest index 08494341626b..d97c529ac8a4 100644 --- a/media-libs/libplacebo/Manifest +++ b/media-libs/libplacebo/Manifest @@ -1,3 +1,4 @@ DIST libplacebo-glad-2.0.4.tar.gz 599932 BLAKE2B 788d2b70222fd09eea02515bdf3cbc147540631bf35fe39f12aa21fdbabf3d229f4234a430217dfaf3363934b8be12dd6a19871049a7b117deb8260ec69f8c67 SHA512 328d0dbe33e69f846d1c54226c6675694404f41e53c4762e6013c7bfe76b0700f0b28f4117a2018a09c9c23ccb6ad94d7b20882fefc2513941a4515686c9b9e7 DIST libplacebo-v5.264.1.tar.gz 725394 BLAKE2B 421de50ef5e2270e3ba32dd85d92d816a374257442b535face6cb8501d565652aae530b86a7d717c9352c6a82ca665ff7d91c2d9768365780cbbe4f48d1d3276 SHA512 305f43b71f078f4113def43c444df667dfbdd2a6a34d3b457b15da0b3499ca97ec9a8acbd151d58c8e1a593ace3d8aa61067b32556c6bae451efbb217d60a731 DIST libplacebo-v6.287.0-rc1.tar.bz2 615586 BLAKE2B 0c3cea0345cd535dcf3220789748840769c42842cb3d86ac0989e6f4ba03002be7bdc0b50ceb24e3b94065582a48cda128d198e6a569cd6d3c7be36e4f81f1f3 SHA512 9c0bc369f2885415f78c0d1b36a758e56acdf3f7ef34c41bd8153f8f643d4e29ff41ba1ca6fd10b39d1daa96dff9d22dd9affc37d599825f9f9b01480530294d +DIST libplacebo-v6.292.0.tar.bz2 623292 BLAKE2B 6ae5c0aaadf88e3e4ba2e4a95d0ac939d7a64ae65bef0c6fd3dbc294e9eb953d3114ab718e1b58476971bf24ec2632e8176bc4346ff59bfe7b24537c833a4f21 SHA512 30a7990e9aee5f18e0517a281017fb69be521390972bdb38c0db09ef83144673b1f59dd4c1f42c3f4ee298544ba032a74c5e672ef028fbbf20e178a059270864 diff --git a/media-libs/libplacebo/libplacebo-6.292.0.ebuild b/media-libs/libplacebo/libplacebo-6.292.0.ebuild new file mode 100644 index 000000000000..98e20244f513 --- /dev/null +++ b/media-libs/libplacebo/libplacebo-6.292.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit meson-multilib python-any-r1 + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git" + inherit git-r3 +else + GLAD_PV=2.0.4 + SRC_URI=" + https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.bz2 + opengl? ( https://github.com/Dav1dde/glad/archive/refs/tags/v${GLAD_PV}.tar.gz -> ${PN}-glad-${GLAD_PV}.tar.gz )" + S="${WORKDIR}/${PN}-v${PV}" + KEYWORDS="~amd64 ~ppc64 ~x86" +fi + +DESCRIPTION="Reusable library for GPU-accelerated image processing primitives" +HOMEPAGE="https://code.videolan.org/videolan/libplacebo/" + +LICENSE="LGPL-2.1+ opengl? ( MIT )" +SLOT="0/$(ver_cut 2 ${PV}.9999)" # soname +IUSE="glslang lcms llvm-libunwind +opengl +shaderc test unwind +vulkan" +RESTRICT="!test? ( test )" +REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" + +# libglvnd is used with dlopen() through glad (inc. egl/gles) +RDEPEND=" + lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] ) + opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP}] ) + shaderc? ( media-libs/shaderc[${MULTILIB_USEDEP}] ) + !shaderc? ( glslang? ( dev-util/glslang:=[${MULTILIB_USEDEP}] ) ) + unwind? ( + llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] ) + !llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] ) + ) + vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )" +# vulkan-headers is required even with USE=-vulkan (bug #882065) +DEPEND=" + ${RDEPEND} + dev-util/vulkan-headers" +BDEPEND=" + $(python_gen_any_dep 'dev-python/jinja[${PYTHON_USEDEP}]') + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-5.229.1-llvm-libunwind.patch + "${FILESDIR}"/${PN}-5.229.1-python-executable.patch +) + +python_check_deps() { + python_has_version "dev-python/jinja[${PYTHON_USEDEP}]" +} + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + local EGIT_SUBMODULES=( $(usev opengl 3rdparty/glad) ) + git-r3_src_unpack + else + default + if use opengl; then + rmdir "${S}"/3rdparty/glad || die + mv glad-${GLAD_PV} "${S}"/3rdparty/glad || die + fi + fi +} + +src_prepare() { + default + + # typically auto-skipped, but may assume usable opengl/vulkan then hang + sed -i "/tests += 'opengl_surfaceless.c'/d" src/opengl/meson.build || die + sed -i "/tests += 'vulkan.c'/d" src/vulkan/meson.build || die +} + +multilib_src_configure() { + local emesonargs=( + -Ddemos=false #851927 + $(meson_use test tests) + $(meson_feature lcms) + -Dlibdovi=disabled # TODO: package libdovi, ask if you need this + $(meson_feature opengl) + $(meson_feature opengl gl-proc-addr) + $(meson_feature shaderc) + $(usex shaderc -Dglslang=disabled $(meson_feature glslang)) + $(meson_feature unwind) + $(meson_feature vulkan) + $(meson_feature vulkan vk-proc-addr) + -Dvulkan-registry="${ESYSROOT}"/usr/share/vulkan/registry/vk.xml + ) + + meson_src_configure +}