/[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.8 - (hide annotations) (download)
Wed Oct 15 15:38:38 2014 UTC (5 years, 4 months ago) by pacho
Branch: MAIN
Changes since 1.7: +20 -32 lines
Support multilib providers for deps. Bump to EAPI=5.

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

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 pacho 1.8 # $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-12.1.0.ebuild,v 1.7 2014/06/18 20:40:01 mgorny Exp $
4 fauli 1.1
5 pacho 1.8 EAPI=5
6 fauli 1.1
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 pacho 1.8 RDEPEND="
43     x11-terms/xterm
44 fauli 1.1 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 pacho 1.8 amd64? ( nsplugin? ( www-plugins/nspluginwrapper ) )
50     || (
51     (
52     >=x11-libs/libXp-1.0.2[abi_x86_32(-)]
53     >=x11-libs/libXaw-1.0.11-r2[abi_x86_32(-)]
54     >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
55     >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
56     >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
57     >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
58     >=x11-libs/motif-2.3.4-r1:0[abi_x86_32(-)]
59 mgorny 1.6 )
60 pacho 1.8 amd64? (
61     app-emulation/emul-linux-x86-motif[-abi_x86_32(-)]
62     app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
63 fauli 1.1 )
64 pacho 1.8 )
65     "
66    
67 fauli 1.1 DEPEND=""
68 fauli 1.4 S="${WORKDIR}${ICAROOT}"
69 fauli 1.1
70     pkg_nofetch() {
71     elog "Download the client RPM file ${SRC_URI} from
72     http://www.citrix.com/English/ss/downloads/details.asp?downloadId=2323812&productId=1689163"
73     elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
74     }
75    
76     pkg_setup() {
77     # Binary x86 package
78     has_multilib_profile && ABI="x86"
79     }
80    
81     src_install() {
82     dodir "${ICAROOT}"
83    
84     exeinto "${ICAROOT}"
85     doexe *.DLL libctxssl.so libproxy.so FlashContainer.bin wfica wfcmgr.bin util/wfcmgr
86    
87     exeinto "${ICAROOT}"/lib
88     doexe lib/*.so
89    
90     insinto "${ICAROOT}"
91     if use nsplugin
92     then
93     doins npica.so
94     dosym "${ICAROOT}"/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
95     fi
96    
97     doins nls/en/eula.txt
98    
99     insinto "${ICAROOT}"/config
100     doins config/* config/.* nls/en/*.ini
101    
102     insinto "${ICAROOT}"/gtk
103     doins gtk/*
104    
105     insinto "${ICAROOT}"/gtk/glade
106     doins gtk/glade/*
107    
108     dodir "${ICAROOT}"/help
109    
110     insinto "${ICAROOT}"/config/usertemplate
111     doins config/usertemplate/*
112    
113     LANGCODES="en"
114     use linguas_de && LANGCODES="${LANGCODES} de"
115     use linguas_ja && LANGCODES="${LANGCODES} ja"
116    
117     for lang in ${LANGCODES}; do
118     insinto "${ICAROOT}"/nls/${lang}
119     doins nls/${lang}/*
120    
121     insinto "${ICAROOT}"/nls/$lang/UTF-8
122     doins nls/${lang}/UTF-8/*
123    
124     insinto "${ICAROOT}"/nls/${lang}/LC_MESSAGES
125     doins nls/${lang}/LC_MESSAGES/*
126    
127     insinto "${ICAROOT}"/nls/${lang}
128     dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8
129    
130     # We don't have 'more' anymore on the system - use 'less' instead
131     sed -e 's:MORE_CMD=more:MORE_CMD=less:g' -i "${D}"/"${ICAROOT}"/nls/${lang}/wfcmgr.msg
132     done
133    
134     insinto "${ICAROOT}"/nls
135     dosym en /opt/Citrix/ICAClient/nls/C
136    
137     insinto "${ICAROOT}"/icons
138     doins icons/*
139    
140     insinto "${ICAROOT}"/keyboard
141     doins keyboard/*
142    
143 fauli 1.4 rm -rf "${S}"/keystore/cacerts
144 fauli 1.1 dosym /etc/ssl/certs "${ICAROOT}"/keystore/cacerts
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