Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libva-intel-media-driver/
Date: Sat, 30 Oct 2021 21:24:25
Message-Id: 1635628231.a7e2be1faba302a3e02bd9fc8226a22ad79e950c.conikost@gentoo
1 commit: a7e2be1faba302a3e02bd9fc8226a22ad79e950c
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 30 21:10:31 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 30 21:10:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e2be1f
7
8 x11-libs/libva-intel-media-driver: bump to version 21.4.0
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 x11-libs/libva-intel-media-driver/Manifest | 1 +
14 .../libva-intel-media-driver-21.4.0.ebuild | 64 ++++++++++++++++++++++
15 2 files changed, 65 insertions(+)
16
17 diff --git a/x11-libs/libva-intel-media-driver/Manifest b/x11-libs/libva-intel-media-driver/Manifest
18 index 0aa8033099d..42890e41964 100644
19 --- a/x11-libs/libva-intel-media-driver/Manifest
20 +++ b/x11-libs/libva-intel-media-driver/Manifest
21 @@ -8,3 +8,4 @@ DIST intel-media-21.2.3.tar.gz 23025524 BLAKE2B 0652563f8e8494c9fa181822a7af348c
22 DIST intel-media-21.3.2.tar.gz 23069924 BLAKE2B cb7035698bc19eb65f0cf338e7fb0e11a379a27c243566b6f884d63897da10e2ded39523fcc81131f41885508d1413e7960e38cf9cf2d129d7a6a3994fa9b384 SHA512 27a1849ed2f2367e5de63189faa6e14a1a23f6708c45392f661fab819f856bb4a3d0d31754213b084c4f05be3b155b0a80c2f4e330c79879597910f77e3f1597
23 DIST intel-media-21.3.3.tar.gz 23092541 BLAKE2B 083cc368095bbc9cf333953855ad94d7a8d633337b967f4f93d94e3c8e23bbcdadad19c1b1032cafc671ae9a9df9be547498ebe84426ad9d91a9e82557095eb8 SHA512 a9da8a627420c5ea0de9413ce0aeb471f40a0886abd67380ead7ffba32de4abbc1741c47cfcfc73d42b14456090266f4dad8d363c8ad590cef521ef48e42f692
24 DIST intel-media-21.3.5.tar.gz 23110985 BLAKE2B 1dbbc1efa9ae2c8f3b4a34596c71173101f8a43591bf9e07d269a8499b7a57969d9af5c1d4ffb7774a6947947e572b441f871760d3ca695335bfa2976ac2cf6f SHA512 e7836b19050677e81aa34ce5d7cea661ca3b5ac55d73d5aa0bab93f1daba8ee010d84b1c585f62fcec65a4361ef2b7f14ed574858f56b85b4c4d59840ecb6cb6
25 +DIST intel-media-21.4.0.tar.gz 23116624 BLAKE2B d913e379c4990bd0f5a5d07654baeb374d3b4f7adbe607338a96ac6555631560005d6124fb0124bafe5e94107b54acdfd0fbcfdabc820210b453ebb61c828c36 SHA512 e338e645677d90d4c2e91d5096a9002b87cec602ec354283b67e4ee31fcd6a2454918c4e179b86189126d30742ab2814bc8400072fb1d06638c3bc0bf66385e4
26
27 diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0.ebuild
28 new file mode 100644
29 index 00000000000..15ca5a26b62
30 --- /dev/null
31 +++ b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-21.4.0.ebuild
32 @@ -0,0 +1,64 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake
39 +
40 +if [[ ${PV} == *9999 ]] ; then
41 + : ${EGIT_REPO_URI:="https://github.com/intel/media-driver"}
42 + if [[ ${PV%9999} != "" ]] ; then
43 + : ${EGIT_BRANCH:="release/${PV%.9999}"}
44 + fi
45 + inherit git-r3
46 +else
47 + MY_PV="${PV%_pre}"
48 + SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz"
49 + S="${WORKDIR}/media-driver-intel-media-${MY_PV}"
50 + if [[ ${PV} != *_pre* ]] ; then
51 + KEYWORDS="~amd64"
52 + fi
53 +fi
54 +
55 +DESCRIPTION="Intel Media Driver for VAAPI (iHD)"
56 +HOMEPAGE="https://github.com/intel/media-driver"
57 +
58 +LICENSE="MIT BSD"
59 +SLOT="0"
60 +IUSE="+custom-cflags set-as-default test X"
61 +
62 +RESTRICT="!test? ( test )"
63 +
64 +DEPEND=">=media-libs/gmmlib-21.3.1
65 + >=x11-libs/libva-2.13.0[X?]
66 +"
67 +RDEPEND="${DEPEND}"
68 +
69 +PATCHES=(
70 + "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch
71 + "${FILESDIR}"/${PN}-21.2.2_custom_cflags.patch
72 + "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch
73 +)
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DMEDIA_BUILD_FATAL_WARNINGS=OFF
78 + -DMEDIA_RUN_TEST_SUITE=$(usex test)
79 + -DBUILD_TYPE=Release
80 + -DPLATFORM=linux
81 + -DUSE_X11=$(usex X)
82 + -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
83 + -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags)
84 + )
85 +
86 + cmake_src_configure
87 +}
88 +
89 +src_install() {
90 + cmake_src_install
91 +
92 + if use set-as-default ; then
93 + echo 'LIBVA_DRIVER_NAME="iHD"' > "${T}/55libva-intel-media-driver" || die
94 + doenvd "${T}/55libva-intel-media-driver"
95 + fi
96 +}