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/nxclient/nxclient-3.3.0.6.ebuild,v 1.7 2010/05/11 07:08:50 ssuominen Exp $ |
4 |
|
5 |
EAPI=2 |
6 |
inherit eutils versionator |
7 |
|
8 |
MAJOR_PV="$(get_version_component_range 1-3)" |
9 |
FULL_PV="${MAJOR_PV}-$(get_version_component_range 4)" |
10 |
DESCRIPTION="X11/VNC/NXServer client (remote desktops over low-bandwidth links)" |
11 |
HOMEPAGE="http://www.nomachine.com/" |
12 |
SRC_URI="amd64? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxclient-${FULL_PV}.x86_64.tar.gz ) |
13 |
x86? ( http://64.34.161.181/download/${MAJOR_PV}/Linux/nxclient-${FULL_PV}.i386.tar.gz )" |
14 |
LICENSE="nomachine" |
15 |
SLOT="0" |
16 |
KEYWORDS="-* amd64 x86" |
17 |
IUSE="" |
18 |
RESTRICT="strip" |
19 |
|
20 |
DEPEND="" |
21 |
RDEPEND="dev-libs/expat |
22 |
>=dev-libs/openssl-0.9.8e |
23 |
media-libs/audiofile |
24 |
=media-libs/jpeg-6* |
25 |
=media-libs/libpng-1.2* |
26 |
media-libs/freetype |
27 |
media-libs/fontconfig |
28 |
net-print/cups |
29 |
x11-libs/libXft |
30 |
x11-libs/libX11 |
31 |
x11-libs/libXdmcp |
32 |
x11-libs/libXrender |
33 |
x11-libs/libXau |
34 |
x11-libs/libXext |
35 |
sys-libs/zlib |
36 |
!net-misc/nxclient-2xterminalserver" |
37 |
|
38 |
S=${WORKDIR}/NX |
39 |
|
40 |
src_install() |
41 |
{ |
42 |
# we install nxclient into /usr/NX, to make sure it doesn't clash |
43 |
# with libraries installed for FreeNX |
44 |
|
45 |
for x in nxclient nxesd nxkill nxprint nxservice nxssh ; do |
46 |
into /usr/NX |
47 |
dobin bin/$x |
48 |
into /usr |
49 |
make_wrapper $x ./$x /usr/NX/bin /usr/NX/lib || die |
50 |
done |
51 |
|
52 |
dodir /usr/NX/lib |
53 |
cp -P lib/libXcompsh.so* lib/libXcomp.so* "${D}"/usr/NX/lib |
54 |
|
55 |
dodir /usr/NX/share |
56 |
cp -R share "${D}"/usr/NX |
57 |
|
58 |
# Add icons/desktop entries (missing in the tarball) |
59 |
cd share/icons |
60 |
for size in *; do |
61 |
dodir /usr/share/icons/hicolor/${size}/apps |
62 |
for icon in admin desktop icon wizard; do |
63 |
dosym /usr/NX/share/icons/${size}/nxclient-${icon}.png \ |
64 |
/usr/share/icons/hicolor/${size}/apps |
65 |
done |
66 |
done |
67 |
make_desktop_entry "nxclient" "NX Client" nxclient-icon |
68 |
make_desktop_entry "nxclient -admin" "NX Session Administrator" nxclient-admin |
69 |
make_desktop_entry "nxclient -wizard" "NX Connection Wizard" nxclient-wizard |
70 |
} |