Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/xpra/, x11-wm/xpra/files/
Date: Fri, 29 Nov 2019 04:41:34
Message-Id: 1575002474.297945bba01199f3e880e9449c85c09eab8e9e21.heroxbd@gentoo
1 commit: 297945bba01199f3e880e9449c85c09eab8e9e21
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 29 04:30:21 2019 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 29 04:41:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=297945bb
7
8 x11-wm/xpra: version bump to Python 3.
9
10 Add myself to maintainers.
11
12 Closes: https://bugs.gentoo.org/696784
13 Package-Manager: Portage-2.3.79, Repoman-2.3.18
14 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
15
16 x11-wm/xpra/Manifest | 1 +
17 .../xpra-3.0.2_ignore-gentoo-no-compile.patch | 13 ++
18 x11-wm/xpra/metadata.xml | 4 +
19 x11-wm/xpra/xpra-3.0.2.ebuild | 154 +++++++++++++++++++++
20 4 files changed, 172 insertions(+)
21
22 diff --git a/x11-wm/xpra/Manifest b/x11-wm/xpra/Manifest
23 index 748ea77fabc..8366143c645 100644
24 --- a/x11-wm/xpra/Manifest
25 +++ b/x11-wm/xpra/Manifest
26 @@ -1,3 +1,4 @@
27 DIST xpra-2.2.2.tar.xz 2195836 BLAKE2B 39d8354738df399d98248a0d455c3b7fa6124f374f0f6e0a476bae53b9728b9ab16c11bd759b6ff52a28295445809fb18b3379b7fc620f0916944f738a00b280 SHA512 5c09e29732c9ca7d03557e4e6070517b192484e67944532d5aeca53e518c8617f7d3a5919a2557050fbb9aa4123a0302a53720dd7036823db83588264dd3e6d2
28 DIST xpra-2.2.6.tar.xz 2198720 BLAKE2B 41f238e98dbb60598cffcc3960375a525658c72db478acace0acb964fe3ee039acb5e352a76ffb5724b6c4acd63ea510505f6841f688c67d0ae2a3cbc2270642 SHA512 f47b7a8b08fc90bdf3cba91e4f7343785cdf6e24a0979f4564e9f6885b0f36c03ff5656e2d7ac5fd21895faca7b00e8839ebd66c82122a2c7cab2b40bd44e745
29 DIST xpra-2.4.3.tar.xz 2434852 BLAKE2B 3d2dd4d8a64a20a88004a91f95d8e6165f45dac7a3d725f41c437d605f55bbd903284e7e829e02c1e94e33c3777ce660c55b469fb5b1f6c5025853b0cae1a6c3 SHA512 5174f7852571eaeb6c2fb629aa2686e19bff7251622ff08903af188989f132b73e4509c98edfac9cddd0f582e63d0ffae94442111a7bfcef8013b3fc87dffd54
30 +DIST xpra-3.0.2.tar.xz 2749196 BLAKE2B 3c8745657a12637704fb88ac7b867ab387ef7ed2250396d9e534aecf81e40f85332a2c51ba49638834012f4a4d85c03bd7e49ee259bb2400aeb60fb06abf8b59 SHA512 115f606ff5886d99a906f318cb1a7a4a86e80ebf23e4336e67938267d92ef624de577cc8fc06c6ce541b7c44a0cef58d930b5928f32e24dfc67c72127c7b623c
31
32 diff --git a/x11-wm/xpra/files/xpra-3.0.2_ignore-gentoo-no-compile.patch b/x11-wm/xpra/files/xpra-3.0.2_ignore-gentoo-no-compile.patch
33 new file mode 100644
34 index 00000000000..5823ac8c167
35 --- /dev/null
36 +++ b/x11-wm/xpra/files/xpra-3.0.2_ignore-gentoo-no-compile.patch
37 @@ -0,0 +1,13 @@
38 +Index: xpra-3.0.2/setup.py
39 +===================================================================
40 +--- xpra-3.0.2.orig/setup.py
41 ++++ xpra-3.0.2/setup.py
42 +@@ -516,7 +516,7 @@ def cython_add(extension, min_version="0
43 + #python2.7 setup.py build -b build-2.7 install --no-compile \
44 + # --root=/var/tmp/portage/x11-wm/xpra-0.7.0/temp/images/2.7
45 + if "--no-compile" in sys.argv and not ("build" in sys.argv and "install" in sys.argv):
46 +- return
47 ++ pass
48 + assert cython_ENABLED, "cython compilation is disabled"
49 + cython_version_check(min_version)
50 + from Cython.Distutils import build_ext
51
52 diff --git a/x11-wm/xpra/metadata.xml b/x11-wm/xpra/metadata.xml
53 index 9ac095e40d6..653674e9188 100644
54 --- a/x11-wm/xpra/metadata.xml
55 +++ b/x11-wm/xpra/metadata.xml
56 @@ -5,6 +5,10 @@
57 <email>dilfridge@g.o</email>
58 <name>Andreas K. Huettel</name>
59 </maintainer>
60 +<maintainer type="person">
61 + <email>heroxbd@g.o</email>
62 + <name>Benda Xu</name>
63 +</maintainer>
64 <upstream>
65 <bugs-to>https://www.xpra.org/trac/report</bugs-to>
66 </upstream>
67
68 diff --git a/x11-wm/xpra/xpra-3.0.2.ebuild b/x11-wm/xpra/xpra-3.0.2.ebuild
69 new file mode 100644
70 index 00000000000..26a8b868a47
71 --- /dev/null
72 +++ b/x11-wm/xpra/xpra-3.0.2.ebuild
73 @@ -0,0 +1,154 @@
74 +# Copyright 1999-2019 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=6
78 +
79 +# PyCObject_Check and PyCObject_AsVoidPtr vanished with python 3.3
80 +PYTHON_COMPAT=( python3_6 )
81 +inherit xdg distutils-r1 eutils flag-o-matic user tmpfiles prefix
82 +
83 +DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy"
84 +HOMEPAGE="http://xpra.org/ http://xpra.org/src/"
85 +SRC_URI="http://xpra.org/src/${P}.tar.xz"
86 +
87 +LICENSE="GPL-2 BSD"
88 +SLOT="0"
89 +KEYWORDS="~amd64 ~x86"
90 +IUSE="+client +clipboard csc cups dbus dec_avcodec2 enc_ffmpeg enc_x264 enc_x265 jpeg libav +lz4 lzo opengl pillow pulseaudio server sound test vpx webcam webp"
91 +
92 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
93 + clipboard? ( || ( server client ) )
94 + cups? ( dbus )
95 + opengl? ( client )
96 + || ( client server )
97 + client? ( enc_x264? ( dec_avcodec2 ) enc_x265? ( dec_avcodec2 ) )"
98 +
99 +COMMON_DEPEND="${PYTHON_DEPS}
100 + dev-python/pygobject:3[${PYTHON_USEDEP}]
101 + x11-libs/libX11
102 + x11-libs/libXcomposite
103 + x11-libs/libXdamage
104 + x11-libs/libXfixes
105 + x11-libs/libXrandr
106 + x11-libs/libXtst
107 + x11-libs/libxkbfile
108 + csc? (
109 + !libav? ( >=media-video/ffmpeg-1.2.2:0= )
110 + libav? ( media-video/libav:0= )
111 + )
112 + dec_avcodec2? (
113 + !libav? ( >=media-video/ffmpeg-2:0=[x264,x265] )
114 + libav? ( media-video/libav:0=[x264,x265] )
115 + )
116 + enc_ffmpeg? (
117 + !libav? ( >=media-video/ffmpeg-3.2.2:0= )
118 + libav? ( media-video/libav:0= )
119 + )
120 + enc_x264? ( media-libs/x264
121 + !libav? ( >=media-video/ffmpeg-1.0.4:0=[x264] )
122 + libav? ( media-video/libav:0=[x264] )
123 + )
124 + enc_x265? ( media-libs/x265
125 + !libav? ( >=media-video/ffmpeg-2:0=[x264] )
126 + libav? ( media-video/libav:0=[x264] ) )
127 + jpeg? ( media-libs/libjpeg-turbo )
128 + opengl? ( dev-python/pygtkglext )
129 + pulseaudio? ( media-sound/pulseaudio )
130 + sound? ( media-libs/gstreamer:1.0
131 + media-libs/gst-plugins-base:1.0
132 + dev-python/gst-python:1.0 )
133 + vpx? ( media-libs/libvpx virtual/ffmpeg )
134 + webp? ( media-libs/libwebp )"
135 +
136 +RDEPEND="${COMMON_DEPEND}
137 + dev-python/netifaces[${PYTHON_USEDEP}]
138 + dev-python/rencode[${PYTHON_USEDEP}]
139 + dev-python/pillow[jpeg?,${PYTHON_USEDEP}]
140 + virtual/ssh
141 + x11-apps/xmodmap
142 + cups? ( dev-python/pycups[${PYTHON_USEDEP}] )
143 + dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
144 + lz4? ( dev-python/lz4[${PYTHON_USEDEP}] )
145 + lzo? ( >=dev-python/python-lzo-0.7.0[${PYTHON_USEDEP}] )
146 + opengl? (
147 + client? ( dev-python/pyopengl_accelerate[${PYTHON_USEDEP}] )
148 + )
149 + server? ( x11-base/xorg-server[-minimal,xvfb]
150 + x11-drivers/xf86-input-void
151 + )
152 + webcam? ( dev-python/numpy[${PYTHON_USEDEP}]
153 + media-libs/opencv[python]
154 + dev-python/pyinotify[${PYTHON_USEDEP}] )"
155 +DEPEND="${COMMON_DEPEND}
156 + virtual/pkgconfig
157 + >=dev-python/cython-0.16[${PYTHON_USEDEP}]"
158 +
159 +PATCHES=( "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch
160 + "${FILESDIR}"/${PN}-2.0-suid-warning.patch )
161 +
162 +pkg_postinst() {
163 + enewgroup ${PN}
164 + tmpfiles_process /usr/lib/tmpfiles.d/xpra.conf
165 +
166 + xdg_pkg_postinst
167 +}
168 +
169 +python_prepare_all() {
170 + hprefixify -w '/os.path/' setup.py
171 + hprefixify tmpfiles.d/xpra.conf xpra/server/server_util.py \
172 + xpra/platform{/xposix,}/paths.py xpra/scripts/server.py
173 +
174 + distutils-r1_python_prepare_all
175 +}
176 +
177 +python_configure_all() {
178 + sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \
179 + -i setup.py || die
180 +
181 + mydistutilsargs=(
182 + --without-PIC
183 + --without-Xdummy
184 + $(use_with client)
185 + $(use_with clipboard)
186 + $(use_with csc csc_swscale)
187 + --without-csc_libyuv
188 + --without-cuda_rebuild
189 + --without-cuda_kernels
190 + $(use_with cups printing)
191 + --without-debug
192 + $(use_with dbus)
193 + $(use_with dec_avcodec2)
194 + $(use_with enc_ffmpeg)
195 + $(use_with enc_x264)
196 + $(use_with enc_x265)
197 + --without-gtk2
198 + --with-gtk3
199 + --without-html5
200 + $(use_with jpeg jpeg_encoder)
201 + $(use_with jpeg jpeg_decoder)
202 + --without-mdns
203 + --without-minify
204 + $(use_with opengl)
205 + $(use_with server shadow)
206 + $(use_with server)
207 + $(use_with sound)
208 + --with-strict
209 + $(use_with vpx)
210 + --with-warn
211 + $(use_with webcam)
212 + $(use_with webp)
213 + --with-x11
214 + )
215 +
216 + # see https://www.xpra.org/trac/ticket/1080
217 + # and http://trac.cython.org/ticket/395
218 + append-cflags -fno-strict-aliasing
219 +
220 + export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra"
221 +}
222 +
223 +src_compile() {
224 + # xpra calls `ldconfig -p` during compile to locate libraries.
225 + addpredict /etc
226 + distutils-r1_src_compile
227 +}