From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1627467-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id CE899158064
	for <garchives@archives.gentoo.org>; Fri,  3 May 2024 15:36:04 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6033E2BC017;
	Fri,  3 May 2024 15:36:03 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3F6002BC017
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 15:36:03 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 711B734308F
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 15:36:02 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B154119D9
	for <gentoo-commits@lists.gentoo.org>; Fri,  3 May 2024 15:36:00 +0000 (UTC)
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" <mattst88@gentoo.org>
Message-ID: <1714750402.fda2e8401dbb0440a81403a2d0102272d34a0a27.mattst88@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libva-intel-media-driver/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/libva-intel-media-driver/Manifest media-libs/libva-intel-media-driver/libva-intel-media-driver-24.2.2.ebuild
X-VCS-Directories: media-libs/libva-intel-media-driver/
X-VCS-Committer: mattst88
X-VCS-Committer-Name: Matt Turner
X-VCS-Revision: fda2e8401dbb0440a81403a2d0102272d34a0a27
X-VCS-Branch: master
Date: Fri,  3 May 2024 15:36:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 4b481509-ee1a-4bdf-990b-ce533e01c264
X-Archives-Hash: df730b3eab94bf613273c015276a9ba6

commit:     fda2e8401dbb0440a81403a2d0102272d34a0a27
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 15:33:22 2024 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri May  3 15:33:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fda2e840

media-libs/libva-intel-media-driver: Version bump to 24.2.2

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/libva-intel-media-driver/Manifest       |  1 +
 .../libva-intel-media-driver-24.2.2.ebuild         | 57 ++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/media-libs/libva-intel-media-driver/Manifest b/media-libs/libva-intel-media-driver/Manifest
index d2ce3f8b2a33..da4f083b1cb2 100644
--- a/media-libs/libva-intel-media-driver/Manifest
+++ b/media-libs/libva-intel-media-driver/Manifest
@@ -1,2 +1,3 @@
 DIST intel-media-24.1.5.tar.gz 25834293 BLAKE2B 076731a57c7fbf6776df393c631e8abda7e07679b5babb28a8973b9919ce6522b3bfa92f9a1fcb173714a2c7dedec79a791a8e94d3e1962df072d1b2157692b9 SHA512 9c8121345f23153361f6458b638938896c42542c80efb0490847aa04c873a0726199985318ee6691f240def12d4f18e804971040dc1284b0cd46287756bb61ba
 DIST intel-media-24.2.1.tar.gz 25838267 BLAKE2B 85a0e8416317c846c28c76a70468ba26f388482a4a4348364564df968db22703da112a1908ba371fa0f626d5771bb61cf28cb7ef824fb8a2f756062d99f8731a SHA512 79bbe7d48b14860f6340d57d5cc85d3e7c6d49ff1b95807ece4db3bcaf9d49b2f08ddabe49d9015e7fdf80241030a792dec7dcae00c393463242b69eac7c46b9
+DIST intel-media-24.2.2.tar.gz 25842653 BLAKE2B 0943e7ab47c9782a72b846c4debc233382d04d77e956a71a93c790930dca8b619b59b40a2f530f58db2f9a1b70b1bdbea7e78cf303301ca8311130aa3e59afb1 SHA512 e2d556a57b61a8a0d89e00858406121aac8dd7b44b1291c2f7af90d127d002a1c6acffc8d7d69502e646fe2057fbabd625eec5b3271b784c3c9b1835e23d4bdd

diff --git a/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.2.2.ebuild b/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.2.2.ebuild
new file mode 100644
index 000000000000..91b4623797d9
--- /dev/null
+++ b/media-libs/libva-intel-media-driver/libva-intel-media-driver-24.2.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib flag-o-matic
+
+if [[ ${PV} == *9999 ]] ; then
+	: ${EGIT_REPO_URI:="https://github.com/intel/media-driver"}
+	if [[ ${PV%9999} != "" ]] ; then
+		: ${EGIT_BRANCH:="release/${PV%.9999}"}
+	fi
+	inherit git-r3
+else
+	MY_PV="${PV%_pre}"
+	SRC_URI="https://github.com/intel/media-driver/archive/intel-media-${MY_PV}.tar.gz"
+	S="${WORKDIR}/media-driver-intel-media-${MY_PV}"
+	if [[ ${PV} != *_pre* ]] ; then
+		KEYWORDS="~amd64"
+	fi
+fi
+
+DESCRIPTION="Intel Media Driver for VA-API (iHD)"
+HOMEPAGE="https://github.com/intel/media-driver"
+
+LICENSE="MIT BSD redistributable? ( no-source-code )"
+SLOT="0"
+IUSE="+redistributable test X"
+
+RESTRICT="!test? ( test )"
+
+DEPEND=">=media-libs/gmmlib-22.3.18:=[${MULTILIB_USEDEP}]
+	>=media-libs/libva-2.21.0[X?,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-23.3.4-Remove-unwanted-CFLAGS.patch
+	"${FILESDIR}"/${PN}-23.3.4_testing_in_src_test.patch
+)
+
+multilib_src_configure() {
+	# https://github.com/intel/media-driver/issues/356
+	append-cxxflags -D_FILE_OFFSET_BITS=64
+
+	local mycmakeargs=(
+		-DMEDIA_BUILD_FATAL_WARNINGS=OFF
+		-DMEDIA_RUN_TEST_SUITE=$(usex test)
+		-DBUILD_TYPE=Release
+		-DPLATFORM=linux
+		-DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
+		-DENABLE_NONFREE_KERNELS=$(usex redistributable)
+		-DLATEST_CPP_NEEDED=ON # Seems to be the best option for now
+	)
+	local CMAKE_BUILD_TYPE="Release"
+	cmake_src_configure
+}