/[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.2 - (hide annotations) (download)
Mon Oct 22 21:44:38 2012 UTC (7 years, 3 months ago) by fauli
Branch: MAIN
Changes since 1.1: +2 -1 lines
still use system's cacert, bug 435246

(Portage version: 2.1.11.9/cvs/Linux i686)

1 fauli 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 fauli 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-12.1.0.ebuild,v 1.1 2012/08/01 22:08:29 fauli Exp $
4 fauli 1.1
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/openmotif-2.3.1:0
56     )
57     amd64? (
58     || (
59     ( >=app-emulation/emul-linux-x86-xlibs-20110129
60     >=app-emulation/emul-linux-x86-motif-20110129 )
61     <app-emulation/emul-linux-x86-xlibs-20110129
62     )
63     >=app-emulation/emul-linux-x86-soundlibs-20110928
64     >=app-emulation/emul-linux-x86-gtklibs-20110928
65     nsplugin? (
66     www-plugins/nspluginwrapper
67     )
68     )"
69     DEPEND=""
70     S="${WORKDIR}/opt/Citrix/ICAClient"
71    
72     pkg_nofetch() {
73     elog "Download the client RPM file ${SRC_URI} from
74     http://www.citrix.com/English/ss/downloads/details.asp?downloadId=2323812&productId=1689163"
75     elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
76     }
77    
78     pkg_setup() {
79     # Binary x86 package
80     has_multilib_profile && ABI="x86"
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 fauli 1.2 rm -rf "${ICAROOT}"/keystore/cacerts
146 fauli 1.1 dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts
147     #insinto "${ICAROOT}"/keystore/cacerts
148     #doins keystore/cacerts/*
149    
150     insinto "${ICAROOT}"/util
151     doins util/pac.js
152    
153     exeinto "${ICAROOT}"/util
154     doexe util/{DeleteCompleteFlashCache.sh,echo_cmd,hdxcheck.sh,icalicense.sh,integrate.sh}
155     doexe util/{nslaunch,pacexec,pnabrowse,sunraymac.sh,what,xcapture}
156    
157     # Citrix receiver 12 has util/gst_{play,read}.{32,64} versions, install both
158     doexe util/gst_{play,read}.{32,64}
159     # Ditto for libgstflatstm.so
160     doexe util/libgstflatstm.{32,64}.so
161    
162     dosym "${ICAROOT}"/util/integrate.sh "${ICAROOT}"/util/disintegrate.sh
163    
164     doenvd "${FILESDIR}"/10ICAClient
165    
166     make_wrapper wfica "${ICAROOT}"/wfica . "${ICAROOT}"
167    
168     # The .desktop file included in the rpm links to /usr/lib, so we
169     # make a new one. The program gives errors and has slowdowns if
170     # the locale is not English, so strip it since it has no
171     # translations anyway
172     doicon icons/*
173     make_wrapper wfcmgr "${ICAROOT}"/wfcmgr . "${ICAROOT}"
174     sed -e 's:^\# Configuration items.*:. "${ICAROOT}"/nls/en/wfcmgr.msg:g' -i "${D}"/"${ICAROOT}"/wfcmgr
175     make_desktop_entry wfcmgr 'Citrix ICA Client' manager
176    
177     dodir /etc/revdep-rebuild/
178     echo "SEARCH_DIRS_MASK="${ICAROOT}"" > "${D}"/etc/revdep-rebuild/70icaclient
179     }

  ViewVC Help
Powered by ViewVC 1.1.20