1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxclient/nxclient-1.5.0-r4.ebuild,v 1.3 2006/08/23 12:45:51 caleb Exp $ |
4 |
|
5 |
inherit rpm |
6 |
|
7 |
DESCRIPTION="NXClient is a X11/VNC/NXServer client especially tuned for using remote desktops over low-bandwidth links such as the Internet" |
8 |
HOMEPAGE="http://www.nomachine.com" |
9 |
|
10 |
IUSE="xft" |
11 |
LICENSE="as-is" |
12 |
SLOT="0" |
13 |
KEYWORDS="-alpha ~amd64 -mips -ppc -sparc ~x86" |
14 |
RESTRICT="nostrip" |
15 |
|
16 |
SRC_URI="!xft? ( http://web04.nomachine.com/download/1.5.0/client/${P}-141.i386.rpm ) |
17 |
xft? ( http://svn.gnqs.org/svn/gentoo-nx-overlay/downloads/${PN}-xft-${PV}-141.i386.rpm )" |
18 |
|
19 |
DEPEND=" |
20 |
|| ( ~net-misc/nxssh-1.5.0 |
21 |
~net-misc/nxserver-personal-1.5.0 |
22 |
~net-misc/nxserver-business-1.5.0 |
23 |
~net-misc/nxserver-enterprise-1.5.0 ) |
24 |
~net-misc/nxesd-1.5.0 |
25 |
net-analyzer/gnu-netcat |
26 |
amd64? ( |
27 |
app-emulation/emul-linux-x86-compat |
28 |
>=app-emulation/emul-linux-x86-baselibs-2.1.4 |
29 |
>=app-emulation/emul-linux-x86-xlibs-2.2.1 |
30 |
>=app-emulation/emul-linux-x86-qtlibs-2.1.1 |
31 |
) |
32 |
x86? ( |
33 |
>=dev-libs/expat-1.95.7 |
34 |
>=media-libs/fontconfig-2.2.2 |
35 |
>=media-libs/freetype-2.1.9 |
36 |
=x11-libs/qt-3* |
37 |
sys-libs/lib-compat |
38 |
)" |
39 |
|
40 |
RDEPEND="${DEPEND}" |
41 |
|
42 |
S=${WORKDIR} |
43 |
|
44 |
src_unpack() { |
45 |
rpm_src_unpack |
46 |
} |
47 |
|
48 |
src_install() { |
49 |
cp -dPR usr ${D} |
50 |
|
51 |
# All of the libraries delivered by nxclient are available in our deps. |
52 |
# Additionally a couple of the binaries are better installed as deps. |
53 |
# Remove those now... |
54 |
|
55 |
# delivered by net-misc/nxcomp |
56 |
rm -f ${D}/usr/NX/lib/libXcomp.so* |
57 |
|
58 |
# delivered by net-misc/nxesd |
59 |
rm -f ${D}/usr/NX/bin/nxesd |
60 |
|
61 |
# delivered by net-misc/nxssh |
62 |
rm -f ${D}/usr/NX/bin/nxssh |
63 |
|
64 |
# delivered by other deps (emul-linux-x86-baselibs on amd64) |
65 |
rm -f ${D}/usr/NX/lib/lib{crypto,jpeg,png,z}* |
66 |
|
67 |
# make sure there are no libs left (this is to catch problems when this |
68 |
# package is updated) |
69 |
rmdir ${D}/usr/NX/lib || die "leftover libraries in ${D}/usr/NX/lib" |
70 |
|
71 |
# FIXME: Of the options in the applnk directory, the desktop files in the |
72 |
# "network" directory seem to make the most sense. I have no idea if this |
73 |
# works for KDE or just for Gnome. |
74 |
declare applnk=/usr/NX/share/applnk apps=/usr/share/applications |
75 |
if [[ -d ${D}${applnk} ]]; then |
76 |
dodir ${apps} |
77 |
mv ${D}${applnk}/network/*.desktop ${D}${apps} |
78 |
rm ${D}${apps}/nxclient-help.desktop |
79 |
rm -rf ${D}${applnk} |
80 |
fi |
81 |
} |