/[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.2 - (hide annotations) (download)
Sun Oct 10 18:02:16 2010 UTC (9 years, 4 months ago) by ulm
Branch: MAIN
Changes since 1.1: +4 -2 lines
Fix openmotif dependency. Change EAPI to 1.

(Portage version: 2.1.9.14/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20