From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36719138332 for ; Tue, 6 Mar 2018 14:39:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0488FE087E; Tue, 6 Mar 2018 14:39:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C66C1E087E for ; Tue, 6 Mar 2018 14:39:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3DEB8335C07 for ; Tue, 6 Mar 2018 14:39:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C3921D5 for ; Tue, 6 Mar 2018 14:39:13 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1520346928.80d0712a8b5af8c3fec6b021331776cf5e1ae649.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/nx/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/nx/Manifest net-misc/nx/nx-3.5.99.14.ebuild X-VCS-Directories: net-misc/nx/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 80d0712a8b5af8c3fec6b021331776cf5e1ae649 X-VCS-Branch: master Date: Tue, 6 Mar 2018 14:39:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c8505f11-a15f-479f-9a3b-d9f9d844fcc2 X-Archives-Hash: b302704341be8cdd578ff7395dd6d4ee commit: 80d0712a8b5af8c3fec6b021331776cf5e1ae649 Author: Lars Wendler gentoo org> AuthorDate: Tue Mar 6 14:35:28 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue Mar 6 14:35:28 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80d0712a net-misc/nx: Bump to version 3.5.99.14 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-misc/nx/Manifest | 1 + net-misc/nx/nx-3.5.99.14.ebuild | 123 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/net-misc/nx/Manifest b/net-misc/nx/Manifest index e276636a000..dc5e88e708a 100644 --- a/net-misc/nx/Manifest +++ b/net-misc/nx/Manifest @@ -1 +1,2 @@ DIST nx-libs-3.5.0.33-full.tar.gz 6811378 BLAKE2B f20de5f9f7214fa38f290b2a200481aeb80461b07839a19ca54059d0fb26de769f0d11720b6d443dd618b6ac5ce590a086a21745420411e6a09bfad65e8f8d79 SHA512 cfaa201e5422ddd8d1f12d3f0711d6d7a05fcd92379e5108c7c066ce8ae748f2f80f3bbbbba093d73cfe671fffc912443eb3ced0eeca1ab5a221c46488aa8bc5 +DIST nx-libs-3.5.99.14-full.tar.gz 5265600 BLAKE2B de95c2f432a6708187bbe40a5fb6682275e759953e006add5e528acf67b72bb3fedc23a0a15f4cb52e8dab843de591cbd9ea199db45b37a86476b52b080af87f SHA512 0d6afd0acef2327b5746737f4a570d818948e4e57151be749320999008ad8fd188a2b6beae5da8f12675a9640c29f83f9d4f5ed2c53fb6b943836dcd04c380f0 diff --git a/net-misc/nx/nx-3.5.99.14.ebuild b/net-misc/nx/nx-3.5.99.14.ebuild new file mode 100644 index 00000000000..45c2791e745 --- /dev/null +++ b/net-misc/nx/nx-3.5.99.14.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils toolchain-funcs + +DESCRIPTION="NX compression technology core libraries" +HOMEPAGE="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="media-libs/freetype:2 + >=media-libs/libpng-1.2.8:* + >=sys-libs/zlib-1.2.3 + virtual/jpeg:*" + +DEPEND="${RDEPEND} + virtual/pkgconfig + x11-libs/libfontenc + x11-libs/libXfont2 + x11-misc/gccmakedep + x11-misc/imake + x11-proto/inputproto" + +S="${WORKDIR}/nx-libs-${PV}" + +src_prepare() { + default + + # We want predictable behavior. So let's assume we never + # have quilt installed. + sed 's@which quilt@false@' -i mesa-quilt || die + + # Fixed by upstream. Please removed on next version bump + sed '/$(BINDIR)\/bin/s@/bin@@' -i Makefile || die + + # run autoreconf in all neeed folders + for i in nxcomp nx-X11/lib nxcompshad nxproxy ; do + pushd ${i} || die + eautoreconf + popd || die + done + + # From xorg-x11-6.9.0-r3.ebuild + pushd nx-X11 || die + 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} + # Disable SunRPC, #370767 + echo "#define HasSecureRPC NO" >> ${HOSTCONF} +} + +src_configure() { + for i in nxcomp nx-X11/lib nxproxy ; do + pushd ${i} || die + econf + popd || die + done +} + +src_compile() { + # First set up the build environment + emake build-env + + # We replicate the "build-full" make target here because + # we cannot call "make build-full" as it + # - calls autoreconf several times + # - invokes make directly but we prefer our emake + + pushd nxcomp || die + emake + popd || die + + pushd nx-X11/lib || die + emake + popd || die + + mkdir -p nx-X11/exports/lib/ || die + local nxlib + for nxlib in libNX_X11.so{,.6{,.3.0}} ; do + ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die + done + + pushd nxcompshad || die + # Configuration can only run after X11 lib compilation + econf + emake + popd || die + + ./mesa-quilt push -a || die + + emake -C nx-X11 BuildDependsOnly FONT_DEFINES="-DHAS_XFONT2" + emake -C nx-X11 World USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" SHLIBDIR="/usr/$(get_libdir)" FONT_DEFINES="-DHAS_XFONT2" XFONTLIB="-lXfont2" + + pushd nxproxy || die + emake + popd || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="/usr" \ + NXLIBDIR="/usr/$(get_libdir)/${PN}" \ + SHLIBDIR="/usr/$(get_libdir)" \ + USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ + install + + # Already provided by mesa & related packages + rm -r "${ED%/}"/usr/include/GL || die + + # Get rid of libtool files and static libs. + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +}