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: Fri, 01 Apr 2022 17:52:01
Message-Id: 1648835511.80e259e652853ac066ac53302ab56794b17f7ec8.mattst88@gentoo
1 commit: 80e259e652853ac066ac53302ab56794b17f7ec8
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 31 21:12:20 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 1 17:51:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e259e6
7
8 x11-libs/libva-intel-media-driver: Version bump to 22.3.1
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11 Closes: https://github.com/gentoo/gentoo/pull/24839
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 x11-libs/libva-intel-media-driver/Manifest | 1 +
15 .../libva-intel-media-driver-22.3.1.ebuild | 55 ++++++++++++++++++++++
16 2 files changed, 56 insertions(+)
17
18 diff --git a/x11-libs/libva-intel-media-driver/Manifest b/x11-libs/libva-intel-media-driver/Manifest
19 index eb6a0e5daa75..7198362d4022 100644
20 --- a/x11-libs/libva-intel-media-driver/Manifest
21 +++ b/x11-libs/libva-intel-media-driver/Manifest
22 @@ -1 +1,2 @@
23 DIST intel-media-22.1.0.tar.gz 26188730 BLAKE2B 7ade4b25d2fe50ed6c3498c37f0fb39ecf7241ba21485c423a4a8769628b78d8134471639aad12bcac79a7d107682e36cb5954227528601eb5253be5ce00acac SHA512 dd444608fd15fc7f05a0d2c9e6e2c8be3a588a1253ac014c045c207d5d59c9d172c89d248e94688078097a224f57025c11e86b9392271cd111bb9dce6d07617e
24 +DIST intel-media-22.3.1.tar.gz 27302226 BLAKE2B 24ac80adcd9a72f9e9b7db4b878715233835f2b69a25d1029538fb87da1fa49ed3c0606478a8b24e198f0c366003ff315e31972c7576e9ff2ecd8419e12ab150 SHA512 286f974a11546f8541429230330c5bd514c5eb372d3278461a132fb236f19908aa544a44010e52981bb942573ab6c2047c8c03471517182e2daf2da87b0eb74f
25
26 diff --git a/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.3.1.ebuild b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.3.1.ebuild
27 new file mode 100644
28 index 000000000000..467f8eb13c6f
29 --- /dev/null
30 +++ b/x11-libs/libva-intel-media-driver/libva-intel-media-driver-22.3.1.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake
38 +
39 +if [[ ${PV} == *9999 ]] ; then
40 + : ${EGIT_REPO_URI:="https://github.com/intel/media-driver"}
41 + if [[ ${PV%9999} != "" ]] ; then
42 + : ${EGIT_BRANCH:="release/${PV%.9999}"}
43 + fi
44 + inherit git-r3
45 +else
46 + MY_PV="${PV%_pre}"
47 + SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz"
48 + S="${WORKDIR}/media-driver-intel-media-${MY_PV}"
49 + if [[ ${PV} != *_pre* ]] ; then
50 + KEYWORDS="~amd64"
51 + fi
52 +fi
53 +
54 +DESCRIPTION="Intel Media Driver for VAAPI (iHD)"
55 +HOMEPAGE="https://github.com/intel/media-driver"
56 +
57 +LICENSE="MIT BSD redistributable? ( no-source-code )"
58 +SLOT="0"
59 +IUSE="+redistributable test X"
60 +
61 +RESTRICT="!test? ( test )"
62 +
63 +DEPEND=">=media-libs/gmmlib-22.0.0:=
64 + >=x11-libs/libva-2.14.0[X?]
65 +"
66 +RDEPEND="${DEPEND}"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-20.2.0_x11_optional.patch
70 + "${FILESDIR}"/${PN}-21.4.2-Remove-unwanted-CFLAGS.patch
71 + "${FILESDIR}"/${PN}-20.4.5_testing_in_src_test.patch
72 +)
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DMEDIA_BUILD_FATAL_WARNINGS=OFF
77 + -DMEDIA_RUN_TEST_SUITE=$(usex test)
78 + -DBUILD_TYPE=Release
79 + -DPLATFORM=linux
80 + -DUSE_X11=$(usex X)
81 + -DENABLE_NONFREE_KERNELS=$(usex redistributable)
82 + -DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
83 + )
84 + local CMAKE_BUILD_TYPE="Release"
85 + cmake_src_configure
86 +}