From 195d199b71a39b94876fa80569f8df7cb538efe8 Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Thu, 1 Dec 2022 15:40:48 +0100 Subject: [PATCH] net-misc/icaclient: bump to 22.12.0.12 Here we do not just bump the version but also change the way we deal with the shared config file between this ebuild and its plugin media-plugins/hdx-realtime-media-engine. Also we move the rdep to sys-libs/llvm-libunwind to the plugin. And if the user wants hdx support on icaclient they have to set a USE flag. The plugin will not work if icaclient is not built with support for it and the plugin itself contains the tool to enable itself so we turn the dep chain around, the plugin is even a bdep of the application. Closes: https://bugs.gentoo.org/883775 Closes: https://bugs.gentoo.org/881637 Signed-off-by: Henning Schild --- ...altime-media-engine-2.9.500.2802-r1.ebuild | 88 ++++++ net-misc/icaclient/Manifest | 2 + .../icaclient/icaclient-22.12.0.12.ebuild | 276 ++++++++++++++++++ net-misc/icaclient/metadata.xml | 3 + 4 files changed, 369 insertions(+) create mode 100644 media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.500.2802-r1.ebuild create mode 100644 net-misc/icaclient/icaclient-22.12.0.12.ebuild diff --git a/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.500.2802-r1.ebuild b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.500.2802-r1.ebuild new file mode 100644 index 0000000000000..d72d760272ebb --- /dev/null +++ b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.500.2802-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2022 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-sound/pulseaudio + media-sound/apulse + ) + ! "${ED}"/etc/revdep-rebuild/70icaclient + + insinto "${ICAROOT}"/pkginf + newins "${WORKDIR}"/PkgId Ver.core."${ICAARCH}" + + # 651926 + domenu "${FILESDIR}"/*.desktop + + insinto /usr/share/mime/packages + doins desktop/Citrix-mime_types.xml +} + +pkg_preinst() { + # previous versions of the ebuild created that and left it around + # we own it now and avoid conflict warnings with this + rm -f "${ROOT}${ICAROOT}/config/module.ini" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + + if ! use hdx; then + if [ -x "${ROOT}${ICAROOT}"/rtme/RTMEconfig ]; then + ewarn "Starting from 22.12.0.12 you have to set USE=hdx if you want" + ewarn "to use media-plugins/hdx-realtime-media-engine. Which does" + ewarn "not need to be explicitly installed anymore." + fi + fi +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/net-misc/icaclient/metadata.xml b/net-misc/icaclient/metadata.xml index d86008401e213..83d0f6942931e 100644 --- a/net-misc/icaclient/metadata.xml +++ b/net-misc/icaclient/metadata.xml @@ -9,4 +9,7 @@ proxy-maint@gentoo.org Proxy Maintainers + + Install and enable hdx-realtime-media-engine plugin +