/[gentoo-x86]/net-misc/icaclient/icaclient-12.1.0.ebuild
Gentoo

Contents of /net-misc/icaclient/icaclient-12.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Apr 21 20:36:03 2013 UTC (6 years, 9 months ago) by mgorny
Branch: MAIN
Changes since 1.5: +12 -2 lines
Support multilib libraries alternatively to emul-linux-x86-xlibs.

(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-12.1.0.ebuild,v 1.5 2013/03/16 11:49:28 ulm Exp $
4
5 EAPI=4
6
7 inherit multilib eutils rpm
8
9 DESCRIPTION="ICA Client for Citrix Presentation servers"
10 HOMEPAGE="http://www.citrix.com/"
11 # NB: the amd64 package contains 32bit code only
12 SRC_URI="x86? ( ICAClient-12.1.0-0.i386.rpm )
13 amd64? ( ICAClient_12.1.0-0.x86_64.rpm )"
14
15 LICENSE="icaclient"
16 SLOT="0"
17 KEYWORDS="-* ~amd64 ~x86"
18 IUSE="nsplugin linguas_de linguas_ja"
19 RESTRICT="mirror strip userpriv fetch"
20
21 ICAROOT="/opt/Citrix/ICAClient"
22
23 QA_TEXTRELS="opt/Citrix/ICAClient/VDSCARD.DLL
24 opt/Citrix/ICAClient/TW1.DLL
25 opt/Citrix/ICAClient/NDS.DLL
26 opt/Citrix/ICAClient/CHARICONV.DLL
27 opt/Citrix/ICAClient/PDCRYPT1.DLL
28 opt/Citrix/ICAClient/VDCM.DLL
29 opt/Citrix/ICAClient/libctxssl.so
30 opt/Citrix/ICAClient/PDCRYPT2.DLL
31 opt/Citrix/ICAClient/npica.so
32 opt/Citrix/ICAClient/VDSPMIKE.DLL
33 opt/Citrix/ICAClient/VDFLASH2.DLL
34 opt/Citrix/ICAClient/lib/libavutil.so
35 opt/Citrix/ICAClient/lib/libavcodec.so
36 opt/Citrix/ICAClient/lib/libavformat.so
37 opt/Citrix/ICAClient/lib/libswscale.so"
38
39 QA_EXECSTACK="opt/Citrix/ICAClient/wfica
40 opt/Citrix/ICAClient/libctxssl.so"
41
42 RDEPEND="x11-terms/xterm
43 media-fonts/font-adobe-100dpi
44 media-fonts/font-misc-misc
45 media-fonts/font-cursor-misc
46 media-fonts/font-xfree86-type1
47 media-fonts/font-misc-ethiopic
48 x86? (
49 x11-libs/libXp
50 x11-libs/libXaw
51 x11-libs/libX11
52 x11-libs/libSM
53 x11-libs/libICE
54 x11-libs/libXinerama
55 >=x11-libs/motif-2.3.1:0
56 )
57 amd64? (
58 || (
59 (
60 x11-libs/libXp[abi_x86_32]
61 x11-libs/libXaw[abi_x86_32]
62 x11-libs/libX11[abi_x86_32]
63 x11-libs/libSM[abi_x86_32]
64 x11-libs/libICE[abi_x86_32]
65 x11-libs/libXinerama[abi_x86_32]
66 )
67 >=app-emulation/emul-linux-x86-xlibs-20110129
68 )
69 || (
70 >=x11-libs/motif-2.3.4:0[abi_x86_32]
71 >=app-emulation/emul-linux-x86-motif-20110129
72 )
73 >=app-emulation/emul-linux-x86-soundlibs-20110928
74 >=app-emulation/emul-linux-x86-gtklibs-20110928
75 nsplugin? (
76 www-plugins/nspluginwrapper
77 )
78 )"
79 DEPEND=""
80 S="${WORKDIR}${ICAROOT}"
81
82 pkg_nofetch() {
83 elog "Download the client RPM file ${SRC_URI} from
84 http://www.citrix.com/English/ss/downloads/details.asp?downloadId=2323812&productId=1689163"
85 elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
86 }
87
88 pkg_setup() {
89 # Binary x86 package
90 has_multilib_profile && ABI="x86"
91 }
92
93 src_install() {
94 dodir "${ICAROOT}"
95
96 exeinto "${ICAROOT}"
97 doexe *.DLL libctxssl.so libproxy.so FlashContainer.bin wfica wfcmgr.bin util/wfcmgr
98
99 exeinto "${ICAROOT}"/lib
100 doexe lib/*.so
101
102 insinto "${ICAROOT}"
103 if use nsplugin
104 then
105 doins npica.so
106 dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
107 fi
108
109 doins nls/en/eula.txt
110
111 insinto "${ICAROOT}"/config
112 doins config/* config/.* nls/en/*.ini
113
114 insinto "${ICAROOT}"/gtk
115 doins gtk/*
116
117 insinto "${ICAROOT}"/gtk/glade
118 doins gtk/glade/*
119
120 dodir "${ICAROOT}"/help
121
122 insinto "${ICAROOT}"/config/usertemplate
123 doins config/usertemplate/*
124
125 LANGCODES="en"
126 use linguas_de && LANGCODES="${LANGCODES} de"
127 use linguas_ja && LANGCODES="${LANGCODES} ja"
128
129 for lang in ${LANGCODES}; do
130 insinto "${ICAROOT}"/nls/${lang}
131 doins nls/${lang}/*
132
133 insinto "${ICAROOT}"/nls/$lang/UTF-8
134 doins nls/${lang}/UTF-8/*
135
136 insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES
137 doins nls/${lang}/LC_MESSAGES/*
138
139 insinto "${ICAROOT}"/nls/${lang}
140 dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8
141
142 # We don't have 'more' anymore on the system - use 'less' instead
143 sed -e 's:MORE_CMD=more:MORE_CMD=less:g' -i "${D}"/"${ICAROOT}"/nls/${lang}/wfcmgr.msg
144 done
145
146 insinto "${ICAROOT}"/nls
147 dosym en /opt/Citrix/ICAClient/nls/C
148
149 insinto "${ICAROOT}"/icons
150 doins icons/*
151
152 insinto "${ICAROOT}"/keyboard
153 doins keyboard/*
154
155 rm -rf "${S}"/keystore/cacerts
156 dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts
157 #insinto "${ICAROOT}"/keystore/cacerts
158 #doins keystore/cacerts/*
159
160 insinto "${ICAROOT}"/util
161 doins util/pac.js
162
163 exeinto "${ICAROOT}"/util
164 doexe util/{DeleteCompleteFlashCache.sh,echo_cmd,hdxcheck.sh,icalicense.sh,integrate.sh}
165 doexe util/{nslaunch,pacexec,pnabrowse,sunraymac.sh,what,xcapture}
166
167 # Citrix receiver 12 has util/gst_{play,read}.{32,64} versions, install both
168 doexe util/gst_{play,read}.{32,64}
169 # Ditto for libgstflatstm.so
170 doexe util/libgstflatstm.{32,64}.so
171
172 dosym "${ICAROOT}"/util/integrate.sh "${ICAROOT}"/util/disintegrate.sh
173
174 doenvd "${FILESDIR}"/10ICAClient
175
176 make_wrapper wfica "${ICAROOT}"/wfica . "${ICAROOT}"
177
178 # The .desktop file included in the rpm links to /usr/lib, so we
179 # make a new one. The program gives errors and has slowdowns if
180 # the locale is not English, so strip it since it has no
181 # translations anyway
182 doicon icons/*
183 make_wrapper wfcmgr "${ICAROOT}"/wfcmgr . "${ICAROOT}"
184 sed -e 's:^\# Configuration items.*:. "${ICAROOT}"/nls/en/wfcmgr.msg:g' -i "${D}"/"${ICAROOT}"/wfcmgr
185 make_desktop_entry wfcmgr 'Citrix ICA Client' manager
186
187 dodir /etc/revdep-rebuild/
188 echo "SEARCH_DIRS_MASK="${ICAROOT}"" > "${D}"/etc/revdep-rebuild/70icaclient
189 }

  ViewVC Help
Powered by ViewVC 1.1.20