| 1 |
# Copyright 1999-2011 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.5.0.7.ebuild,v 1.2 2011/08/20 04:23:28 phajdan.jr 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="cups"
|
| 18 |
RESTRICT="strip"
|
| 19 |
|
| 20 |
DEPEND=""
|
| 21 |
RDEPEND="dev-libs/expat
|
| 22 |
=dev-libs/openssl-0.9.8*
|
| 23 |
media-libs/audiofile
|
| 24 |
=media-libs/jpeg-6*
|
| 25 |
=media-libs/libpng-1.2*
|
| 26 |
media-libs/freetype
|
| 27 |
media-libs/fontconfig
|
| 28 |
cups? ( 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 |
|
| 37 |
S=${WORKDIR}/NX
|
| 38 |
|
| 39 |
src_install()
|
| 40 |
{
|
| 41 |
# we install nxclient into /usr/NX, to make sure it doesn't clash
|
| 42 |
# with libraries installed for FreeNX
|
| 43 |
local binaries="nxclient nxesd nxkill nxservice nxssh"
|
| 44 |
use cups && binaries="$binaries nxprint"
|
| 45 |
|
| 46 |
for x in $binaries; do
|
| 47 |
into /usr/NX
|
| 48 |
dobin bin/$x
|
| 49 |
into /usr
|
| 50 |
make_wrapper $x ./$x /usr/NX/bin /usr/NX/lib || die
|
| 51 |
done
|
| 52 |
|
| 53 |
dodir /usr/NX/lib
|
| 54 |
cp -P lib/libXcompsh.so* lib/libXcomp.so* "${D}"/usr/NX/lib
|
| 55 |
|
| 56 |
dodir /usr/NX/share
|
| 57 |
cp -R share "${D}"/usr/NX
|
| 58 |
|
| 59 |
# Add icons/desktop entries (missing in the tarball)
|
| 60 |
cd share/icons
|
| 61 |
for size in *; do
|
| 62 |
dodir /usr/share/icons/hicolor/${size}/apps
|
| 63 |
for icon in admin desktop icon wizard; do
|
| 64 |
dosym /usr/NX/share/icons/${size}/nxclient-${icon}.png \
|
| 65 |
/usr/share/icons/hicolor/${size}/apps
|
| 66 |
done
|
| 67 |
done
|
| 68 |
make_desktop_entry "nxclient" "NX Client" nxclient-icon
|
| 69 |
make_desktop_entry "nxclient -admin" "NX Session Administrator" nxclient-admin
|
| 70 |
make_desktop_entry "nxclient -wizard" "NX Connection Wizard" nxclient-wizard
|
| 71 |
}
|