Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libva-intel-media-driver/
Date: Thu, 29 Sep 2022 16:50:47
Message-Id: 1664470237.f65f4a79170e0507509d75c170c3ec530854e825.mattst88@gentoo
1 commit: f65f4a79170e0507509d75c170c3ec530854e825
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 16:50:19 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 16:50:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65f4a79
7
8 x11-libs/libva-intel-media-driver: Version bump to 22.5.3.1
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 x11-libs/libva-intel-media-driver/Manifest | 1 +
13 .../libva-intel-media-driver-22.5.3.1.ebuild | 54 ++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/x11-libs/libva-intel-media-driver/Manifest b/x11-libs/libva-intel-media-driver/Manifest
17 index 941c53ea5379..03b65dc3d778 100644
18 --- a/x11-libs/libva-intel-media-driver/Manifest
19 +++ b/x11-libs/libva-intel-media-driver/Manifest
20 @@ -1,2 +1,3 @@
21 DIST intel-media-22.4.4.tar.gz 27437439 BLAKE2B 63bee317ff12c34e7a2da9f5dce51ebb21708f8b5b3f3a58618f487e72f7826f0d4afa486bac08c2db8582d8a4774de716b5bb9a3dff93ff4fc266e56d434519 SHA512 e6ed669476e42396df7714732c628aa67d90fc8040c006605b754d70bdb7ecf476c5eb5c849a8647646dd3858c5fd469ba05f5c6b02b36d2211dc4f4cc7fa77f
22 +DIST intel-media-22.5.3.1.tar.gz 27492012 BLAKE2B e300eba764dde8f2d6c07f4768bca253a21ae5f3bcfd829257541fb26c8a997390011a8bfdfab964eafe37fcece5db4826700bccda672ef51b2f62de2ea94d17 SHA512 aab70004aa3bd91ced7b147e4cd4bd662fe0813b2deeaa90e61f4d692d43a302a1e18dad502bbedb5102593f21f9710a56e202f0ba70a58afed139df3bf2bb78
23 DIST intel-media-22.5.3.tar.gz 27488655 BLAKE2B 90d79ac8e7ab8cb97941d37fe81ce4524cef45e49e4b64e57931f00927cb2065c0b6f8b4fff5aba58cb9ea64548337261e37df13a53ba07c8ab81db160990e6e SHA512 987ca85ed95272945fd8c23a388ca68481ff5fdf74737a04659304e58c6d131c00db03ee134fc3549225a9fc33b874632335f1182d1e0c6d90fbc5ea290b486d
24
25 diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.5.3.1.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.5.3.1.ebuild
26 new file mode 100644
27 index 000000000000..afd945b8dab0
28 --- /dev/null
29 +++ b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.5.3.1.ebuild
30 @@ -0,0 +1,54 @@
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 cmake
37 +
38 +if [[ ${PV} == *9999 ]] ; then
39 + : ${EGIT_REPO_URI:="https://github.com/intel/media-driver"}
40 + if [[ ${PV%9999} != "" ]] ; then
41 + : ${EGIT_BRANCH:="release/${PV%.9999}"}
42 + fi
43 + inherit git-r3
44 +else
45 + MY_PV="${PV%_pre}"
46 + SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz"
47 + S="${WORKDIR}/media-driver-intel-media-${MY_PV}"
48 + if [[ ${PV} != *_pre* ]] ; then
49 + KEYWORDS="~amd64"
50 + fi
51 +fi
52 +
53 +DESCRIPTION="Intel Media Driver for VA-API (iHD)"
54 +HOMEPAGE="https://github.com/intel/media-driver"
55 +
56 +LICENSE="MIT BSD redistributable? ( no-source-code )"
57 +SLOT="0"
58 +IUSE="+redistributable test X"
59 +
60 +RESTRICT="!test? ( test )"
61 +
62 +DEPEND=">=media-libs/gmmlib-22.0.0:=
63 + >=x11-libs/libva-2.14.0[X?]
64 +"
65 +RDEPEND="${DEPEND}"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch
69 + "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch
70 +)
71 +
72 +src_configure() {
73 + local mycmakeargs=(
74 + -DMEDIA_BUILD_FATAL_WARNINGS=OFF
75 + -DMEDIA_RUN_TEST_SUITE=$(usex test)
76 + -DBUILD_TYPE=Release
77 + -DPLATFORM=linux
78 + -DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
79 + -DENABLE_NONFREE_KERNELS=$(usex redistributable)
80 + -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
81 + )
82 + local CMAKE_BUILD_TYPE="Release"
83 + cmake_src_configure
84 +}