/[gentoo-x86]/net-misc/nxclient/nxclient-1.5.0-r2.ebuild
Gentoo

Contents of /net-misc/nxclient/nxclient-1.5.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 8 21:58:22 2006 UTC (13 years, 1 month ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removed older versions
(Portage version: 2.1.2_pre2-r9)
 (Unsigned Manifest commit)

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-r2.ebuild,v 1.4 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=""
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="-alpha ~amd64 -mips -ppc -sparc ~x86"
14 RESTRICT="nostrip"
15
16 SRC_URI="http://web04.nomachine.com/download/1.5.0/client/$P-135.i386.rpm"
17
18 DEPEND="
19 =net-misc/nxssh-1.5*
20 net-analyzer/gnu-netcat
21 amd64? (
22 >=app-emulation/emul-linux-x86-baselibs-2.1.4
23 )
24 x86? (
25 media-libs/jpeg
26 sys-libs/glibc
27 sys-libs/zlib
28 dev-libs/expat
29 media-libs/fontconfig
30 media-libs/freetype
31 media-libs/jpeg
32 media-libs/libpng
33 net-print/cups
34 =x11-libs/qt-3*
35 sys-libs/lib-compat
36 || ( ( x11-libs/libX11
37 x11-libs/libXext
38 )
39 virtual/x11
40 )
41 )"
42
43 S=${WORKDIR}
44
45 src_install() {
46 # rpm has usr/NX/; tarball has only NX/
47 if [[ ! -d usr ]]; then
48 mkdir usr
49 mv NX usr || die
50 fi
51
52 cp -dPR usr ${D}
53
54 # All of the libraries delivered by nxclient are available in our deps.
55 # Additionally a couple of the binaries are better installed as deps.
56 # Remove those now...
57
58 # delivered by net-misc/nxcomp
59 rm -f ${D}/usr/NX/lib/libXcomp.so*
60
61 # delivered by net-misc/nx-x11 (at some point)
62 rm -f ${D}/usr/NX/bin/nxesd
63
64 # delivered by net-misc/nxssh
65 rm -f ${D}/usr/NX/bin/nxssh
66
67 # delivered by other deps (emul-linux-x86-baselibs on amd64)
68 rm -f ${D}/usr/NX/lib/lib{crypto,jpeg,png,z}*
69
70 # make sure there are no libs left (this is to catch problems when this
71 # package is updated)
72 rmdir ${D}/usr/NX/lib || die "leftover libraries in ${D}/usr/NX/lib"
73
74 # FIXME: Of the options in the applnk directory, the desktop files in the
75 # "network" directory seem to make the most sense. I have no idea if this
76 # works for KDE or just for Gnome.
77 declare applnk=/usr/NX/share/applnk apps=/usr/share/applications
78 if [[ -d ${D}${applnk} ]]; then
79 dodir ${apps}
80 mv ${D}${applnk}/network/*.desktop ${D}${apps}
81 rm ${D}${apps}/nxclient-help.desktop
82 rm -rf ${D}${applnk}
83 fi
84
85 # Install env.d snippet to add /usr/NX/bin to the PATH
86 insinto /etc/env.d
87 doins ${FILESDIR}/1.5.0/50nxclient
88 }

  ViewVC Help
Powered by ViewVC 1.1.20