diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2013-09-04 11:18:34 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2013-09-04 11:18:34 +0000 |
commit | ecf21d6fbad7ce69741058d43e6748d71e12dc97 (patch) | |
tree | eefd1f9c72bc3d0b82cd7950306c98255f3d444c /net-misc/nx | |
parent | Add ~mips keyword (diff) | |
download | gentoo-2-ecf21d6fbad7ce69741058d43e6748d71e12dc97.tar.gz gentoo-2-ecf21d6fbad7ce69741058d43e6748d71e12dc97.tar.bz2 gentoo-2-ecf21d6fbad7ce69741058d43e6748d71e12dc97.zip |
Version bump, use system freetype, install default icon and keystrokes file. Keep warning for #441878 for now
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C74525F2)
Diffstat (limited to 'net-misc/nx')
-rw-r--r-- | net-misc/nx/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/nx/nx-3.5.0.21.ebuild | 107 |
2 files changed, 114 insertions, 1 deletions
diff --git a/net-misc/nx/ChangeLog b/net-misc/nx/ChangeLog index 1e75f8ed963d..7eed9bf4a079 100644 --- a/net-misc/nx/ChangeLog +++ b/net-misc/nx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/nx # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/ChangeLog,v 1.82 2013/08/21 06:33:19 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/ChangeLog,v 1.83 2013/09/04 11:18:34 voyageur Exp $ + +*nx-3.5.0.21 (04 Sep 2013) + + 04 Sep 2013; Bernard Cafarelli <voyageur@gentoo.org> +nx-3.5.0.21.ebuild: + Version bump, use system freetype, install default icon and keystrokes file. + Keep warning for #441878 for now *nx-3.5.0.20-r1 (21 Aug 2013) diff --git a/net-misc/nx/nx-3.5.0.21.ebuild b/net-misc/nx/nx-3.5.0.21.ebuild new file mode 100644 index 000000000000..a72c60c121e9 --- /dev/null +++ b/net-misc/nx/nx-3.5.0.21.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/nx/nx-3.5.0.21.ebuild,v 1.1 2013/09/04 11:18:34 voyageur Exp $ + +EAPI=5 +inherit autotools eutils multilib readme.gentoo + +DESCRIPTION="NX compression technology core libraries" +HOMEPAGE="http://www.nomachine.com/developers.php + http://www.x2go.org/doku.php/wiki:libs:nx-libs" + +SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-full.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="elibc_glibc" + +RDEPEND="elibc_glibc? ( || ( net-libs/libtirpc <sys-libs/glibc-2.14 ) ) + media-libs/freetype:2 + >=media-libs/libpng-1.2.8 + >=sys-libs/zlib-1.2.3 + virtual/jpeg" + +DEPEND="${RDEPEND} + x11-misc/gccmakedep + x11-misc/imake + x11-proto/inputproto" + +S=${WORKDIR}/nx-libs-${PV} + +DOC_CONTENTS="If you get problems with rendering gtk+ apps, enable the xlib-xcb +useflag on x11-libs/cairo." + +src_prepare() { + # For nxcl/qtnx + cd "${S}"/nxproxy + epatch "${FILESDIR}"/${PN}-3.2.0-nxproxy_read_from_stdin.patch + + cd "${S}" + # Fix sandbox violation + epatch "${FILESDIR}"/1.5.0/nx-x11-1.5.0-tmp-exec.patch + # -fPIC + epatch "${FILESDIR}"/1.5.0/nxcomp-1.5.0-pic.patch + # Drop force -O3, set AR/RANLIB and + # run autoreconf in all neeed folders + epatch "${FILESDIR}"/${PN}-3.5.0.17-cflags_ar_ranlib.patch + for i in nxcomp nxcompext nxcompshad nxproxy; do + cd "${S}"/${i} + eautoreconf ${i} + cd "${S}" + done + + # From xorg-x11-6.9.0-r3.ebuild + cd "${S}/nx-X11" + HOSTCONF="config/cf/host.def" + echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} + echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} + echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} + # Respect LDFLAGS + echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} + echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} +} + +src_configure() { + cd "${S}"/nxproxy + econf +} + +src_compile() { + cd "${S}/nx-X11" + FAST=1 emake World WORLDOPTS="" MAKE="make" \ + AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" + + cd "${S}"/nxproxy + emake +} + +src_install() { + NX_ROOT=/usr/$(get_libdir)/NX + + for x in nxagent nxauth nxproxy; do + make_wrapper $x ./$x ${NX_ROOT}/bin ${NX_ROOT}/$(get_libdir) || + die " $x wrapper creation failed" + done + + into ${NX_ROOT} + dobin "${S}"/nx-X11/programs/Xserver/nxagent + dobin "${S}"/nx-X11/programs/nxauth/nxauth + dobin "${S}"/nxproxy/nxproxy + + for lib in X11 Xau Xcomposite Xdamage Xdmcp Xext Xfixes Xinerama Xpm Xrandr Xrender Xtst; + do + dolib.so "${S}"/nx-X11/lib/${lib}/libNX_${lib}.so* + done + + dolib.so "${S}"/nxcomp/libXcomp.so* + dolib.so "${S}"/nxcompext/libXcompext.so* + dolib.so "${S}"/nxcompshad/libXcompshad.so* + + insinto /etc/nxagent + newins etc/keystrokes.cfg keystroke.cfg + doicon nx-X11/programs/Xserver/hw/nxagent/x2go.xpm + + readme.gentoo_create_doc +} |