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: Wed, 07 Apr 2021 23:05:13
Message-Id: 1617836551.6b3ca1e852061948fbfa53fcb657d1f3422cb28e.chewi@gentoo
1 commit: 6b3ca1e852061948fbfa53fcb657d1f3422cb28e
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 7 23:02:31 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 7 23:02:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3ca1e8
7
8 x11-wm/xpra: Version bump to 4.1.2
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 x11-wm/xpra/Manifest | 1 +
14 x11-wm/xpra/xpra-4.1.2.ebuild | 159 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 160 insertions(+)
16
17 diff --git a/x11-wm/xpra/Manifest b/x11-wm/xpra/Manifest
18 index fdc3727bbaf..0103f4ad8be 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.0.6.tar.xz 2797752 BLAKE2B 3f2d4108fec1f1b5c0cd38a26f1a2c41af253fd234427e8e54104ff3742b9f7ae3e1863db837addd76acc6856b6f3cfcbde97edc2bc75314b215d4ca46a816f8 SHA512 e3dc66040898ed40ef12b8cdb89e5f42c2f36edc071afb435334389e727f376ddc116dbee47018468bff24f2cdd7be35750b58bc108ba73c5558bd9eccbd04ea
24 DIST xpra-4.1.1.tar.xz 2674236 BLAKE2B 388306b33d99e97e07eb4a0f14ad33a08f9b367fa8e8b6d0553b0815ceb1b99540d027d2bdf8b6ef0a8ad3dda5a92861acf6c429034b7dd7e061eaefe86ade89 SHA512 b6312fb40849446ad88181664256610fcc673c5263449f610dd3fe40d0f331b1493efdee0560b78ef217ebc168d81a020b3bc97d369f9c1810a73e62e8e02873
25 +DIST xpra-4.1.2.tar.xz 2676588 BLAKE2B db3694fdd9f7e20ba93099ecde50d712de41bb64a2d317b9f10e349b7f501015d083c212250206c0f3e25e154311a096ce4c17972131af68584be666bbf7e067 SHA512 860533c4173b92ee110e65849110870a3b129b993d8a2a2308142474164e4f1c45984669e7e3963540290192310de5d2de0e0713b80f4cb8c6ae7f9c3bb0814e
26
27 diff --git a/x11-wm/xpra/xpra-4.1.2.ebuild b/x11-wm/xpra/xpra-4.1.2.ebuild
28 new file mode 100644
29 index 00000000000..65e29330271
30 --- /dev/null
31 +++ b/x11-wm/xpra/xpra-4.1.2.ebuild
32 @@ -0,0 +1,159 @@
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
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.xz"
46 +
47 +LICENSE="GPL-2 BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="brotli +client +clipboard csc cups dbus doc ffmpeg jpeg +lz4 lzo minimal opengl pillow 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 + server? (
111 + x11-base/xorg-server[-minimal,xvfb]
112 + x11-drivers/xf86-input-void
113 + )
114 +"
115 +BDEPEND="
116 + virtual/pkgconfig
117 + $(python_gen_cond_dep '
118 + >=dev-python/cython-0.16[${PYTHON_USEDEP}]
119 + ')
120 + doc? ( app-text/pandoc )
121 +"
122 +
123 +RESTRICT="!test? ( test )"
124 +
125 +PATCHES=(
126 + "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch
127 + "${FILESDIR}"/${PN}-3.0.2-ldconfig.patch
128 + "${FILESDIR}"/${PN}-4.0.3-suid-warning.patch
129 +)
130 +
131 +pkg_postinst() {
132 + tmpfiles_process /usr/lib/tmpfiles.d/xpra.conf
133 +
134 + xdg_pkg_postinst
135 +}
136 +
137 +python_prepare_all() {
138 + hprefixify -w '/os.path/' setup.py
139 + hprefixify tmpfiles.d/xpra.conf xpra/server/server_util.py \
140 + xpra/platform{/xposix,}/paths.py xpra/scripts/server.py
141 +
142 + sed -r -e "/\bdoc_dir =/s:/${PN}\":/${PF}/html\":" \
143 + -i setup.py || die
144 +
145 + if use minimal; then
146 + sed -r -e 's/^(pam|scripts|xdg_open)_ENABLED.*/\1_ENABLED=False/' \
147 + -i setup.py || die
148 + fi
149 +
150 + distutils-r1_python_prepare_all
151 +}
152 +
153 +python_configure_all() {
154 + sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \
155 + -i setup.py || die
156 +
157 + mydistutilsargs=(
158 + --without-PIC
159 + --without-Xdummy
160 + $(use_with client)
161 + $(use_with clipboard)
162 + $(use_with csc csc_swscale)
163 + --without-csc_libyuv
164 + --without-cuda_rebuild
165 + --without-cuda_kernels
166 + $(use_with cups printing)
167 + --without-debug
168 + $(use_with dbus)
169 + $(use_with doc docs)
170 + $(use_with ffmpeg dec_avcodec2)
171 + $(use_with ffmpeg enc_ffmpeg)
172 + $(use_with ffmpeg enc_x264)
173 + $(use_with ffmpeg enc_x265)
174 + --with-gtk3
175 + $(use_with jpeg jpeg_encoder)
176 + $(use_with jpeg jpeg_decoder)
177 + --without-mdns
178 + $(use_with opengl)
179 + $(use_with server shadow)
180 + $(use_with server)
181 + $(use_with sound)
182 + --with-strict
183 + $(use_with vpx)
184 + --with-warn
185 + $(use_with webcam)
186 + $(use_with webp)
187 + --with-x11
188 + )
189 +
190 + export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra"
191 +}