Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/libva-utils/
Date: Mon, 04 Jul 2022 02:41:15
Message-Id: 1656902429.2f677729bbca4823597cd3f92f07ad5d8e2e2ed6.mattst88@gentoo
1 commit: 2f677729bbca4823597cd3f92f07ad5d8e2e2ed6
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 4 02:14:02 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 4 02:40:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f677729
7
8 media-video/libva-utils: Version bump to 2.15.0
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 media-video/libva-utils/Manifest | 1 +
13 media-video/libva-utils/libva-utils-2.15.0.ebuild | 91 +++++++++++++++++++++++
14 2 files changed, 92 insertions(+)
15
16 diff --git a/media-video/libva-utils/Manifest b/media-video/libva-utils/Manifest
17 index e8953d2e4dc7..a5f74d971097 100644
18 --- a/media-video/libva-utils/Manifest
19 +++ b/media-video/libva-utils/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libva-utils-2.13.0.tar.gz 1230036 BLAKE2B 4e70a13fb9b4362713b6f461a0ee199b8f7e9d9cbac7bc664c11870db92a87873d73306b5777c554830b932a15e726965e1db3591fd1349fb62f068617dd8558 SHA512 81c7c122a4d1bdf8d390a4ea3e0d34499158fb7b7fe0f7aa9d556158895e755139975fd01d73d883897c0a4390612d131b6349febbdf16fa5edcd46a6a82acd2
22 DIST libva-utils-2.14.0.tar.gz 1241072 BLAKE2B 17f1e0badb05e39f3979bde652dfe6832e8bfb2accd99fd6c5d972090cfce630e2a93ad96e5d17bc7bd9c393b12c2a7b066cb60a715c2dbb128dd263c480bcca SHA512 631e9becf5b2f6d083906962c004c9080d2e2b2d98b6003638a31dde8ad4e2549606301b97e88822471e29007232fc470a2116be09dc0c55d3cc2df6a45a7be1
23 +DIST libva-utils-2.15.0.tar.gz 1245559 BLAKE2B 92fe1e7dbd3c953eecb351625213c2b537ad640f61534f3316d3a46070cb3818b4acafbc7a666e24b51d0900cea044074a7a6519f3c4aba6d2a38cf6ed0b2d66 SHA512 90cfa83fb7443fc90558c148c740c9c272796197fba49ff0179af94c40e97c830fc26c534e9a74fa58f597075f9ba68b477aabc784148c14dc09bde07f23cdeb
24
25 diff --git a/media-video/libva-utils/libva-utils-2.15.0.ebuild b/media-video/libva-utils/libva-utils-2.15.0.ebuild
26 new file mode 100644
27 index 000000000000..428cc77cbc2d
28 --- /dev/null
29 +++ b/media-video/libva-utils/libva-utils-2.15.0.ebuild
30 @@ -0,0 +1,91 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit meson
37 +
38 +DESCRIPTION="Collection of utilities and tests for VA-API"
39 +HOMEPAGE="https://01.org/linuxmedia/vaapi"
40 +if [[ ${PV} = *9999 ]] ; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/intel/libva-utils"
43 +else
44 + SRC_URI="https://github.com/intel/libva-utils/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
46 +fi
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +IUSE="examples putsurface test +vainfo wayland X"
51 +RESTRICT="test" # Tests must be run manually
52 +
53 +REQUIRED_USE="
54 + putsurface? ( || ( wayland X ) )
55 + || ( examples putsurface test vainfo )
56 +"
57 +
58 +DEPEND="
59 + x11-libs/libdrm
60 + wayland? ( >=dev-libs/wayland-1.0.6 )
61 + X? ( >=x11-libs/libX11-1.6.2 )
62 +"
63 +if [[ ${PV} = *9999 ]] ; then
64 + DEPEND+="~x11-libs/libva-${PV}:=[drm(+),wayland?,X?]"
65 +else
66 + DEPEND+=">=x11-libs/libva-$(ver_cut 1-2).0:=[drm(+),wayland?,X?]"
67 +fi
68 +RDEPEND="${DEPEND}"
69 +BDEPEND="virtual/pkgconfig"
70 +
71 +src_prepare() {
72 + default
73 +
74 + local sed_args=()
75 +
76 + if ! use examples ; then
77 + sed_args+=(
78 + -e "/^subdir('decode')$/d"
79 + -e "/^subdir('encode')$/d"
80 + -e "/^subdir('videoprocess')$/d"
81 + -e "/^subdir('vendor\/intel')$/d"
82 + -e "/^subdir('vendor\/intel\/sfcsample')$/d"
83 + )
84 + fi
85 +
86 + if ! use putsurface ; then
87 + sed_args+=(-e "/^subdir('putsurface')$/d")
88 + fi
89 +
90 + if ! use vainfo ; then
91 + sed_args+=(-e "/^subdir('vainfo')$/d")
92 + fi
93 +
94 + if [[ ${#sed_args[@]} -gt 0 ]] ; then
95 + sed "${sed_args[@]}" -i meson.build || die
96 + fi
97 +}
98 +
99 +src_configure() {
100 + local emesonargs=(
101 + -Ddrm=true
102 + $(meson_use X x11)
103 + $(meson_use wayland)
104 + $(meson_use test tests)
105 + )
106 + meson_src_configure
107 +}
108 +
109 +src_install() {
110 + meson_src_install
111 +
112 + if ! use test ; then
113 + rm -f "${ED}"/usr/bin/test_va_api || die
114 + fi
115 +}
116 +
117 +pkg_postinst() {
118 + if use test ; then
119 + elog "Tests must be run manually with the test_va_api binary"
120 + fi
121 +}