From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1541132-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 408A615800A
	for <garchives@archives.gentoo.org>; Wed, 26 Jul 2023 03:34:04 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8319EE0932;
	Wed, 26 Jul 2023 03:34:03 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 52F1BE0932
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 03:34: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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 66AAA34156C
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 03:34:02 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 68C42DCC
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 03:33:59 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1690342402.06c5198d42fbc6654124a23df0e0896de7e02f85.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/hdx-realtime-media-engine/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-plugins/hdx-realtime-media-engine/Manifest media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.700.3000.ebuild
X-VCS-Directories: media-plugins/hdx-realtime-media-engine/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 06c5198d42fbc6654124a23df0e0896de7e02f85
X-VCS-Branch: master
Date: Wed, 26 Jul 2023 03:33:59 +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: 593ba3d2-f5b1-4e74-85b0-4d355609835d
X-Archives-Hash: a61a4f23e8de793656894c6a653f8a07

commit:     06c5198d42fbc6654124a23df0e0896de7e02f85
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Mon Jul 17 14:23:52 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 03:33:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c5198d

media-plugins/hdx-realtime-media-engine: bump to version 2.9.700.3000

Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Closes: https://github.com/gentoo/gentoo/pull/31928
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-plugins/hdx-realtime-media-engine/Manifest   |  2 +
 .../hdx-realtime-media-engine-2.9.700.3000.ebuild  | 94 ++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/media-plugins/hdx-realtime-media-engine/Manifest b/media-plugins/hdx-realtime-media-engine/Manifest
index f32274bad84d..752f4dbe007f 100644
--- a/media-plugins/hdx-realtime-media-engine/Manifest
+++ b/media-plugins/hdx-realtime-media-engine/Manifest
@@ -1,2 +1,4 @@
 DIST HDX_RealTime_Media_Engine_2.9.600_for_Linux.zip 30123995 BLAKE2B fbdc61bd46ce655ff223815eb54c582adc98af90aa99284731a841b7aad92446ec2c7630e302b947eab79f70d09a9d1f648c582c48403a0df196a03ff8c4704f SHA512 7195b3d99fc1254a9dd0c09532c595be2f4db85eed4071b61891a6d66d99bc763a3f47f93d907fa0e81646cb9a83a3f818c8b36be0804df29bed3b35f853176c
 DIST HDX_RealTime_Media_Engine_2.9.600_for_Linux_x64.zip 30156876 BLAKE2B 758593a90c421b7d93ba37fc9c219e0cd72ada0ef886560973b404a55ff89791ff429d34543030b382fa8fb595c578804f79f5d72487624382deac60817914dc SHA512 26078eafac9395c00d0ef7f215172259d97e6e929633c3987b9ed78252c6583b7d18136ac193c953b599227e4aef8a65dcf03dd8cf8d3f52ce700ffbd1bc5922
+DIST HDX_RealTime_Media_Engine_2.9.700_for_Linux.zip 30127078 BLAKE2B cb354b22ab10dccf82d32d375bc816cb7dce335127c62aa917128600b7891c1932e41319581ed9ed0d9feb51f2b10f6cf4ea39dba3e5907b5d4e55b6cd2c3864 SHA512 6e957a6c8e3fff4ac8382d67b800ebac8a3a2070198ca33f549ff33b2cc5546d872a3446ab945b9ec9a61694dc6ac928048fb771188dfc05cc031837bc18ceb6
+DIST HDX_RealTime_Media_Engine_2.9.700_for_Linux_x64.zip 30175218 BLAKE2B 64b86f78a87327e324308ff68740f6b676896c5c077e7b4ad31ad6ae90ffb2c7103af5f543c3350c751fad0d4ea25485e0d46e465981c178c542240119193d93 SHA512 634ce4c3b897109add120ee5fc369ccee66fe0890c7a924ec5730a79731a273823fcefde0ce6eea3c4fdc92193facca7c6442f6bbeb01f06a54a405eec0c902e

diff --git a/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.700.3000.ebuild b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.700.3000.ebuild
new file mode 100644
index 000000000000..bdca16afb49a
--- /dev/null
+++ b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.700.3000.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker
+
+MY_PV="$(ver_cut 1-3)"
+
+DESCRIPTION="HDX RealTime Media Engine plugin for Citrix Workspace App"
+HOMEPAGE="https://www.citrix.com/"
+SRC_URI="amd64? ( HDX_RealTime_Media_Engine_${MY_PV}_for_Linux_x64.zip )
+	x86? ( HDX_RealTime_Media_Engine_${MY_PV}_for_Linux.zip )"
+LICENSE="icaclient"
+SLOT="0"
+
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="fetch mirror strip"
+
+BDEPEND="app-arch/unzip"
+RDEPEND="
+	sys-libs/llvm-libunwind
+	|| (
+		media-video/pipewire
+		media-libs/libpulse
+		media-sound/apulse
+	)
+	x11-libs/libX11
+	x11-libs/libXv
+"
+
+ICAROOT="/opt/Citrix/ICAClient"
+QA_PREBUILT="${ICAROOT#/}/*"
+
+REQUIRES_EXCLUDE="
+	libpulse.so.0
+	libsndfile.so.1
+"
+
+S="${WORKDIR}/usr/local/bin"
+
+pkg_nofetch() {
+	elog "Download the client file ${A} from"
+	elog "https://www.citrix.com/downloads/workspace-app/additional-client-software/hdx-realtime-media-engine.html"
+	elog "and place it into your DISTDIR directory."
+}
+
+pkg_setup() {
+	case ${ARCH} in
+		amd64)
+			zip_dir="x86_64"
+			zip_arch="amd64"
+		;;
+		x86)
+			zip_dir="i386"
+			zip_arch="i386"
+		;;
+	esac
+}
+
+src_unpack() {
+	default
+
+	local MY_T="${WORKDIR}/HDX_RealTime_Media_Engine_${MY_PV}_for_Linux$(usex amd64 '_x64' '')"
+	local deb_base_name="citrix-hdx-realtime-media-engine"
+	unpack_deb ${MY_T}/${zip_dir}/${deb_base_name}_$(ver_rs 3 -)_${zip_arch}.deb
+}
+
+src_install() {
+	insinto "${ICAROOT}/rtme"
+
+	# No, we do NOT install such a generic udev rule into the system
+	local destfiles=(
+		DialTone_US.wav
+		EULA.rtf
+		InboundCallRing.wav
+	)
+
+	local el
+	for el in "${destfiles[@]}" ; do
+		doins "${el}"
+	done
+
+	exeinto "${ICAROOT}"/rtme
+	doexe RTMEconfig RTMediaEngineSRV
+
+	for el in /var/{lib,log}/RTMediaEngineSRV /var/lib/Citrix/HDXRMEP ; do
+		keepdir ${el}
+		fperms a+rw ${el}
+	done
+
+	insinto "${ICAROOT}"
+	doins HDXRTME.so
+}