commit:     0d86e137f91a983353ba2371c826d42c541f4746
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  9 15:50:34 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Oct  9 16:18:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d86e137

media-video/libva-utils: Version bump to 2.20.0

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-video/libva-utils/Manifest                  |  1 +
 media-video/libva-utils/libva-utils-2.20.0.ebuild | 91 +++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/media-video/libva-utils/Manifest b/media-video/libva-utils/Manifest
index 82ff3113e1ad..006a833426fd 100644
--- a/media-video/libva-utils/Manifest
+++ b/media-video/libva-utils/Manifest
@@ -1,2 +1,3 @@
 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
+DIST libva-utils-2.20.0.tar.gz 1280967 BLAKE2B 
b4d80eb3301a27b9e9ea31edf77f0f6d0bad8660d350fbc0ce4502a5f09b613b7d71ded94c1ce94697c3d679f9b06c099ebce4bf6c57b0e02f92f14458a12787
 SHA512 
e0edf08f90fc5b360c0123cd77fcb125be289700e62e3d53c92312175e0ee082f3714af3784f4b087de1379bb384c1cfc0f5f881e5a9b31d4806bc3216eacbf0

diff --git a/media-video/libva-utils/libva-utils-2.20.0.ebuild 
b/media-video/libva-utils/libva-utils-2.20.0.ebuild
new file mode 100644
index 000000000000..f2d6709a0a66
--- /dev/null
+++ b/media-video/libva-utils/libva-utils-2.20.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
+}

Reply via email to