Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/xpra/
Date: Tue, 13 Jul 2021 21:48:53
Message-Id: 1626212910.8b60b0c57ec7326dfc8529b6452f83ea1dd5803e.chewi@gentoo
1 commit: 8b60b0c57ec7326dfc8529b6452f83ea1dd5803e
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 13 21:48:30 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 13 21:48:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b60b0c5
7
8 x11-wm/xpra: Version bump to 4.2.1
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 x11-wm/xpra/Manifest | 1 +
14 x11-wm/xpra/xpra-4.2.1.ebuild | 170 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 171 insertions(+)
16
17 diff --git a/x11-wm/xpra/Manifest b/x11-wm/xpra/Manifest
18 index addfc19c3ae..59734fa8ff1 100644
19 --- a/x11-wm/xpra/Manifest
20 +++ b/x11-wm/xpra/Manifest
21 @@ -1,3 +1,4 @@
22 DIST xpra-3.0.5.tar.xz 2752016 BLAKE2B a36d6a4ebb0b14665014da92d510c0d5f978c96db653709ddc09a1015426d6ac6f71f9a221db68ee1114c95eeaca6600f9e49102ce9f936d9b0ee298ac432647 SHA512 3dbc122ebc8c4aa67154acfe92668ac364d8469022b03e28946d763e4d396f8c707690b2a4dbf07b55545259a53b46c9dd94e6e40131289ccc3dce6a88107681
23 DIST xpra-4.1.3.tar.gz 3850971 BLAKE2B b5f5a0546c785762974f27650408cb83fdfa2ac8a5b5dd8c6b08a9978ff17a0dfc85f95fde405689a19517ef66bcc7aefc1dad71acc2dda7883ed38d3c22b91c SHA512 e401793ae9a4539d39bc161be4d34af2dca81c78f189664d8ebdefff99d413d364d4ceb37dd776b027b206119da81957ef7436a727c00d3ad5895a3c90742e39
24 +DIST xpra-4.2.1.tar.gz 3878766 BLAKE2B c537b54b8ea5cc1ad2909eeccf61eba59a518165eb72c7d4984d26f378e4babca997c2f6cf78f5ba947edbc4ad6c4085c86793aad9b01f1fca2b22b1daaabda9 SHA512 553d8c11f1a77a2a58cbad7df0d899c611e21eb01dad3516f99f1fb9cc7a4507ba7557807b62ddea7101ca01bab123962a34b9c3369db06d1bb318debd91dc55
25 DIST xpra-4.2.tar.gz 4057304 BLAKE2B 17b6a95f7ce24a311c39d09291d9570285c30f25c2d935389cb380c2fce698acd984821e69acaabd66368e76b5beddd01803a68d6a16dd930dd2fa3289532f10 SHA512 261d46c04ce70686f41873c5c0c115e462e3b2501c58ab05fb2904f4700454c5fb8124d0faf86fe5e982872f19a4b90b941f8aff4790f7206602d6030c005353
26
27 diff --git a/x11-wm/xpra/xpra-4.2.1.ebuild b/x11-wm/xpra/xpra-4.2.1.ebuild
28 new file mode 100644
29 index 00000000000..1f8dc0a75fa
30 --- /dev/null
31 +++ b/x11-wm/xpra/xpra-4.2.1.ebuild
32 @@ -0,0 +1,170 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{7,8,9} )
39 +DISTUTILS_SINGLE_IMPL=yes
40 +DISTUTILS_USE_SETUPTOOLS=no
41 +inherit xdg distutils-r1 tmpfiles prefix udev
42 +
43 +DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy"
44 +HOMEPAGE="https://xpra.org/"
45 +SRC_URI="https://xpra.org/src/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2 BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="brotli +client +clipboard csc cups dbus doc ffmpeg jpeg ibus +lz4 lzo minimal opengl pillow pinentry pulseaudio server sound test vpx webcam webp"
51 +
52 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
53 + || ( client server )
54 + cups? ( dbus )
55 + opengl? ( client )
56 +"
57 +
58 +DEPEND="
59 + ${PYTHON_DEPS}
60 + $(python_gen_cond_dep '
61 + dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
62 + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
63 + sound? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )
64 + ')
65 + x11-libs/gtk+:3[introspection]
66 + x11-libs/libX11
67 + x11-libs/libXcomposite
68 + x11-libs/libXdamage
69 + x11-libs/libXfixes
70 + x11-libs/libXrandr
71 + x11-libs/libXtst
72 + x11-libs/libxkbfile
73 + brotli? ( app-arch/brotli )
74 + csc? ( >=media-video/ffmpeg-1.2.2:0= )
75 + ffmpeg? ( >=media-video/ffmpeg-3.2.2:0=[x264,x265] )
76 + jpeg? ( media-libs/libjpeg-turbo )
77 + pulseaudio? (
78 + media-sound/pulseaudio
79 + media-plugins/gst-plugins-pulse:1.0
80 + )
81 + sound? (
82 + media-libs/gstreamer:1.0
83 + media-libs/gst-plugins-base:1.0
84 + )
85 + vpx? ( media-libs/libvpx media-video/ffmpeg )
86 + webp? ( media-libs/libwebp )
87 +"
88 +RDEPEND="
89 + ${DEPEND}
90 + $(python_gen_cond_dep '
91 + dev-python/netifaces[${PYTHON_USEDEP}]
92 + dev-python/rencode[${PYTHON_USEDEP}]
93 + dev-python/pillow[jpeg?,${PYTHON_USEDEP}]
94 + cups? ( dev-python/pycups[${PYTHON_USEDEP}] )
95 + dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
96 + lz4? ( dev-python/lz4[${PYTHON_USEDEP}] )
97 + lzo? ( >=dev-python/python-lzo-0.7.0[${PYTHON_USEDEP}] )
98 + opengl? (
99 + client? ( dev-python/pyopengl_accelerate[${PYTHON_USEDEP}] )
100 + )
101 + webcam? (
102 + dev-python/numpy[${PYTHON_USEDEP}]
103 + dev-python/pyinotify[${PYTHON_USEDEP}]
104 + media-libs/opencv[${PYTHON_USEDEP},python]
105 + )
106 + ')
107 + acct-group/xpra
108 + virtual/ssh
109 + x11-apps/xmodmap
110 + ibus? ( app-i18n/ibus )
111 + pinentry? ( app-crypt/pinentry )
112 + server? (
113 + x11-base/xorg-server[-minimal,xvfb]
114 + x11-drivers/xf86-input-void
115 + )
116 +"
117 +BDEPEND="
118 + virtual/pkgconfig
119 + $(python_gen_cond_dep '
120 + >=dev-python/cython-0.16[${PYTHON_USEDEP}]
121 + ')
122 + doc? ( app-text/pandoc )
123 +"
124 +
125 +RESTRICT="!test? ( test )"
126 +
127 +PATCHES=(
128 + "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch
129 + "${FILESDIR}"/${PN}-3.0.2-ldconfig.patch
130 + "${FILESDIR}"/${PN}-4.2-suid-warning.patch
131 +)
132 +
133 +pkg_postinst() {
134 + tmpfiles_process /usr/lib/tmpfiles.d/xpra.conf
135 +
136 + xdg_pkg_postinst
137 +}
138 +
139 +python_prepare_all() {
140 + hprefixify -w '/os.path/' setup.py
141 + hprefixify tmpfiles.d/xpra.conf xpra/server/server_util.py \
142 + xpra/platform{/xposix,}/paths.py xpra/scripts/server.py
143 +
144 + sed -r -e "/\bdoc_dir =/s:/${PN}\":/${PF}/html\":" \
145 + -i setup.py || die
146 +
147 + if use minimal; then
148 + sed -r -e 's/^(pam|scripts|xdg_open)_ENABLED.*/\1_ENABLED=False/' \
149 + -i setup.py || die
150 + fi
151 +
152 + distutils-r1_python_prepare_all
153 +}
154 +
155 +python_configure_all() {
156 + sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \
157 + -i setup.py || die
158 +
159 + mydistutilsargs=(
160 + --without-PIC
161 + --without-Xdummy
162 + $(use_with client)
163 + $(use_with clipboard)
164 + $(use_with csc csc_swscale)
165 + --without-csc_libyuv
166 + --without-cuda_rebuild
167 + --without-cuda_kernels
168 + $(use_with cups printing)
169 + --without-debug
170 + $(use_with dbus)
171 + $(use_with doc docs)
172 + $(use_with ffmpeg dec_avcodec2)
173 + $(use_with ffmpeg enc_ffmpeg)
174 + $(use_with ffmpeg enc_x264)
175 + $(use_with ffmpeg enc_x265)
176 + --with-gtk3
177 + $(use_with jpeg jpeg_encoder)
178 + $(use_with jpeg jpeg_decoder)
179 + --without-mdns
180 + $(use_with opengl)
181 + $(use_with server shadow)
182 + $(use_with server)
183 + $(use_with sound)
184 + --with-strict
185 + $(use_with vpx)
186 + --with-warn
187 + $(use_with webcam)
188 + $(use_with webp)
189 + --with-x11
190 + )
191 +
192 + export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra"
193 +}
194 +
195 +python_install_all() {
196 + distutils-r1_python_prepare_all
197 +
198 + # Move udev dir to the right place.
199 + local dir=$(get_udevdir)
200 + dodir "${dir%/*}"
201 + mv -vnT "${ED}"/usr/lib/udev "${ED}${dir}" || die
202 +}