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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Oct 12 10:23:24 2010 UTC (9 years, 3 months ago) by fauli
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
clean up
(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.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="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     www-plugins/nspluginwrapper
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     doins *.DLL npica.so libctxssl.so libproxy.so nls/en/eula.txt
69    
70     insinto /opt/ICAClient/config
71     doins config/* config/.* nls/en/*.ini
72    
73     insinto /opt/ICAClient/config/usertemplate
74     doins config/usertemplate/*
75    
76     insinto /opt/ICAClient/nls
77     dosym en /opt/ICAClient/nls/C
78    
79     insinto /opt/ICAClient/nls/en
80     doins nls/en/*
81    
82     insinto /opt/ICAClient/nls/en/UTF-8
83     doins nls/en/UTF-8/*
84    
85     if use linguas_de; then
86     insinto /opt/ICAClient/nls/de
87     doins nls/de/*
88    
89     insinto /opt/ICAClient/nls/de/UTF-8
90     doins nls/de/UTF-8/*
91     fi
92     if use linguas_ja; then
93     insinto /opt/ICAClient/nls/ja
94     doins nls/ja/*
95    
96     insinto /opt/ICAClient/nls/ja/UTF-8
97     doins nls/ja/UTF-8/*
98     fi
99    
100     insinto /opt/ICAClient/icons
101     doins icons/*
102    
103     insinto /opt/ICAClient/keyboard
104     doins keyboard/*
105    
106     insinto /opt/ICAClient/keystore/cacerts
107     doins keystore/cacerts/*
108    
109     insinto /opt/ICAClient/util
110     doins util/{echo_cmd,gst_play,icalicense.sh,integrate.sh,libgstflatstm.so,nslaunch,pacexec,pac.js,sunraymac.sh,what,xcapture}
111     dosym /opt/ICAClient/util/integrate.sh /opt/ICAClient/util/disintegrate.sh
112    
113     doenvd "${FILESDIR}"/10ICAClient
114    
115     dosym /opt/ICAClient/npica.so /usr/$(get_libdir)/nsbrowser/plugins/npica.so
116    
117     # wfica has libxcb locking bugs, so provide a wrapper. It needs to be in
118     # /opt/ICAClient to ensure it gets called, so rename wfica to wfica.bin.
119     sed -e "/^ICAROOT.*$/d" -i wfica.sh || die
120     exeinto /opt/ICAClient
121     doexe wfcmgr.bin wfica_assoc.sh wfica.sh util/wfcmgr
122     newexe wfica wfica.bin
123     make_wrapper wfica 'env LC_ALL="" LANG="" LIBXCB_ALLOW_SLOPPY_LOCK=1 /opt/ICAClient/wfica.bin' . /opt/ICAClient /opt/ICAClient
124    
125     # The .desktop file included in the rpm links to /usr/lib, so we
126     # make a new one. The program gives errors and has slowdowns if
127     # the locale is not English, so strip it since it has no
128     # translations anyway
129     doicon icons/*
130     make_wrapper wfcmgr /opt/ICAClient/wfcmgr . /opt/ICAClient
131     sed -e 's:^\# Configuration items.*:. /opt/ICAClient/nls/en/wfcmgr.msg:g' -i "${D}"/opt/ICAClient/wfcmgr
132     make_desktop_entry wfcmgr 'Citrix ICA Client' manager
133    
134     dodir /etc/revdep-rebuild/
135     echo "SEARCH_DIRS_MASK=/opt/ICAClient" > "${D}"/etc/revdep-rebuild/70icaclient
136     }

  ViewVC Help
Powered by ViewVC 1.1.20