1 |
commit: f3c85fdc6f49d7509f68d17a1d080c6322c6702c |
2 |
Author: Karlson2k (Evgeny Grin) <k2k <AT> narod <DOT> ru> |
3 |
AuthorDate: Sun Jun 27 12:27:49 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 29 04:12:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3c85fdc |
7 |
|
8 |
media-video/libva-utils: bump to v2.12.0 |
9 |
|
10 |
Signed-off-by: Karlson2k (Evgeny Grin) <k2k <AT> narod.ru> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/21422 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-video/libva-utils/Manifest | 1 + |
15 |
media-video/libva-utils/libva-utils-2.12.0.ebuild | 96 +++++++++++++++++++++++ |
16 |
2 files changed, 97 insertions(+) |
17 |
|
18 |
diff --git a/media-video/libva-utils/Manifest b/media-video/libva-utils/Manifest |
19 |
index b30341b260b..151036320da 100644 |
20 |
--- a/media-video/libva-utils/Manifest |
21 |
+++ b/media-video/libva-utils/Manifest |
22 |
@@ -1,5 +1,6 @@ |
23 |
DIST libva-utils-2.10.0.tar.gz 1203536 BLAKE2B c7b51e07618204c55e992f57dd2d80b289d2edd7b4f526c3afaaec1081f5497ac86614e097bc14a1e79d380ca2c529359d02cee601502e292ca8f89073d5fdbb SHA512 2d44c5e3f52ff4ce8bfb206af95c4d790b6d31ec21f899f0ec9604391359f55de06c63b446e19cd8f0ea0c36ccb4ac7cc5ae7fe68361eb263c01454682d18402 |
24 |
DIST libva-utils-2.11.1.tar.gz 1205472 BLAKE2B 251a318d10eb5907e0ee54f101a153cfe76a98d61fc1f4fabf890901b52e980439d77acfbb4e1b566d361a7cda5c7ab504e575067eb932b0e121904be34b801f SHA512 d64c4767269a810386e02426fce3bde6aa693ac899ace22900e4ae4918dfe461736fe0a031db36751281d5bd78960354cdfa4ca13c5f7c30cc67d05abdd0bcd2 |
25 |
+DIST libva-utils-2.12.0.tar.gz 1213135 BLAKE2B 259ed063e178adc22aa9d69d92715420dd82f25c8b85ce946e13539d96723ee80d406052e4f7a646721f3d4ee4743ffea816c6916f4a5fd6aeeabf9bce1e6671 SHA512 38ef214fa8cb67b5252915e134333fab46d911cc4c9884576013083023e782bccf045ec01534024e901de1143f1ae85f52cdf6e6fe087cb9f3bf727c206d9746 |
26 |
DIST libva-utils-2.4.0.tar.bz2 1030271 BLAKE2B b57947f9bd63f34b27a403484ae6b66e750f854dd87c8448afb3d361581d83b20a5ffd8d7e22c9dbf5fae6f7ff3fd62d70cc248b29a862066ff10928629e4d11 SHA512 c5c674179ed589968fd296a7e33dd57a3476c237d8e15258938b364051d501e156c22b41b98fe59d6bc36805495a934dee602ec9e9bb5350c72aa65d3d300ff6 |
27 |
DIST libva-utils-2.8.0.tar.bz2 1037112 BLAKE2B 9168d7d489e1574d970e9e3a270946de522a4063b80c4cafe38cc6917b99deb6394570592d3ed29a0ff7b92f819b9bbc9eb2a8f3b70077625a2714f70ee1959e SHA512 b3412349234ad2923953296674926ee7cb33c43ce17df8942f751789f0208064a4557ca16e1a5878a4e1b35e5bbbd415a9c9f182ffb24e589ac4757e990576b5 |
28 |
DIST libva-utils-2.8.0.tar.gz 1198057 BLAKE2B 7c3332fcd2f4631cb2f77d0775e7f542b8ffbbb77aac0fb0629fb2474563320dbbefa546999fc7c991e8081e82a2c48b1406a34d2f075c80fca391088d779fcc SHA512 2102c5bc2b9b1caa99852892b2b7c1f5db7846283781cec84fe9683ac245ea366120096c1032a2c8b36a7c5fc8e4cd68e3939b0a2712a15f453c33560217585d |
29 |
|
30 |
diff --git a/media-video/libva-utils/libva-utils-2.12.0.ebuild b/media-video/libva-utils/libva-utils-2.12.0.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..a363b5cb385 |
33 |
--- /dev/null |
34 |
+++ b/media-video/libva-utils/libva-utils-2.12.0.ebuild |
35 |
@@ -0,0 +1,96 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit autotools |
42 |
+ |
43 |
+DESCRIPTION="Collection of utilities and tests for VA-API" |
44 |
+HOMEPAGE="https://01.org/linuxmedia/vaapi" |
45 |
+if [[ ${PV} = *9999 ]] ; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://github.com/intel/libva-utils" |
48 |
+else |
49 |
+ # Tarball with pre-built 'configure' not always available, portage use tarballs |
50 |
+ # without pre-built 'configure' as they are always avaialbe upstream. |
51 |
+ # SRC_URI="https://github.com/intel/libva-utils/releases/download/${PV}/${P}.tar.bz2" |
52 |
+ SRC_URI="https://github.com/intel/libva-utils/archive/${PV}.tar.gz -> ${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+IUSE="+drm examples putsurface test test-va-api +vainfo wayland X" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+REQUIRED_USE=" |
62 |
+ || ( drm wayland X ) |
63 |
+ putsurface? ( || ( wayland X ) ) |
64 |
+ || ( examples putsurface test-va-api vainfo ) |
65 |
+" |
66 |
+ |
67 |
+BDEPEND="virtual/pkgconfig" |
68 |
+ |
69 |
+if [[ ${PV} = *9999 ]] ; then |
70 |
+ DEPEND="~x11-libs/libva-${PV}:=[drm?,wayland?,X?]" |
71 |
+else |
72 |
+ DEPEND=">=x11-libs/libva-$(ver_cut 1-2).0:=[drm?,wayland?,X?]" |
73 |
+fi |
74 |
+ |
75 |
+DEPEND+=" |
76 |
+ wayland? ( >=dev-libs/wayland-1.0.6 ) |
77 |
+ X? ( >=x11-libs/libX11-1.6.2 ) |
78 |
+" |
79 |
+RDEPEND="${DEPEND}" |
80 |
+ |
81 |
+PATCHES=( "${FILESDIR}/${PN}-2.10.0_test_in_sandbox.patch" ) |
82 |
+ |
83 |
+# CONTRIBUTING.md and README.md are avaialbe only in .tar.gz tarballs and in git |
84 |
+DOCS=( NEWS CONTRIBUTING.md README.md ) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ |
89 |
+ sed -e 's/-Werror//' -i test/Makefile.am || die |
90 |
+ |
91 |
+ if ! use examples ; then |
92 |
+ sed -E -e '/^SUBDIRS \+?=/s!( decode\>| encode\>| videoprocess\>| vendor/intel\>| vendor/intel/sfcsample\>)!!g' -i Makefile.am || die |
93 |
+ fi |
94 |
+ |
95 |
+ if ! use putsurface ; then |
96 |
+ sed -E -e '/^SUBDIRS \+?=/s! putsurface\>!!g' -i Makefile.am || die |
97 |
+ fi |
98 |
+ |
99 |
+ if ! use vainfo ; then |
100 |
+ sed -E -e '/^SUBDIRS \+?=/s! vainfo\>!!g' -i Makefile.am || die |
101 |
+ fi |
102 |
+ |
103 |
+ eautoreconf |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local myeconfargs=( |
108 |
+ $(use_enable drm) |
109 |
+ $(use_enable test tests) |
110 |
+ $(use_enable wayland) |
111 |
+ $(use_enable X x11) |
112 |
+ ) |
113 |
+ |
114 |
+ if use test || use test-va-api ; then |
115 |
+ myeconfargs+=( --enable-tests ) |
116 |
+ else |
117 |
+ myeconfargs+=( --disable-tests ) |
118 |
+ fi |
119 |
+ |
120 |
+ econf "${myeconfargs[@]}" |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ default |
125 |
+ |
126 |
+ if ! use test-va-api ; then |
127 |
+ if [[ -e "${ED}"/usr/bin/test_va_api ]] ; then |
128 |
+ rm -f "${ED}"/usr/bin/test_va_api || die |
129 |
+ fi |
130 |
+ fi |
131 |
+} |