/[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.3 - (hide annotations) (download)
Tue Oct 12 10:25:30 2010 UTC (9 years, 4 months ago) by fauli
Branch: MAIN
Changes since 1.2: +2 -1 lines
add dependency on x11-libs/libXinerama for x86 as reported in bug 338401 by Ryan Harris <rh1 AT comcast DOT net>
(Portage version: 2.1.8.3/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20