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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 27 14:16:42 2014 UTC (5 years, 5 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
NMU: EAPI1 cleanup wrt bug #518776.

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key )

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

  ViewVC Help
Powered by ViewVC 1.1.20