/[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.1 - (show annotations) (download)
Thu Apr 8 08:18:58 2010 UTC (9 years, 10 months ago) by fauli
Branch: MAIN
Introduce nsplugin USE flag as suggested (with patch) by Peter Gantner <gentoo AT nephros DOT org> in bug 309141
(Portage version: 2.1.7.17/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20