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 680FD15800A for ; Sat, 15 Jul 2023 16:01:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAF5FE0891; Sat, 15 Jul 2023 16:01:35 +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 8C83FE0891 for ; Sat, 15 Jul 2023 16:01:35 +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 85489340CC5 for ; Sat, 15 Jul 2023 16:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3CEAAF8 for ; Sat, 15 Jul 2023 16:01:32 +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: <1689436887.8cc6df5c3c67e74ae7232483b6a318ff5f973b49.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/libva-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/libva-utils/Manifest media-video/libva-utils/libva-utils-2.19.0.ebuild X-VCS-Directories: media-video/libva-utils/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 8cc6df5c3c67e74ae7232483b6a318ff5f973b49 X-VCS-Branch: master Date: Sat, 15 Jul 2023 16:01:32 +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: ecc96302-5b03-4fe2-a3f8-8bb14646202d X-Archives-Hash: 221180bdac6b6b601c00203747b95c0e commit: 8cc6df5c3c67e74ae7232483b6a318ff5f973b49 Author: Matt Turner gentoo org> AuthorDate: Sat Jul 15 15:54:08 2023 +0000 Commit: Matt Turner gentoo org> CommitDate: Sat Jul 15 16:01:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cc6df5c media-video/libva-utils: Version bump to 2.19.0 Signed-off-by: Matt Turner gentoo.org> media-video/libva-utils/Manifest | 1 + media-video/libva-utils/libva-utils-2.19.0.ebuild | 91 +++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/media-video/libva-utils/Manifest b/media-video/libva-utils/Manifest index 93a46b84aa0f..82ff3113e1ad 100644 --- a/media-video/libva-utils/Manifest +++ b/media-video/libva-utils/Manifest @@ -1 +1,2 @@ DIST libva-utils-2.18.2.tar.gz 1279586 BLAKE2B 26ba87ef6973cb9960f9a646da9d6467dceb27ce9527d007e92716b4480d3d21711e23cf37f51236da640f6e6eefb421f167e0f87926e966f2f53a699f4110e5 SHA512 cdbf2d542f2d7a442af017a924dd4835f22e367fab89f08ab2beabc535035ed11cdeb2ce581b178ecdb9fd1545fa8fde57b7bc15c8c591cc9c2b5f9ebf572ee7 +DIST libva-utils-2.19.0.tar.gz 1280543 BLAKE2B dea218b1b0832acab9d4ea71ee0d4b20460ef8dc3d3323b41ead552c6ff5ca3a7b2e6e5873a84dcfe48f4e5ade56ab177b4feb390bed660478483519fe264d5d SHA512 30004680dccbca0d7d9eb32abfc37f595d09293ea7f64fe6dcc7c3b010d754fe21b4e2eef55f54f58014745fd9f389910ebfdc8c9472906dae8967f6f6cedeb8 diff --git a/media-video/libva-utils/libva-utils-2.19.0.ebuild b/media-video/libva-utils/libva-utils-2.19.0.ebuild new file mode 100644 index 000000000000..f2d6709a0a66 --- /dev/null +++ b/media-video/libva-utils/libva-utils-2.19.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Collection of utilities and tests for VA-API" +HOMEPAGE="https://01.org/linuxmedia/vaapi" +if [[ ${PV} = *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/intel/libva-utils" +else + SRC_URI="https://github.com/intel/libva-utils/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="examples putsurface test +vainfo wayland X" +RESTRICT="test" # Tests must be run manually + +REQUIRED_USE=" + putsurface? ( || ( wayland X ) ) + || ( examples putsurface test vainfo ) +" + +DEPEND=" + x11-libs/libdrm + wayland? ( >=dev-libs/wayland-1.0.6 ) + X? ( >=x11-libs/libX11-1.6.2 ) +" +if [[ ${PV} = *9999 ]] ; then + DEPEND+="~media-libs/libva-${PV}:=[wayland?,X?]" +else + DEPEND+=">=media-libs/libva-$(ver_cut 1-2).0:=[wayland?,X?]" +fi +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + local sed_args=() + + if ! use examples ; then + sed_args+=( + -e "/^ subdir('decode')$/d" + -e "/^ subdir('encode')$/d" + -e "/^ subdir('videoprocess')$/d" + -e "/^ subdir('vendor\/intel')$/d" + -e "/^ subdir('vendor\/intel\/sfcsample')$/d" + ) + fi + + if ! use putsurface ; then + sed_args+=(-e "/^ subdir('putsurface')$/d") + fi + + if ! use vainfo ; then + sed_args+=(-e "/^subdir('vainfo')$/d") + fi + + if [[ ${#sed_args[@]} -gt 0 ]] ; then + sed "${sed_args[@]}" -i meson.build || die + fi +} + +src_configure() { + local emesonargs=( + -Ddrm=true + $(meson_use X x11) + $(meson_use wayland) + $(meson_use test tests) + ) + meson_src_configure +} + +src_install() { + meson_src_install + + if ! use test ; then + rm -f "${ED}"/usr/bin/test_va_api || die + fi +} + +pkg_postinst() { + if use test ; then + elog "Tests must be run manually with the test_va_api binary" + fi +}