1 |
commit: cbb1fded4b19bcf875388e5c76a0ea68b94003d8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 25 12:28:18 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 25 12:29:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb1fded |
7 |
|
8 |
net-misc/icaclient: Revbump to add changes suggested in bug #580974 |
9 |
|
10 |
Thanks to Mike Lothian <mike <AT> fireburn.co.uk> for the suggested changes. |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
.../icaclient/icaclient-13.3.0.344519-r1.ebuild | 173 +++++++++++++++++++++ |
16 |
1 file changed, 173 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/icaclient/icaclient-13.3.0.344519-r1.ebuild b/net-misc/icaclient/icaclient-13.3.0.344519-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..ef66986 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/icaclient/icaclient-13.3.0.344519-r1.ebuild |
23 |
@@ -0,0 +1,173 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit multilib eutils versionator |
31 |
+ |
32 |
+DESCRIPTION="ICA Client for Citrix Presentation servers" |
33 |
+HOMEPAGE="http://www.citrix.com/" |
34 |
+SRC_URI="amd64? ( linuxx64-${PV}.tar.gz ) |
35 |
+ x86? ( linuxx86-${PV}.tar.gz )" |
36 |
+ |
37 |
+LICENSE="icaclient" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="-* ~amd64 ~x86" |
40 |
+IUSE="nsplugin linguas_de linguas_es linguas_fr linguas_ja linguas_zh_CN" |
41 |
+RESTRICT="mirror strip userpriv fetch" |
42 |
+ |
43 |
+ICAROOT="/opt/Citrix/ICAClient" |
44 |
+ |
45 |
+QA_PREBUILT="${ICAROOT#/}/*" |
46 |
+ |
47 |
+RDEPEND="dev-libs/atk |
48 |
+ dev-libs/glib |
49 |
+ dev-libs/libxml2 |
50 |
+ media-fonts/font-adobe-100dpi |
51 |
+ media-fonts/font-misc-misc |
52 |
+ media-fonts/font-cursor-misc |
53 |
+ media-fonts/font-xfree86-type1 |
54 |
+ media-fonts/font-misc-ethiopic |
55 |
+ media-libs/alsa-lib |
56 |
+ media-libs/fontconfig |
57 |
+ media-libs/freetype |
58 |
+ media-libs/gst-plugins-base:0.10 |
59 |
+ media-libs/gstreamer:0.10 |
60 |
+ media-libs/libcanberra[gtk] |
61 |
+ media-libs/libogg |
62 |
+ media-libs/libpng:1.2 |
63 |
+ media-libs/libvorbis |
64 |
+ media-libs/speex |
65 |
+ net-libs/webkit-gtk:2 |
66 |
+ virtual/krb5 |
67 |
+ x11-libs/cairo |
68 |
+ x11-libs/gdk-pixbuf |
69 |
+ x11-libs/gtk+:2 |
70 |
+ x11-libs/libX11 |
71 |
+ x11-libs/libXaw |
72 |
+ x11-libs/libXext |
73 |
+ x11-libs/libXinerama |
74 |
+ x11-libs/libXmu |
75 |
+ x11-libs/libXrender |
76 |
+ x11-libs/libXt |
77 |
+ x11-libs/pango" |
78 |
+DEPEND="" |
79 |
+ |
80 |
+pkg_nofetch() { |
81 |
+ elog "Download the client file ${A} from |
82 |
+ https://www.citrix.com/downloads/citrix-receiver.html" |
83 |
+ elog "and place it in ${DISTDIR:-/usr/portage/distfiles}." |
84 |
+} |
85 |
+ |
86 |
+src_unpack() { |
87 |
+ default |
88 |
+ |
89 |
+ case ${ARCH} in |
90 |
+ amd64) |
91 |
+ ICAARCH=linuxx64 |
92 |
+ ;; |
93 |
+ x86) |
94 |
+ ICAARCH=linuxx86 |
95 |
+ ;; |
96 |
+ *) |
97 |
+ eerror "Given architecture is not supported by Citrix." |
98 |
+ ;; |
99 |
+ esac |
100 |
+ |
101 |
+ S="${WORKDIR}/${ICAARCH}/${ICAARCH}.cor" |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ dodir "${ICAROOT}" |
106 |
+ |
107 |
+ exeinto "${ICAROOT}" |
108 |
+ doexe *.DLL libctxssl.so libproxy.so wfica AuthManagerDaemon PrimaryAuthManager selfservice ServiceRecord |
109 |
+ |
110 |
+ exeinto "${ICAROOT}"/lib |
111 |
+ doexe lib/*.so |
112 |
+ |
113 |
+ if use nsplugin ; then |
114 |
+ exeinto "${ICAROOT}" |
115 |
+ doexe npica.so |
116 |
+ dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so |
117 |
+ fi |
118 |
+ |
119 |
+ insinto "${ICAROOT}" |
120 |
+ doins nls/en.UTF-8/eula.txt |
121 |
+ |
122 |
+ insinto "${ICAROOT}"/nls/en |
123 |
+ doins nls/en.UTF-8/eula.txt |
124 |
+ |
125 |
+ insinto "${ICAROOT}"/config |
126 |
+ doins config/* config/.* nls/en/*.ini |
127 |
+ |
128 |
+ insinto "${ICAROOT}"/gtk |
129 |
+ doins gtk/* |
130 |
+ |
131 |
+ insinto "${ICAROOT}"/gtk/glade |
132 |
+ doins gtk/glade/* |
133 |
+ |
134 |
+ insinto "${ICAROOT}"/site |
135 |
+ doins -r site/* |
136 |
+ |
137 |
+ dodir "${ICAROOT}"/help |
138 |
+ |
139 |
+ insinto "${ICAROOT}"/config/usertemplate |
140 |
+ doins config/usertemplate/* |
141 |
+ |
142 |
+ LANGCODES="en" |
143 |
+ use linguas_de && LANGCODES+=" de" |
144 |
+ use linguas_es && LANGCODES+=" es" |
145 |
+ use linguas_fr && LANGCODES+=" fr" |
146 |
+ use linguas_ja && LANGCODES+=" ja" |
147 |
+ use linguas_zh_CN && LANGCODES+=" zh_CN" |
148 |
+ |
149 |
+ for lang in ${LANGCODES} ; do |
150 |
+ insinto "${ICAROOT}"/nls/${lang} |
151 |
+ doins nls/${lang}/* |
152 |
+ |
153 |
+ insinto "${ICAROOT}"/nls/$lang/UTF-8 |
154 |
+ doins nls/${lang}.UTF-8/* |
155 |
+ |
156 |
+ insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES |
157 |
+ doins nls/${lang}/LC_MESSAGES/* |
158 |
+ |
159 |
+ insinto "${ICAROOT}"/nls/${lang} |
160 |
+ dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8 |
161 |
+ done |
162 |
+ |
163 |
+ insinto "${ICAROOT}"/nls |
164 |
+ dosym en /opt/Citrix/ICAClient/nls/C |
165 |
+ |
166 |
+ insinto "${ICAROOT}"/icons |
167 |
+ doins icons/* |
168 |
+ |
169 |
+ insinto "${ICAROOT}"/keyboard |
170 |
+ doins keyboard/* |
171 |
+ |
172 |
+ rm -r "${S}"/keystore/cacerts || die |
173 |
+ dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts |
174 |
+ |
175 |
+ exeinto "${ICAROOT}"/util |
176 |
+ doexe util/{configmgr,conncenter,echo_cmd,gst_aud_play,gst_aud_read,gst_play,gst_read,hdxcheck.sh,icalicense.sh,libgstflatstm.so} |
177 |
+ doexe util/{lurdump,new_store,nslaunch,pnabrowse,storebrowse,sunraymac.sh,what,xcapture} |
178 |
+ |
179 |
+ doenvd "${FILESDIR}"/10ICAClient |
180 |
+ |
181 |
+ make_wrapper wfica "${ICAROOT}"/wfica . "${ICAROOT}" |
182 |
+ |
183 |
+ dodir /etc/revdep-rebuild/ |
184 |
+ echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" > "${D}"/etc/revdep-rebuild/70icaclient |
185 |
+} |
186 |
+ |
187 |
+pkg_preinst() { |
188 |
+ local old_plugin="/usr/lib64/nsbrowser/plugins/npwrapper.npica.so" |
189 |
+ if use amd64 && [[ -f ${old_plugin} ]] ; then |
190 |
+ local wrapper="/usr/bin/nspluginwrapper" |
191 |
+ if [[ -x ${wrapper} ]] ; then |
192 |
+ einfo "Removing npica.so from wrapper." |
193 |
+ ${wrapper} -r ${old_plugin} |
194 |
+ fi |
195 |
+ fi |
196 |
+} |