1 |
commit: d2f7c9ca176c3d8d6926c42a002a4c33e8a25518 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 29 11:54:59 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 29 12:26:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2f7c9ca |
7 |
|
8 |
net-misc/nx: 3.5.99.17 bump |
9 |
|
10 |
Co-Authored-By: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
Closes: https://bugs.gentoo.org/672186 |
12 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
13 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
14 |
|
15 |
net-misc/nx/Manifest | 1 + |
16 |
net-misc/nx/nx-3.5.99.17.ebuild | 138 ++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 139 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/nx/Manifest b/net-misc/nx/Manifest |
20 |
index 50c0f6988b8..35d0b446976 100644 |
21 |
--- a/net-misc/nx/Manifest |
22 |
+++ b/net-misc/nx/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST nx-libs-3.5.0.33-full.tar.gz 6811378 BLAKE2B f20de5f9f7214fa38f290b2a200481aeb80461b07839a19ca54059d0fb26de769f0d11720b6d443dd618b6ac5ce590a086a21745420411e6a09bfad65e8f8d79 SHA512 cfaa201e5422ddd8d1f12d3f0711d6d7a05fcd92379e5108c7c066ce8ae748f2f80f3bbbbba093d73cfe671fffc912443eb3ced0eeca1ab5a221c46488aa8bc5 |
25 |
DIST nx-libs-3.5.99.16-full.tar.gz 5269745 BLAKE2B c968b8dde07e397e84786131cede0dd82979c52069a653de540ec833e5189751db15347aa34cf68db523207aa13ae7507cce0b28b09e897606becdc6effd7fcc SHA512 6b80530345da879e62f9ea506a04c77bd918d3c48d46a22548d1534dab14cae5a715290942fdd5c77708f119522312cd667b6b9f286f106463c5a0debbb0451c |
26 |
+DIST nx-libs-3.5.99.17-1-full.tar.gz 5287579 BLAKE2B 8ea54a55071e1161a349ecc1c897b1e774f43567e557cb5b06ed296922b87d2c9c613a58b2d86d7ef912d179d44ed09ca2aa6679c43c334bfbaa31edbf0aff11 SHA512 17c782ccd972c0b97de86195b5994e681570f0184813a8200fea4803d51e5033976e7c8300cb37ba6e811e26e526226a3d4e6a469eecdf772cbba7a12adeeabe |
27 |
|
28 |
diff --git a/net-misc/nx/nx-3.5.99.17.ebuild b/net-misc/nx/nx-3.5.99.17.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..335570d48a4 |
31 |
--- /dev/null |
32 |
+++ b/net-misc/nx/nx-3.5.99.17.ebuild |
33 |
@@ -0,0 +1,138 @@ |
34 |
+# Copyright 1999-2018 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+inherit autotools toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="NX compression technology core libraries" |
41 |
+HOMEPAGE="http://www.x2go.org/doku.php/wiki:libs:nx-libs" |
42 |
+ |
43 |
+SRC_URI="http://code.x2go.org/releases/source/nx-libs/nx-libs-${PV}-1-full.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~ppc ~x86" |
48 |
+IUSE="elibc_glibc" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-libs/libxml2 |
52 |
+ >=media-libs/libpng-1.2.8:0= |
53 |
+ >=sys-libs/zlib-1.2.3 |
54 |
+ virtual/jpeg:* |
55 |
+ x11-libs/libX11 |
56 |
+ x11-libs/libXcomposite |
57 |
+ x11-libs/libXdamage |
58 |
+ x11-libs/libXdmcp |
59 |
+ x11-libs/libXext |
60 |
+ x11-libs/libXfixes |
61 |
+ x11-libs/libXfont2 |
62 |
+ x11-libs/libXinerama |
63 |
+ x11-libs/libXpm |
64 |
+ x11-libs/libXrandr |
65 |
+ x11-libs/libXrender |
66 |
+ x11-libs/libXtst |
67 |
+ x11-libs/pixman |
68 |
+" |
69 |
+ |
70 |
+DEPEND="${RDEPEND} |
71 |
+ x11-base/xorg-proto |
72 |
+ x11-libs/libfontenc |
73 |
+ x11-misc/gccmakedep |
74 |
+ x11-misc/imake" |
75 |
+ |
76 |
+BDEPEND=" |
77 |
+ virtual/pkgconfig |
78 |
+" |
79 |
+ |
80 |
+S="${WORKDIR}/nx-libs-HEAD" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ # We want predictable behavior. So let's assume we never |
86 |
+ # have quilt installed. |
87 |
+ sed 's@which quilt@false@' -i mesa-quilt || die |
88 |
+ |
89 |
+ # Do not compress man pages by default |
90 |
+ sed '/^[[:space:]]*gzip.*man/d' -i Makefile || die |
91 |
+ |
92 |
+ # run autoreconf in all needed folders |
93 |
+ local subdir |
94 |
+ for subdir in nxcomp nx-X11/lib nxcompshad nxproxy ; do |
95 |
+ pushd ${subdir} || die |
96 |
+ eautoreconf |
97 |
+ popd || die |
98 |
+ done |
99 |
+ |
100 |
+ # From xorg-x11-6.9.0-r3.ebuild |
101 |
+ pushd nx-X11 || die |
102 |
+ HOSTCONF="config/cf/host.def" |
103 |
+ echo "#define CcCmd $(tc-getCC)" >> ${HOSTCONF} |
104 |
+ echo "#define OptimizedCDebugFlags ${CFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
105 |
+ echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS} GccAliasingArgs" >> ${HOSTCONF} |
106 |
+ # Respect LDFLAGS |
107 |
+ echo "#define ExtraLoadFlags ${LDFLAGS}" >> ${HOSTCONF} |
108 |
+ echo "#define SharedLibraryLoadFlags -shared ${LDFLAGS}" >> ${HOSTCONF} |
109 |
+ # Disable SunRPC, #370767 |
110 |
+ echo "#define HasSecureRPC NO" >> ${HOSTCONF} |
111 |
+} |
112 |
+ |
113 |
+src_configure() { |
114 |
+ local subdir |
115 |
+ for subdir in nxcomp nxcompshad nxproxy ; do |
116 |
+ pushd ${subdir} || die |
117 |
+ econf |
118 |
+ popd || die |
119 |
+ done |
120 |
+ |
121 |
+ pushd "nx-X11/lib" || die |
122 |
+ econf --disable-poll |
123 |
+ popd || die |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ # First set up the build environment |
128 |
+ emake build-env |
129 |
+ |
130 |
+ # We replicate the "build-full" make target here because |
131 |
+ # we cannot call "make build-full" as it |
132 |
+ # - calls autoreconf several times |
133 |
+ # - invokes make directly but we prefer our emake |
134 |
+ |
135 |
+ emake -C nxcomp |
136 |
+ emake -C nx-X11/lib |
137 |
+ |
138 |
+ mkdir -p nx-X11/exports/lib/ || die |
139 |
+ local nxlib |
140 |
+ for nxlib in libNX_X11.so{,.6{,.3.0}} ; do |
141 |
+ ln -s ../../lib/src/.libs/${nxlib} nx-X11/exports/lib/${nxlib} || die |
142 |
+ done |
143 |
+ |
144 |
+ emake -C nxcompshad |
145 |
+ |
146 |
+ ./mesa-quilt push -a || die |
147 |
+ |
148 |
+ emake -C nx-X11 BuildDependsOnly |
149 |
+ # Parallel make issue resurfaced, upstream working on autotools switch |
150 |
+ emake -j1 -C nx-X11 World \ |
151 |
+ USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
152 |
+ SHLIBDIR="/usr/$(get_libdir)" |
153 |
+ |
154 |
+ emake -C nxproxy |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ emake \ |
159 |
+ DESTDIR="${D}" \ |
160 |
+ PREFIX="/usr" \ |
161 |
+ NXLIBDIR="/usr/$(get_libdir)/${PN}" \ |
162 |
+ SHLIBDIR="/usr/$(get_libdir)" \ |
163 |
+ USRLIBDIR="/usr/$(get_libdir)/${PN}/X11" \ |
164 |
+ install |
165 |
+ |
166 |
+ # Already provided by mesa & related packages |
167 |
+ rm -r "${ED}"/usr/include/GL || die |
168 |
+ |
169 |
+ # Get rid of libtool files and static libs. |
170 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
171 |
+} |