From 68b0afea5d7cf758f1b2d39763b65396a8c65f78 Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Mon, 2 Jan 2023 20:54:35 +0100 Subject: net-misc/icaclient: fix broken BDEPEND and add error handling When one wants to use "hdx" that does not really work as expected due to a typo. Also include the missing "|| die"s that have been pointed out in a previous review. Signed-off-by: Henning Schild Closes: https://github.com/gentoo/gentoo/pull/28940 Signed-off-by: Sam James --- net-misc/icaclient/icaclient-22.12.0.12-r1.ebuild | 276 ++++++++++++++++++++++ net-misc/icaclient/icaclient-22.12.0.12.ebuild | 276 ---------------------- 2 files changed, 276 insertions(+), 276 deletions(-) create mode 100644 net-misc/icaclient/icaclient-22.12.0.12-r1.ebuild delete mode 100644 net-misc/icaclient/icaclient-22.12.0.12.ebuild (limited to 'net-misc/icaclient') diff --git a/net-misc/icaclient/icaclient-22.12.0.12-r1.ebuild b/net-misc/icaclient/icaclient-22.12.0.12-r1.ebuild new file mode 100644 index 000000000000..c29d64d2492d --- /dev/null +++ b/net-misc/icaclient/icaclient-22.12.0.12-r1.ebuild @@ -0,0 +1,276 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper xdg-utils + +DESCRIPTION="ICA Client for Citrix Presentation servers" +HOMEPAGE="https://www.citrix.com/" +SRC_URI="amd64? ( linuxx64-${PV}.tar.gz ) + x86? ( linuxx86-${PV}.tar.gz )" + +LICENSE="icaclient" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="l10n_de l10n_es l10n_fr l10n_ja l10n_zh-CN hdx" +RESTRICT="mirror strip fetch" + +ICAROOT="/opt/Citrix/ICAClient" + +QA_PREBUILT="${ICAROOT#/}/*" + +# we have binaries for two conflicting kerberos implementations +# https://bugs.gentoo.org/792090 +# https://bugs.gentoo.org/775995 +REQUIRES_EXCLUDE=" + libgssapi.so.3 + libgssapi_krb5.so.2 libkrb5.so.3 +" +# when using media-plugins/hdx-realtime-media-engine we better not ignore that +REQUIRES_EXCLUDE="${REQUIRES_EXCLUDE} + !hdx? ( libunwind.so.1 ) +" +# we have binaries which wouls still support gstreamer:0.10 +REQUIRES_EXCLUDE="${REQUIRES_EXCLUDE} + libgstapp-0.10.so.0 + libgstbase-0.10.so.0 + libgstinterfaces-0.10.so.0 + libgstpbutils-0.10.so.0 + libgstreamer-0.10.so.0 +" + +BDEPEND=" + hdx? ( >=media-plugins/hdx-realtime-media-engine-2.9.500.2802-r1 ) +" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret + dev-libs/glib:2 + dev-libs/libxml2 + media-fonts/font-adobe-100dpi + media-fonts/font-misc-misc + media-fonts/font-cursor-misc + media-fonts/font-xfree86-type1 + media-fonts/font-misc-ethiopic + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/gst-plugins-base:1.0 + media-libs/gstreamer:1.0 + media-libs/libogg + media-libs/libpulse + media-libs/libvorbis + media-libs/mesa + media-libs/speex + net-libs/libsoup:2.4 + net-libs/webkit-gtk:4 + sys-apps/util-linux + sys-libs/libcxx + sys-libs/libcxxabi + sys-libs/zlib + virtual/krb5 + virtual/libudev + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXinerama + x11-libs/libXmu + x11-libs/libXrender + x11-libs/libXt + x11-libs/pango + ${BDEPEND} + !hdx? ( ! "${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/icaclient-22.12.0.12.ebuild b/net-misc/icaclient/icaclient-22.12.0.12.ebuild deleted file mode 100644 index 399b2a4f22b1..000000000000 --- a/net-misc/icaclient/icaclient-22.12.0.12.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop wrapper xdg-utils - -DESCRIPTION="ICA Client for Citrix Presentation servers" -HOMEPAGE="https://www.citrix.com/" -SRC_URI="amd64? ( linuxx64-${PV}.tar.gz ) - x86? ( linuxx86-${PV}.tar.gz )" - -LICENSE="icaclient" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="l10n_de l10n_es l10n_fr l10n_ja l10n_zh-CN hdx" -RESTRICT="mirror strip fetch" - -ICAROOT="/opt/Citrix/ICAClient" - -QA_PREBUILT="${ICAROOT#/}/*" - -# we have binaries for two conflicting kerberos implementations -# https://bugs.gentoo.org/792090 -# https://bugs.gentoo.org/775995 -REQUIRES_EXCLUDE=" - libgssapi.so.3 - libgssapi_krb5.so.2 libkrb5.so.3 -" -# when using media-plugins/hdx-realtime-media-engine we better not ignore that -REQUIRES_EXCLUDE="${REQUIRES_EXCLUDE} - !hdx? ( libunwind.so.1 ) -" -# we have binaries which wouls still support gstreamer:0.10 -REQUIRES_EXCLUDE="${REQUIRES_EXCLUDE} - libgstapp-0.10.so.0 - libgstbase-0.10.so.0 - libgstinterfaces-0.10.so.0 - libgstpbutils-0.10.so.0 - libgstreamer-0.10.so.0 -" - -BEPEND=" - hdx? ( >=media-plugins/hdx-realtime-media-engine-2.9.500.2802-r1 ) -" - -RDEPEND=" - >=app-accessibility/at-spi2-core-2.46.0:2 - app-crypt/libsecret - dev-libs/glib:2 - dev-libs/libxml2 - media-fonts/font-adobe-100dpi - media-fonts/font-misc-misc - media-fonts/font-cursor-misc - media-fonts/font-xfree86-type1 - media-fonts/font-misc-ethiopic - media-libs/alsa-lib - media-libs/fontconfig - media-libs/freetype - media-libs/gst-plugins-base:1.0 - media-libs/gstreamer:1.0 - media-libs/libogg - media-libs/libpulse - media-libs/libvorbis - media-libs/mesa - media-libs/speex - net-libs/libsoup:2.4 - net-libs/webkit-gtk:4 - sys-apps/util-linux - sys-libs/libcxx - sys-libs/libcxxabi - sys-libs/zlib - virtual/krb5 - virtual/libudev - x11-libs/cairo - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:2 - x11-libs/gtk+:3 - x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXcomposite - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXinerama - x11-libs/libXmu - x11-libs/libXrender - x11-libs/libXt - x11-libs/pango - ${BDEPEND} - !hdx? ( ! "${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 -} -- cgit v1.2.3-65-gdbad