/[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.7 - (hide annotations) (download)
Wed Jun 18 20:40:01 2014 UTC (5 years, 8 months ago) by mgorny
Branch: MAIN
Changes since 1.6: +9 -9 lines
Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug #513718.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 mgorny 1.7 # Copyright 1999-2014 Gentoo Foundation
2 fauli 1.1 # Distributed under the terms of the GNU General Public License v2
3 mgorny 1.7 # $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-12.1.0.ebuild,v 1.6 2013/04/21 20:36:03 mgorny 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 ulm 1.3 >=x11-libs/motif-2.3.1:0
56 fauli 1.1 )
57     amd64? (
58 mgorny 1.6 || (
59     (
60 mgorny 1.7 >=x11-libs/libXp-1.0.2[abi_x86_32]
61     >=x11-libs/libXaw-1.0.11-r2[abi_x86_32]
62     >=x11-libs/libX11-1.6.2[abi_x86_32]
63     >=x11-libs/libSM-1.2.1-r1[abi_x86_32]
64     >=x11-libs/libICE-1.0.8-r1[abi_x86_32]
65     >=x11-libs/libXinerama-1.1.3[abi_x86_32]
66 mgorny 1.6 )
67     >=app-emulation/emul-linux-x86-xlibs-20110129
68     )
69 fauli 1.1 || (
70 mgorny 1.7 >=x11-libs/motif-2.3.4-r1:0[abi_x86_32]
71 ulm 1.5 >=app-emulation/emul-linux-x86-motif-20110129
72 fauli 1.1 )
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 fauli 1.4 S="${WORKDIR}${ICAROOT}"
81 fauli 1.1
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 fauli 1.4 rm -rf "${S}"/keystore/cacerts
156 fauli 1.1 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