1 |
commit: 00a81436f2ea48adaf8f17168e4af4749e2973ac |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 09:32:24 2022 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 09:32:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00a81436 |
7 |
|
8 |
x11-wm/xpra: Version bump to 4.3.3 |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
|
12 |
x11-wm/xpra/Manifest | 1 + |
13 |
x11-wm/xpra/xpra-4.3.3.ebuild | 203 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 204 insertions(+) |
15 |
|
16 |
diff --git a/x11-wm/xpra/Manifest b/x11-wm/xpra/Manifest |
17 |
index b75a51d00781..b930ca5f5341 100644 |
18 |
--- a/x11-wm/xpra/Manifest |
19 |
+++ b/x11-wm/xpra/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST xpra-4.2.tar.gz 4057304 BLAKE2B 17b6a95f7ce24a311c39d09291d9570285c30f25c2d935389cb380c2fce698acd984821e69acaabd66368e76b5beddd01803a68d6a16dd930dd2fa3289532f10 SHA512 261d46c04ce70686f41873c5c0c115e462e3b2501c58ab05fb2904f4700454c5fb8124d0faf86fe5e982872f19a4b90b941f8aff4790f7206602d6030c005353 |
22 |
DIST xpra-4.3.1-tests.patch 51444 BLAKE2B c645aa52bb06c3872f6c1c7aace099c10a6fd46dd4c386ec1a13f6326e3fc8860a71767510ce9b44375cc8b30cef563e4405b2834670a9d2c555d3359d16e99f SHA512 0c70c33e24980db31e904c91f987a73693bd2349958ea8392138987e1dc1852ea42a4ee7e3b238f01c92adc57dbe196e57f4c4accf27aade6c4ea55c1ff9b40c |
23 |
DIST xpra-4.3.2.tar.gz 4175968 BLAKE2B 16d42f9509c1ac3cf3f345a6cdd3711496019064c890268d1c1612e37e34ffe93016488f8a6d1bf8509da1d32500571e80bb4143a2f870f07530386515107735 SHA512 b9bc89a0d042e4ef2a416b7787bd1588a9d151d482319c637073749383e2b3f3361eb0f95c0e39ba98c9ae87ef5acb68c4980645fb9a2feea37215f88f7a8a95 |
24 |
+DIST xpra-4.3.3.tar.gz 4180278 BLAKE2B 2fceab6c95efd0bd0390b7965aea588f39e43f86094c1f9921e1f75022f569808e27d7d85adcccfd64ac28889d0f6d2d6afdf4365f8c919bac8b1a14f3919f23 SHA512 c470e892b4b6379b6c9447731ab174e85c26de15fdc9541a199a2f49e45d07942ae8638f8ddf040a22c73422c6e6b262a9066cd8990f182b75163f7d449d91e2 |
25 |
|
26 |
diff --git a/x11-wm/xpra/xpra-4.3.3.ebuild b/x11-wm/xpra/xpra-4.3.3.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..337531a3c0f3 |
29 |
--- /dev/null |
30 |
+++ b/x11-wm/xpra/xpra-4.3.3.ebuild |
31 |
@@ -0,0 +1,203 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+if [[ ${PV} = 9999* ]]; then |
38 |
+ EGIT_REPO_URI="https://github.com/Xpra-org/xpra.git" |
39 |
+ inherit git-r3 |
40 |
+else |
41 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
42 |
+ https://dev.gentoo.org/~chewi/distfiles/${PN}-4.3.1-tests.patch" |
43 |
+ KEYWORDS="~amd64 ~x86" |
44 |
+fi |
45 |
+ |
46 |
+PYTHON_COMPAT=( python3_{7,8,9,10} ) |
47 |
+DISTUTILS_SINGLE_IMPL=yes |
48 |
+DISTUTILS_USE_SETUPTOOLS=no |
49 |
+ |
50 |
+inherit xdg xdg-utils distutils-r1 tmpfiles udev |
51 |
+ |
52 |
+DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy" |
53 |
+HOMEPAGE="https://xpra.org/" |
54 |
+LICENSE="GPL-2 BSD" |
55 |
+SLOT="0" |
56 |
+IUSE="brotli +client +clipboard csc cups dbus doc ffmpeg jpeg html ibus +lz4 lzo minimal opengl pillow pinentry pulseaudio +server sound systemd test vpx webcam webp xdg xinerama" |
57 |
+ |
58 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
59 |
+ || ( client server ) |
60 |
+ cups? ( dbus ) |
61 |
+ opengl? ( client ) |
62 |
+ test? ( client clipboard dbus html server sound xdg xinerama ) |
63 |
+" |
64 |
+ |
65 |
+TDEPEND=" |
66 |
+ $(python_gen_cond_dep ' |
67 |
+ dev-python/netifaces[${PYTHON_USEDEP}] |
68 |
+ dev-python/pillow[jpeg?,${PYTHON_USEDEP}] |
69 |
+ dev-python/rencode[${PYTHON_USEDEP}] |
70 |
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) |
71 |
+ xdg? ( dev-python/pyxdg[${PYTHON_USEDEP}] ) |
72 |
+ ') |
73 |
+ html? ( www-apps/xpra-html5 ) |
74 |
+ server? ( |
75 |
+ x11-base/xorg-server[-minimal,xvfb] |
76 |
+ x11-drivers/xf86-input-void |
77 |
+ ) |
78 |
+ xinerama? ( x11-libs/libfakeXinerama ) |
79 |
+" |
80 |
+DEPEND=" |
81 |
+ ${PYTHON_DEPS} |
82 |
+ $(python_gen_cond_dep ' |
83 |
+ dev-python/pygobject:3[${PYTHON_USEDEP},cairo] |
84 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) |
85 |
+ sound? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] ) |
86 |
+ ') |
87 |
+ x11-libs/gtk+:3[introspection] |
88 |
+ x11-libs/libX11 |
89 |
+ x11-libs/libXcomposite |
90 |
+ x11-libs/libXdamage |
91 |
+ x11-libs/libXfixes |
92 |
+ x11-libs/libXrandr |
93 |
+ x11-libs/libXres |
94 |
+ x11-libs/libXtst |
95 |
+ x11-libs/libxkbfile |
96 |
+ brotli? ( app-arch/brotli ) |
97 |
+ csc? ( >=media-video/ffmpeg-1.2.2:0= ) |
98 |
+ ffmpeg? ( >=media-video/ffmpeg-3.2.2:0=[x264,x265] ) |
99 |
+ jpeg? ( media-libs/libjpeg-turbo ) |
100 |
+ pulseaudio? ( |
101 |
+ media-sound/pulseaudio |
102 |
+ media-plugins/gst-plugins-pulse:1.0 |
103 |
+ ) |
104 |
+ sound? ( |
105 |
+ media-libs/gstreamer:1.0 |
106 |
+ media-libs/gst-plugins-base:1.0 |
107 |
+ ) |
108 |
+ vpx? ( media-libs/libvpx media-video/ffmpeg ) |
109 |
+ webp? ( media-libs/libwebp ) |
110 |
+" |
111 |
+RDEPEND=" |
112 |
+ ${DEPEND} |
113 |
+ ${TDEPEND} |
114 |
+ $(python_gen_cond_dep ' |
115 |
+ cups? ( dev-python/pycups[${PYTHON_USEDEP}] ) |
116 |
+ lz4? ( dev-python/lz4[${PYTHON_USEDEP}] ) |
117 |
+ lzo? ( >=dev-python/python-lzo-0.7.0[${PYTHON_USEDEP}] ) |
118 |
+ opengl? ( |
119 |
+ client? ( dev-python/pyopengl_accelerate[${PYTHON_USEDEP}] ) |
120 |
+ ) |
121 |
+ webcam? ( |
122 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
123 |
+ dev-python/pyinotify[${PYTHON_USEDEP}] |
124 |
+ media-libs/opencv[${PYTHON_USEDEP},python] |
125 |
+ ) |
126 |
+ ') |
127 |
+ acct-group/xpra |
128 |
+ virtual/ssh |
129 |
+ x11-apps/xauth |
130 |
+ x11-apps/xmodmap |
131 |
+ ibus? ( app-i18n/ibus ) |
132 |
+ pinentry? ( app-crypt/pinentry ) |
133 |
+" |
134 |
+DEPEND+=" |
135 |
+ test? ( ${TDEPEND} ) |
136 |
+" |
137 |
+BDEPEND=" |
138 |
+ $(python_gen_cond_dep ' |
139 |
+ >=dev-python/cython-0.16[${PYTHON_USEDEP}] |
140 |
+ ') |
141 |
+ virtual/pkgconfig |
142 |
+ doc? ( app-text/pandoc ) |
143 |
+" |
144 |
+ |
145 |
+RESTRICT="!test? ( test )" |
146 |
+ |
147 |
+PATCHES=( |
148 |
+ "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch |
149 |
+ "${FILESDIR}"/${PN}-4.2-suid-warning.patch |
150 |
+ "${FILESDIR}"/${PN}-4.3-no-service.patch |
151 |
+ "${DISTDIR}"/${PN}-4.3.1-tests.patch |
152 |
+) |
153 |
+ |
154 |
+python_prepare_all() { |
155 |
+ distutils-r1_python_prepare_all |
156 |
+ |
157 |
+ # FIXME: There are hardcoded paths all over the place but the following |
158 |
+ # double-prefixes some files under /etc. Looks tricky to fix. :( |
159 |
+ #hprefixify $(find -type f \( -name "*.py" -o -name "*.conf" \)) |
160 |
+ |
161 |
+ sed -r -e "/\bdoc_dir =/s:/${PN}\":/${PF}/html\":" \ |
162 |
+ -i setup.py || die |
163 |
+ |
164 |
+ if use minimal; then |
165 |
+ sed -r -e 's/^(pam|scripts|xdg_open)_ENABLED.*/\1_ENABLED=False/' \ |
166 |
+ -i setup.py || die |
167 |
+ fi |
168 |
+} |
169 |
+ |
170 |
+python_configure_all() { |
171 |
+ sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \ |
172 |
+ -i setup.py || die |
173 |
+ |
174 |
+ DISTUTILS_ARGS=( |
175 |
+ --without-PIC |
176 |
+ --without-Xdummy |
177 |
+ $(use_with client) |
178 |
+ $(use_with clipboard) |
179 |
+ $(use_with csc csc_swscale) |
180 |
+ --without-csc_libyuv |
181 |
+ --without-cuda_rebuild |
182 |
+ --without-cuda_kernels |
183 |
+ $(use_with cups printing) |
184 |
+ --without-debug |
185 |
+ $(use_with dbus) |
186 |
+ $(use_with doc docs) |
187 |
+ $(use_with ffmpeg dec_avcodec2) |
188 |
+ $(use_with ffmpeg enc_ffmpeg) |
189 |
+ $(use_with ffmpeg enc_x264) |
190 |
+ $(use_with ffmpeg enc_x265) |
191 |
+ --with-gtk3 |
192 |
+ $(use_with jpeg jpeg_encoder) |
193 |
+ $(use_with jpeg jpeg_decoder) |
194 |
+ --without-mdns |
195 |
+ $(use_with opengl) |
196 |
+ $(use_with server shadow) |
197 |
+ $(use_with server) |
198 |
+ $(use_with sound) |
199 |
+ --with-strict |
200 |
+ $(use_with vpx) |
201 |
+ --with-warn |
202 |
+ $(use_with webcam) |
203 |
+ $(use_with webp) |
204 |
+ --with-x11 |
205 |
+ ) |
206 |
+ |
207 |
+ export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra" |
208 |
+} |
209 |
+ |
210 |
+python_test() { |
211 |
+ export XAUTHORITY=${HOME}/.Xauthority |
212 |
+ touch "${XAUTHORITY}" || die |
213 |
+ |
214 |
+ distutils_install_for_testing |
215 |
+ xdg_environment_reset |
216 |
+ |
217 |
+ PYTHONPATH=${S}/tests/unittests:${BUILD_DIR}/test/lib \ |
218 |
+ XPRA_SYSTEMD_RUN=$(usex systemd) XPRA_TEST_COVERAGE=0 \ |
219 |
+ "${PYTHON}" "${S}"/tests/unittests/unit/run.py || die |
220 |
+} |
221 |
+ |
222 |
+python_install_all() { |
223 |
+ distutils-r1_python_prepare_all |
224 |
+ |
225 |
+ # Move udev dir to the right place. |
226 |
+ local dir=$(get_udevdir) |
227 |
+ dodir "${dir%/*}" |
228 |
+ mv -vnT "${ED}"/usr/lib/udev "${ED}${dir}" || die |
229 |
+} |
230 |
+ |
231 |
+pkg_postinst() { |
232 |
+ tmpfiles_process xpra.conf |
233 |
+ xdg_pkg_postinst |
234 |
+} |