/[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.9 - (show annotations) (download)
Fri Apr 3 21:48:08 2015 UTC (4 years, 8 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +29 -17 lines
Add missing dependencies and clean up emul packages, bug 523150

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0B08240A96F66571)

1 # Copyright 1999-2015 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.8 2014/10/15 15:38:38 pacho Exp $
4
5 EAPI=5
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="
43 x11-terms/xterm
44 media-fonts/font-adobe-100dpi
45 media-fonts/font-misc-misc
46 media-fonts/font-cursor-misc
47 media-fonts/font-xfree86-type1
48 media-fonts/font-misc-ethiopic
49 amd64? ( nsplugin? ( www-plugins/nspluginwrapper ) )
50 >=app-crypt/mit-krb5-1.12.1-r2[abi_x86_32(-)]
51 >=dev-libs/atk-2.10.0[abi_x86_32(-)]
52 >=dev-libs/glib-2.38.2-r1:2[abi_x86_32(-)]
53 >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
54 >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)]
55 >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)]
56 >=media-libs/libogg-1.3.0[abi_x86_32(-)]
57 >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
58 >=media-libs/speex-1.2_rc1-r1[abi_x86_32(-)]
59 >=virtual/ffmpeg-9-r1[abi_x86_32(-)]
60 >=x11-libs/cairo-1.12.14-r4[abi_x86_32(-)]
61 >=x11-libs/gdk-pixbuf-2.30.7:2[abi_x86_32(-)]
62 >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
63 >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
64 >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
65 >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
66 >=x11-libs/libXaw-1.0.11-r2[abi_x86_32(-)]
67 >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
68 >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
69 >=x11-libs/libXmu-1.1.1-r1[abi_x86_32(-)]
70 >=x11-libs/libXp-1.0.2[abi_x86_32(-)]
71 >=x11-libs/libXpm-3.5.10-r1[abi_x86_32(-)]
72 >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
73 >=x11-libs/libXt-1.1.4[abi_x86_32(-)]
74 >=x11-libs/motif-2.3.4-r1:0[abi_x86_32(-)]
75 >=x11-libs/pango-1.36.3[abi_x86_32(-)]
76 media-libs/flac[abi_x86_32(-)]
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