Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/icaclient/, net-misc/icaclient/files/
Date: Wed, 12 Dec 2018 11:57:41
Message-Id: 1544615851.ae8ab60b1ad2cc9b521fffa65bf94d242c1d8a9c.polynomial-c@gentoo
1 commit: ae8ab60b1ad2cc9b521fffa65bf94d242c1d8a9c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 12 11:57:17 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 12 11:57:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae8ab60b
7
8 net-misc/icaclient: Revbump to add some more .desktop files.
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/icaclient/files/configmgr.desktop | 9 +
14 net-misc/icaclient/files/conncenter.desktop | 9 +
15 net-misc/icaclient/files/new_store.desktop | 10 +
16 net-misc/icaclient/files/selfservice.desktop | 9 +
17 net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild | 220 ++++++++++++++++++++++
18 5 files changed, 257 insertions(+)
19
20 diff --git a/net-misc/icaclient/files/configmgr.desktop b/net-misc/icaclient/files/configmgr.desktop
21 new file mode 100644
22 index 00000000000..02188debb7e
23 --- /dev/null
24 +++ b/net-misc/icaclient/files/configmgr.desktop
25 @@ -0,0 +1,9 @@
26 +[Desktop Entry]
27 +Encoding=UTF-8
28 +Version=1.0
29 +Type=Application
30 +Name=Citrix Receiver (configmgr)
31 +Categories=Network;
32 +Icon=/opt/Citrix/ICAClient/icons/manager.png
33 +TryExec=configmgr
34 +Exec=configmgr
35
36 diff --git a/net-misc/icaclient/files/conncenter.desktop b/net-misc/icaclient/files/conncenter.desktop
37 new file mode 100644
38 index 00000000000..1c418af224a
39 --- /dev/null
40 +++ b/net-misc/icaclient/files/conncenter.desktop
41 @@ -0,0 +1,9 @@
42 +[Desktop Entry]
43 +Encoding=UTF-8
44 +Version=1.0
45 +Type=Application
46 +Name=Citrix Receiver (conncenter)
47 +Categories=Network;
48 +Icon=/opt/Citrix/ICAClient/icons/manager.png
49 +TryExec=conncenter
50 +Exec=conncenter
51
52 diff --git a/net-misc/icaclient/files/new_store.desktop b/net-misc/icaclient/files/new_store.desktop
53 new file mode 100644
54 index 00000000000..9ea426ff6b6
55 --- /dev/null
56 +++ b/net-misc/icaclient/files/new_store.desktop
57 @@ -0,0 +1,10 @@
58 +[Desktop Entry]
59 +Encoding=UTF-8
60 +Version=1.0
61 +Type=Application
62 +Name=Add Citrix Store
63 +MimeType=application/vnd.citrix.receiver.configure;
64 +Categories=Network;
65 +Icon=/opt/Citrix/ICAClient/icons/manager.png
66 +TryExec=new_store
67 +Exec=new_store %f
68
69 diff --git a/net-misc/icaclient/files/selfservice.desktop b/net-misc/icaclient/files/selfservice.desktop
70 new file mode 100644
71 index 00000000000..7c37f223e66
72 --- /dev/null
73 +++ b/net-misc/icaclient/files/selfservice.desktop
74 @@ -0,0 +1,9 @@
75 +[Desktop Entry]
76 +Encoding=UTF-8
77 +Version=1.0
78 +Type=Application
79 +Name=Citrix Receiver
80 +Categories=Network;
81 +Icon=/opt/Citrix/ICAClient/icons/manager.png
82 +TryExec=selfservice
83 +Exec=selfservice
84
85 diff --git a/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild b/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild
86 new file mode 100644
87 index 00000000000..2694d7156b6
88 --- /dev/null
89 +++ b/net-misc/icaclient/icaclient-18.10.0.11-r1.ebuild
90 @@ -0,0 +1,220 @@
91 +# Copyright 1999-2018 Gentoo Authors
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=7
95 +
96 +# eutils inherit required for make_wrapper call
97 +inherit desktop eutils multilib xdg-utils
98 +
99 +DESCRIPTION="ICA Client for Citrix Presentation servers"
100 +HOMEPAGE="https://www.citrix.com/"
101 +SRC_URI="amd64? ( linuxx64-${PV}.tar.gz )
102 + x86? ( linuxx86-${PV}.tar.gz )"
103 +
104 +LICENSE="icaclient"
105 +SLOT="0"
106 +KEYWORDS="-* ~amd64 ~x86"
107 +IUSE="nsplugin l10n_de l10n_es l10n_fr l10n_ja l10n_zh_CN"
108 +RESTRICT="mirror strip userpriv fetch"
109 +
110 +ICAROOT="/opt/Citrix/ICAClient"
111 +
112 +QA_PREBUILT="${ICAROOT#/}/*"
113 +
114 +RDEPEND="
115 + dev-libs/atk
116 + dev-libs/glib:2
117 + dev-libs/libxml2
118 + media-fonts/font-adobe-100dpi
119 + media-fonts/font-misc-misc
120 + media-fonts/font-cursor-misc
121 + media-fonts/font-xfree86-type1
122 + media-fonts/font-misc-ethiopic
123 + media-libs/alsa-lib
124 + media-libs/fontconfig
125 + media-libs/freetype
126 + media-libs/gst-plugins-base:1.0
127 + media-libs/gstreamer:1.0
128 + media-libs/libcanberra[gtk]
129 + media-libs/libogg
130 + media-libs/libvorbis
131 + media-libs/speex
132 + net-dns/libidn:1.33
133 + net-libs/libsoup:2.4
134 + net-misc/curl
135 + sys-libs/e2fsprogs-libs
136 + sys-libs/zlib
137 + virtual/krb5
138 + virtual/jpeg:0
139 + x11-libs/cairo
140 + x11-libs/gdk-pixbuf:2
141 + x11-libs/gtk+:2
142 + x11-libs/libX11
143 + x11-libs/libXaw
144 + x11-libs/libXext
145 + x11-libs/libXfixes
146 + x11-libs/libXinerama
147 + x11-libs/libXmu
148 + x11-libs/libXrender
149 + x11-libs/libXt
150 + x11-libs/pango
151 +"
152 +DEPEND=""
153 +
154 +pkg_nofetch() {
155 + elog "Download the client file ${A} from
156 + https://www.citrix.com/downloads/workspace-app/"
157 + elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
158 +}
159 +
160 +pkg_setup() {
161 + case ${ARCH} in
162 + amd64)
163 + ICAARCH=linuxx64
164 + ;;
165 + x86)
166 + ICAARCH=linuxx86
167 + ;;
168 + *)
169 + eerror "Given architecture is not supported by Citrix."
170 + ;;
171 + esac
172 +
173 + S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor"
174 +}
175 +
176 +src_prepare() {
177 + default
178 + rm lib/UIDialogLibWebKit.so || die
179 +}
180 +
181 +src_install() {
182 + local bin tmpl dest
183 +
184 + dodir "${ICAROOT}"
185 +
186 + exeinto "${ICAROOT}"
187 + doexe *.DLL libproxy.so wfica AuthManagerDaemon PrimaryAuthManager selfservice ServiceRecord
188 +
189 + exeinto "${ICAROOT}"/lib
190 + doexe lib/*.so
191 +
192 + if use nsplugin ; then
193 + exeinto "${ICAROOT}"
194 + doexe npica.so
195 + dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
196 + fi
197 +
198 + for dest in "${ICAROOT}"{,/nls/en{,.UTF-8}} ; do
199 + insinto "${dest}"
200 + doins nls/en.UTF-8/eula.txt
201 + done
202 +
203 + insinto "${ICAROOT}"
204 + doins -r usb
205 +
206 + insinto "${ICAROOT}"/config
207 + doins config/* config/.* nls/en/*.ini
208 + for tmpl in {appsrv,wfclient}.template ; do
209 + newins nls/en/${tmpl} ${tmpl/template/ini}
210 + done
211 + touch "${ED}/${ICAROOT}"/config/.server || die
212 +
213 + insinto "${ICAROOT}"/gtk
214 + doins gtk/*
215 +
216 + insinto "${ICAROOT}"/gtk/glade
217 + doins gtk/glade/*
218 +
219 + insinto "${ICAROOT}"/site
220 + doins -r site/*
221 +
222 + dodir "${ICAROOT}"/help
223 +
224 + insinto "${ICAROOT}"/config/usertemplate
225 + doins config/usertemplate/*
226 +
227 + local lang LANGCODES=( en )
228 + use l10n_de && LANGCODES+=( de )
229 + use l10n_es && LANGCODES+=( es )
230 + use l10n_fr && LANGCODES+=( fr )
231 + use l10n_ja && LANGCODES+=( ja )
232 + use l10n_zh_CN && LANGCODES+=( zh_CN )
233 +
234 + for lang in ${LANGCODES[@]} ; do
235 + insinto "${ICAROOT}"/nls/${lang}
236 + doins nls/${lang}/*
237 +
238 + insinto "${ICAROOT}"/nls/$lang/UTF-8
239 + doins nls/${lang}.UTF-8/*
240 +
241 + insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES
242 + doins nls/${lang}/LC_MESSAGES/*
243 +
244 + insinto "${ICAROOT}"/nls/${lang}
245 + dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8
246 +
247 + for tmpl in {appsrv,wfclient}.template ; do
248 + cp "${ED}/${ICAROOT}"/nls/${lang}/${tmpl} \
249 + "${ED}/${ICAROOT}"/nls/${lang}/${tmpl/template/ini} \
250 + || die
251 + done
252 + done
253 +
254 + insinto "${ICAROOT}"/nls
255 + dosym en /opt/Citrix/ICAClient/nls/C
256 +
257 + insinto "${ICAROOT}"/icons
258 + doins icons/*
259 +
260 + insinto "${ICAROOT}"/keyboard
261 + doins keyboard/*
262 +
263 + rm -r "${S}"/keystore/cacerts || die
264 + dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts
265 +
266 + exeinto "${ICAROOT}"/util
267 + doexe util/{configmgr,conncenter,gst_play1.0,gst_read1.0,hdxcheck.sh,icalicense.sh,libgstflatstm1.0.so,webcontainer,ctxwebhelper,ctx_rehash,ctx_app_bind}
268 + doexe util/{lurdump,new_store,nslaunch,pnabrowse,storebrowse,sunraymac.sh,what,xcapture}
269 +
270 + # https://bugs.gentoo.org/655922
271 + dosym gst_play1.0 "${ICAROOT}"/util/gst_play
272 + dosym gst_read1.0 "${ICAROOT}"/util/gst_read
273 + dosym libgstflatstm1.0.so "${ICAROOT}"/util/libgstflatstm.so
274 +
275 + doenvd "${FILESDIR}"/10ICAClient
276 +
277 + for bin in configmgr conncenter new_store ; do
278 + make_wrapper ${bin} "${ICAROOT}"/util/${bin} . "${ICAROOT}"/util
279 + done
280 +
281 + for bin in selfservice wfica ; do
282 + make_wrapper ${bin} "${ICAROOT}"/${bin} . "${ICAROOT}"
283 + done
284 +
285 + dodir /etc/revdep-rebuild/
286 + echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" \
287 + > "${ED}"/etc/revdep-rebuild/70icaclient
288 +
289 + # 651926
290 + domenu "${FILESDIR}"/*.desktop
291 +}
292 +
293 +pkg_preinst() {
294 + local old_plugin="/usr/lib64/nsbrowser/plugins/npwrapper.npica.so"
295 + if use amd64 && [[ -f ${old_plugin} ]] ; then
296 + local wrapper="/usr/bin/nspluginwrapper"
297 + if [[ -x ${wrapper} ]] ; then
298 + einfo "Removing npica.so from wrapper."
299 + ${wrapper} -r ${old_plugin}
300 + fi
301 + fi
302 +}
303 +
304 +pkg_postinst() {
305 + xdg_desktop_database_update
306 +}
307 +
308 +pkg_postrm() {
309 + xdg_desktop_database_update
310 +}