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

Contents of /net-misc/icaclient/icaclient-11.100-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Dec 29 11:49:33 2011 UTC (7 years, 11 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
version bump for bug 389605, lots of thanks to Maciej Grela for providing the ebuild and Alexander Weber for testing

(Portage version: 2.1.10.41/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/icaclient/icaclient-11.100-r1.ebuild,v 1.5 2011/02/05 20:08:33 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-11.100-1.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 QA_TEXTRELS="opt/ICAClient/VDSCARD.DLL
21 opt/ICAClient/TW1.DLL
22 opt/ICAClient/NDS.DLL
23 opt/ICAClient/CHARICONV.DLL
24 opt/ICAClient/PDCRYPT1.DLL
25 opt/ICAClient/VDCM.DLL
26 opt/ICAClient/libctxssl.so
27 opt/ICAClient/PDCRYPT2.DLL
28 opt/ICAClient/npica.so
29 opt/ICAClient/VDSPMIKE.DLL"
30 QA_EXECSTACK="opt/ICAClient/wfica.bin
31 opt/ICAClient/libctxssl.so"
32
33 RDEPEND="x11-terms/xterm
34 media-fonts/font-adobe-100dpi
35 media-fonts/font-misc-misc
36 media-fonts/font-cursor-misc
37 media-fonts/font-xfree86-type1
38 media-fonts/font-misc-ethiopic
39 x86? (
40 x11-libs/libXp
41 x11-libs/libXaw
42 x11-libs/libX11
43 x11-libs/libSM
44 x11-libs/libICE
45 x11-libs/libXinerama
46 >=x11-libs/openmotif-2.3.1:0
47 )
48 amd64? (
49 || (
50 ( >=app-emulation/emul-linux-x86-xlibs-20110129 >=app-emulation/emul-linux-x86-motif-20110129 )
51 <app-emulation/emul-linux-x86-xlibs-20110129
52 )
53 nsplugin? (
54 www-plugins/nspluginwrapper
55 )
56 )"
57 DEPEND=""
58 S="${WORKDIR}/usr/lib/ICAClient"
59
60 pkg_setup() {
61 # Binary x86 package
62 has_multilib_profile && ABI="x86"
63 }
64
65 pkg_nofetch() {
66 elog "Download the client RPM file ${SRC_URI} from http://www.citrix.com/English/SS/downloads/details.asp?downloadID=3323"
67 elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
68 }
69
70 src_install() {
71 dodir /opt/ICAClient
72
73 insinto /opt/ICAClient
74 if use nsplugin
75 then
76 doins npica.so
77 fi
78 doins *.DLL libctxssl.so libproxy.so nls/en/eula.txt
79
80 insinto /opt/ICAClient/config
81 doins config/* config/.* nls/en/*.ini
82
83 insinto /opt/ICAClient/config/usertemplate
84 doins config/usertemplate/*
85
86 insinto /opt/ICAClient/nls
87 dosym en /opt/ICAClient/nls/C
88
89 insinto /opt/ICAClient/nls/en
90 doins nls/en/*
91
92 insinto /opt/ICAClient/nls/en/UTF-8
93 doins nls/en/UTF-8/*
94
95 if use linguas_de; then
96 insinto /opt/ICAClient/nls/de
97 doins nls/de/*
98
99 insinto /opt/ICAClient/nls/de/UTF-8
100 doins nls/de/UTF-8/*
101 fi
102 if use linguas_ja; then
103 insinto /opt/ICAClient/nls/ja
104 doins nls/ja/*
105
106 insinto /opt/ICAClient/nls/ja/UTF-8
107 doins nls/ja/UTF-8/*
108 fi
109
110 insinto /opt/ICAClient/icons
111 doins icons/*
112
113 insinto /opt/ICAClient/keyboard
114 doins keyboard/*
115
116 insinto /opt/ICAClient/keystore/cacerts
117 doins keystore/cacerts/*
118
119 insinto /opt/ICAClient/util
120 doins util/{echo_cmd,gst_play,icalicense.sh,integrate.sh,libgstflatstm.so,nslaunch,pacexec,pac.js,sunraymac.sh,what,xcapture}
121 dosym /opt/ICAClient/util/integrate.sh /opt/ICAClient/util/disintegrate.sh
122
123 doenvd "${FILESDIR}"/10ICAClient
124
125 if use nsplugin
126 then
127 dosym /opt/ICAClient/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
128 fi
129
130 # wfica has libxcb locking bugs, so provide a wrapper. It needs to be in
131 # /opt/ICAClient to ensure it gets called, so rename wfica to wfica.bin.
132 sed -e "/^ICAROOT.*$/d" -i wfica.sh || die
133 exeinto /opt/ICAClient
134 doexe wfcmgr.bin wfica_assoc.sh wfica.sh util/wfcmgr
135 newexe wfica wfica.bin
136 make_wrapper wfica 'env LC_ALL="" LANG="" LIBXCB_ALLOW_SLOPPY_LOCK=1 /opt/ICAClient/wfica.bin' . /opt/ICAClient /opt/ICAClient
137
138 # The .desktop file included in the rpm links to /usr/lib, so we
139 # make a new one. The program gives errors and has slowdowns if
140 # the locale is not English, so strip it since it has no
141 # translations anyway
142 doicon icons/*
143 make_wrapper wfcmgr /opt/ICAClient/wfcmgr . /opt/ICAClient
144 sed -e 's:^\# Configuration items.*:. /opt/ICAClient/nls/en/wfcmgr.msg:g' -i "${D}"/opt/ICAClient/wfcmgr
145 make_desktop_entry wfcmgr 'Citrix ICA Client' manager
146
147 dodir /etc/revdep-rebuild/
148 echo "SEARCH_DIRS_MASK=/opt/ICAClient" > "${D}"/etc/revdep-rebuild/70icaclient
149 }

  ViewVC Help
Powered by ViewVC 1.1.20