1 |
commit: 87a857c44efc3e04d32b5aae37b0d480fdd86fdc |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 14:59:45 2020 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 15:06:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87a857c4 |
7 |
|
8 |
x11-wm/xpra: bump to 4.0.5. |
9 |
|
10 |
Add USE=minimal for disabling bloat features. |
11 |
|
12 |
Add pyobject[cairo] dependency. |
13 |
|
14 |
Suggested-by: kavol <AT> email.cz |
15 |
Closes: https://bugs.gentoo.org/752504 |
16 |
Package-Manager: Portage-3.0.12, Repoman-3.0.1 |
17 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
18 |
|
19 |
x11-wm/xpra/Manifest | 1 + |
20 |
x11-wm/xpra/xpra-4.0.5.ebuild | 144 ++++++++++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 145 insertions(+) |
22 |
|
23 |
diff --git a/x11-wm/xpra/Manifest b/x11-wm/xpra/Manifest |
24 |
index 93154bc9e09..8a4b5fa5d88 100644 |
25 |
--- a/x11-wm/xpra/Manifest |
26 |
+++ b/x11-wm/xpra/Manifest |
27 |
@@ -1,3 +1,4 @@ |
28 |
DIST xpra-3.0.2.tar.xz 2749196 BLAKE2B 3c8745657a12637704fb88ac7b867ab387ef7ed2250396d9e534aecf81e40f85332a2c51ba49638834012f4a4d85c03bd7e49ee259bb2400aeb60fb06abf8b59 SHA512 115f606ff5886d99a906f318cb1a7a4a86e80ebf23e4336e67938267d92ef624de577cc8fc06c6ce541b7c44a0cef58d930b5928f32e24dfc67c72127c7b623c |
29 |
DIST xpra-3.0.5.tar.xz 2752016 BLAKE2B a36d6a4ebb0b14665014da92d510c0d5f978c96db653709ddc09a1015426d6ac6f71f9a221db68ee1114c95eeaca6600f9e49102ce9f936d9b0ee298ac432647 SHA512 3dbc122ebc8c4aa67154acfe92668ac364d8469022b03e28946d763e4d396f8c707690b2a4dbf07b55545259a53b46c9dd94e6e40131289ccc3dce6a88107681 |
30 |
DIST xpra-4.0.4.tar.xz 2792512 BLAKE2B e16c47e82cf9f8712521c8f9c436b7bb819d9469fc0135ade1f2c9fc6f2a8a0fecf417caae87a1eca9c4b6daec1a82add5d6547208caee1a1d681ebc7b3d3d3b SHA512 91a90cdab775ec2501ef1601188b97ca4aa741e541f8d941add8d509767790a144b67f094177dda7539eff305710f2c834b90a93e9441437dac615677963094c |
31 |
+DIST xpra-4.0.5.tar.xz 2795828 BLAKE2B fed6514d75dbb08f386325e30e375fd2077db1dad91602e575e3955a622a52ade2fc8e0c6c823d8a495684afb3a2f55f27e28abdf8734d0eca25275a3d358193 SHA512 d2aa2b70b6ec702bca5b0c2b06378107d45c4cad79f83ee2a1ed27fd5f66474e2d8e1d28d5111e60417ed089f91bab0b1566b0c9b3dcf6f0cb5e204ff5c42c92 |
32 |
|
33 |
diff --git a/x11-wm/xpra/xpra-4.0.5.ebuild b/x11-wm/xpra/xpra-4.0.5.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..49c1939400a |
36 |
--- /dev/null |
37 |
+++ b/x11-wm/xpra/xpra-4.0.5.ebuild |
38 |
@@ -0,0 +1,144 @@ |
39 |
+# Copyright 1999-2020 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
45 |
+DISTUTILS_USE_SETUPTOOLS=no |
46 |
+inherit xdg distutils-r1 eutils flag-o-matic tmpfiles prefix |
47 |
+ |
48 |
+DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy" |
49 |
+HOMEPAGE="http://xpra.org/ http://xpra.org/src/" |
50 |
+SRC_URI="http://xpra.org/src/${P}.tar.xz" |
51 |
+ |
52 |
+LICENSE="GPL-2 BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="brotli +client +clipboard csc cups dbus ffmpeg jpeg +lz4 lzo minimal opengl pillow pulseaudio server sound test vpx webcam webp" |
56 |
+ |
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
58 |
+ || ( client server ) |
59 |
+ cups? ( dbus ) |
60 |
+ opengl? ( client ) |
61 |
+" |
62 |
+ |
63 |
+COMMON_DEPEND="${PYTHON_DEPS} |
64 |
+ dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] |
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 |
+ opengl? ( dev-python/pyopengl ) |
78 |
+ pulseaudio? ( |
79 |
+ media-sound/pulseaudio |
80 |
+ media-plugins/gst-plugins-pulse:1.0 |
81 |
+ ) |
82 |
+ sound? ( media-libs/gstreamer:1.0 |
83 |
+ media-libs/gst-plugins-base:1.0 |
84 |
+ dev-python/gst-python:1.0 ) |
85 |
+ vpx? ( media-libs/libvpx media-video/ffmpeg ) |
86 |
+ webp? ( media-libs/libwebp ) |
87 |
+" |
88 |
+RDEPEND="${COMMON_DEPEND} |
89 |
+ acct-group/xpra |
90 |
+ dev-python/netifaces[${PYTHON_USEDEP}] |
91 |
+ dev-python/rencode[${PYTHON_USEDEP}] |
92 |
+ dev-python/pillow[jpeg?,${PYTHON_USEDEP}] |
93 |
+ virtual/ssh |
94 |
+ x11-apps/xmodmap |
95 |
+ cups? ( dev-python/pycups[${PYTHON_USEDEP}] ) |
96 |
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) |
97 |
+ lz4? ( dev-python/lz4[${PYTHON_USEDEP}] ) |
98 |
+ lzo? ( >=dev-python/python-lzo-0.7.0[${PYTHON_USEDEP}] ) |
99 |
+ opengl? ( |
100 |
+ client? ( dev-python/pyopengl_accelerate[${PYTHON_USEDEP}] ) |
101 |
+ ) |
102 |
+ server? ( x11-base/xorg-server[-minimal,xvfb] |
103 |
+ x11-drivers/xf86-input-void |
104 |
+ ) |
105 |
+ webcam? ( dev-python/numpy[${PYTHON_USEDEP}] |
106 |
+ media-libs/opencv[python] |
107 |
+ dev-python/pyinotify[${PYTHON_USEDEP}] )" |
108 |
+DEPEND="${COMMON_DEPEND} |
109 |
+ virtual/pkgconfig |
110 |
+ >=dev-python/cython-0.16[${PYTHON_USEDEP}]" |
111 |
+ |
112 |
+RESTRICT="!test? ( test )" |
113 |
+ |
114 |
+PATCHES=( |
115 |
+ "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch |
116 |
+ "${FILESDIR}"/${PN}-3.0.2-ldconfig.patch |
117 |
+ "${FILESDIR}"/${PN}-4.0.3-suid-warning.patch |
118 |
+) |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ tmpfiles_process /usr/lib/tmpfiles.d/xpra.conf |
122 |
+ |
123 |
+ xdg_pkg_postinst |
124 |
+} |
125 |
+ |
126 |
+python_prepare_all() { |
127 |
+ hprefixify -w '/os.path/' setup.py |
128 |
+ hprefixify tmpfiles.d/xpra.conf xpra/server/server_util.py \ |
129 |
+ xpra/platform{/xposix,}/paths.py xpra/scripts/server.py |
130 |
+ |
131 |
+ if use minimal; then |
132 |
+ sed -r -e 's/^(pam|scripts|xdg_open)_ENABLED.*/\1_ENABLED=False/' \ |
133 |
+ -i setup.py || die |
134 |
+ fi |
135 |
+ |
136 |
+ distutils-r1_python_prepare_all |
137 |
+} |
138 |
+ |
139 |
+python_configure_all() { |
140 |
+ sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \ |
141 |
+ -i setup.py || die |
142 |
+ |
143 |
+ mydistutilsargs=( |
144 |
+ --without-PIC |
145 |
+ --without-Xdummy |
146 |
+ $(use_with client) |
147 |
+ $(use_with clipboard) |
148 |
+ $(use_with csc csc_swscale) |
149 |
+ --without-csc_libyuv |
150 |
+ --without-cuda_rebuild |
151 |
+ --without-cuda_kernels |
152 |
+ $(use_with cups printing) |
153 |
+ --without-debug |
154 |
+ $(use_with dbus) |
155 |
+ $(use_with ffmpeg dec_avcodec2) |
156 |
+ $(use_with ffmpeg enc_ffmpeg) |
157 |
+ $(use_with ffmpeg enc_x264) |
158 |
+ $(use_with ffmpeg enc_x265) |
159 |
+ --with-gtk3 |
160 |
+ --without-html5 |
161 |
+ $(use_with jpeg jpeg_encoder) |
162 |
+ $(use_with jpeg jpeg_decoder) |
163 |
+ --without-mdns |
164 |
+ --without-minify |
165 |
+ $(use_with opengl) |
166 |
+ $(use_with server shadow) |
167 |
+ $(use_with server) |
168 |
+ $(use_with sound) |
169 |
+ --with-strict |
170 |
+ $(use_with vpx) |
171 |
+ --with-warn |
172 |
+ $(use_with webcam) |
173 |
+ $(use_with webp) |
174 |
+ --with-x11 |
175 |
+ ) |
176 |
+ |
177 |
+ # see https://www.xpra.org/trac/ticket/1080 |
178 |
+ # and http://trac.cython.org/ticket/395 |
179 |
+ append-cflags -fno-strict-aliasing |
180 |
+ |
181 |
+ export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra" |
182 |
+} |