# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit multilib eutils DESCRIPTION="A special version of the X11 libraries supporting NX compression technology" HOMEPAGE="http://www.nomachine.com/" SRC_URI="http://svn.gnqs.org/svn/gentoo-nx-overlay/downloads/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* ~x86 ~amd64" IUSE="rdesktop vnc" DEPEND="x86? ( ~net-misc/nxcomp-1.5.0 ) amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.1.4 >=app-emulation/emul-linux-x86-xlibs-2.2.1 ) !net-misc/nx-x11" pkg_setup() { # This is a binary x86 package => ABI=x86 has_multilib_profile && ABI="x86" } src_install() { into /usr/NX dobin nxagent dobin nxauth if use vnc ; then dobin nxviewer dobin nxpasswd fi if use rdesktop ; then dobin nxdesktop fi use x86 || dolib.so libXcomp.so* dolib.so libXcompext.so* dolib.so libX11.so* dolib.so libXext.so* dolib.so libXrender.so* }