diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-12-12 12:57:17 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-12-12 12:57:31 +0100 |
commit | ae8ab60b1ad2cc9b521fffa65bf94d242c1d8a9c (patch) | |
tree | 59358869688543c797496360f7c4fca14ab582c7 | |
parent | 78da4d4e35e4e6e3b04ecc330c0265a4311d0b77 (diff) | |
download | gentoo-ae8ab60b1ad2cc9b521fffa65bf94d242c1d8a9c.tar.gz gentoo-ae8ab60b1ad2cc9b521fffa65bf94d242c1d8a9c.tar.xz |
net-misc/icaclient: Revbump to add some more .desktop files.
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r-- | net-misc/icaclient/files/configmgr.desktop | 9 | ||||
-rw-r--r-- | net-misc/icaclient/files/conncenter.desktop | 9 | ||||
-rw-r--r-- | net-misc/icaclient/files/new_store.desktop | 10 | ||||
-rw-r--r-- | net-misc/icaclient/files/selfservice.desktop | 9 | ||||
-rw-r--r-- | net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild | 220 |
5 files changed, 257 insertions, 0 deletions
diff --git a/net-misc/icaclient/files/configmgr.desktop b/net-misc/icaclient/files/configmgr.desktop new file mode 100644 index 00000000000..02188debb7e --- /dev/null +++ b/net-misc/icaclient/files/configmgr.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=Citrix Receiver (configmgr) +Categories=Network; +Icon=/opt/Citrix/ICAClient/icons/manager.png +TryExec=configmgr +Exec=configmgr diff --git a/net-misc/icaclient/files/conncenter.desktop b/net-misc/icaclient/files/conncenter.desktop new file mode 100644 index 00000000000..1c418af224a --- /dev/null +++ b/net-misc/icaclient/files/conncenter.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=Citrix Receiver (conncenter) +Categories=Network; +Icon=/opt/Citrix/ICAClient/icons/manager.png +TryExec=conncenter +Exec=conncenter diff --git a/net-misc/icaclient/files/new_store.desktop b/net-misc/icaclient/files/new_store.desktop new file mode 100644 index 00000000000..9ea426ff6b6 --- /dev/null +++ b/net-misc/icaclient/files/new_store.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=Add Citrix Store +MimeType=application/vnd.citrix.receiver.configure; +Categories=Network; +Icon=/opt/Citrix/ICAClient/icons/manager.png +TryExec=new_store +Exec=new_store %f diff --git a/net-misc/icaclient/files/selfservice.desktop b/net-misc/icaclient/files/selfservice.desktop new file mode 100644 index 00000000000..7c37f223e66 --- /dev/null +++ b/net-misc/icaclient/files/selfservice.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=Citrix Receiver +Categories=Network; +Icon=/opt/Citrix/ICAClient/icons/manager.png +TryExec=selfservice +Exec=selfservice diff --git a/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild b/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild new file mode 100644 index 00000000000..2694d7156b6 --- /dev/null +++ b/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild @@ -0,0 +1,220 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# eutils inherit required for make_wrapper call +inherit desktop eutils multilib 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="nsplugin l10n_de l10n_es l10n_fr l10n_ja l10n_zh_CN" +RESTRICT="mirror strip userpriv fetch" + +ICAROOT="/opt/Citrix/ICAClient" + +QA_PREBUILT="${ICAROOT#/}/*" + +RDEPEND=" + dev-libs/atk + 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/libcanberra[gtk] + media-libs/libogg + media-libs/libvorbis + media-libs/speex + net-dns/libidn:1.33 + net-libs/libsoup:2.4 + net-misc/curl + sys-libs/e2fsprogs-libs + sys-libs/zlib + virtual/krb5 + virtual/jpeg:0 + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXinerama + x11-libs/libXmu + x11-libs/libXrender + x11-libs/libXt + x11-libs/pango +" +DEPEND="" + +pkg_nofetch() { + elog "Download the client file ${A} from + https://www.citrix.com/downloads/workspace-app/" + elog "and place it in ${DISTDIR:-/usr/portage/distfiles}." +} + +pkg_setup() { + case ${ARCH} in + amd64) + ICAARCH=linuxx64 + ;; + x86) + ICAARCH=linuxx86 + ;; + *) + eerror "Given architecture is not supported by Citrix." + ;; + esac + + S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor" +} + +src_prepare() { + default + rm lib/UIDialogLibWebKit.so || die +} + +src_install() { + local bin tmpl dest + + dodir "${ICAROOT}" + + exeinto "${ICAROOT}" + doexe *.DLL libproxy.so wfica AuthManagerDaemon PrimaryAuthManager selfservice ServiceRecord + + exeinto "${ICAROOT}"/lib + doexe lib/*.so + + if use nsplugin ; then + exeinto "${ICAROOT}" + doexe npica.so + dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so + fi + + for dest in "${ICAROOT}"{,/nls/en{,.UTF-8}} ; do + insinto "${dest}" + doins nls/en.UTF-8/eula.txt + done + + insinto "${ICAROOT}" + doins -r usb + + insinto "${ICAROOT}"/config + doins config/* config/.* nls/en/*.ini + for tmpl in {appsrv,wfclient}.template ; do + newins nls/en/${tmpl} ${tmpl/template/ini} + done + touch "${ED}/${ICAROOT}"/config/.server || die + + insinto "${ICAROOT}"/gtk + doins gtk/* + + insinto "${ICAROOT}"/gtk/glade + doins gtk/glade/* + + insinto "${ICAROOT}"/site + doins -r site/* + + dodir "${ICAROOT}"/help + + insinto "${ICAROOT}"/config/usertemplate + doins config/usertemplate/* + + local lang LANGCODES=( en ) + use l10n_de && LANGCODES+=( de ) + use l10n_es && LANGCODES+=( es ) + use l10n_fr && LANGCODES+=( fr ) + use l10n_ja && LANGCODES+=( ja ) + use l10n_zh_CN && LANGCODES+=( zh_CN ) + + for lang in ${LANGCODES[@]} ; do + insinto "${ICAROOT}"/nls/${lang} + doins nls/${lang}/* + + insinto "${ICAROOT}"/nls/$lang/UTF-8 + doins nls/${lang}.UTF-8/* + + insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES + doins nls/${lang}/LC_MESSAGES/* + + insinto "${ICAROOT}"/nls/${lang} + dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8 + + for tmpl in {appsrv,wfclient}.template ; do + cp "${ED}/${ICAROOT}"/nls/${lang}/${tmpl} \ + "${ED}/${ICAROOT}"/nls/${lang}/${tmpl/template/ini} \ + || die + done + done + + insinto "${ICAROOT}"/nls + dosym en /opt/Citrix/ICAClient/nls/C + + insinto "${ICAROOT}"/icons + doins icons/* + + insinto "${ICAROOT}"/keyboard + doins keyboard/* + + rm -r "${S}"/keystore/cacerts || die + dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts + + exeinto "${ICAROOT}"/util + doexe util/{configmgr,conncenter,gst_play1.0,gst_read1.0,hdxcheck.sh,icalicense.sh,libgstflatstm1.0.so,webcontainer,ctxwebhelper,ctx_rehash,ctx_app_bind} + doexe util/{lurdump,new_store,nslaunch,pnabrowse,storebrowse,sunraymac.sh,what,xcapture} + + # https://bugs.gentoo.org/655922 + dosym gst_play1.0 "${ICAROOT}"/util/gst_play + dosym gst_read1.0 "${ICAROOT}"/util/gst_read + dosym libgstflatstm1.0.so "${ICAROOT}"/util/libgstflatstm.so + + doenvd "${FILESDIR}"/10ICAClient + + for bin in configmgr conncenter new_store ; do + make_wrapper ${bin} "${ICAROOT}"/util/${bin} . "${ICAROOT}"/util + done + + for bin in selfservice wfica ; do + make_wrapper ${bin} "${ICAROOT}"/${bin} . "${ICAROOT}" + done + + dodir /etc/revdep-rebuild/ + echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" \ + > "${ED}"/etc/revdep-rebuild/70icaclient + + # 651926 + domenu "${FILESDIR}"/*.desktop +} + +pkg_preinst() { + local old_plugin="/usr/lib64/nsbrowser/plugins/npwrapper.npica.so" + if use amd64 && [[ -f ${old_plugin} ]] ; then + local wrapper="/usr/bin/nspluginwrapper" + if [[ -x ${wrapper} ]] ; then + einfo "Removing npica.so from wrapper." + ${wrapper} -r ${old_plugin} + fi + fi +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} |