1 |
commit: c5f13f25c3bc678b9a619a1757885d207c3a3277 |
2 |
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 22 21:22:30 2021 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 22 21:26:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f13f25 |
7 |
|
8 |
x11-base/xwayland: new package. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/785430 |
11 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
12 |
|
13 |
x11-base/xwayland/Manifest | 1 + |
14 |
...xwayland-drop-redundantly-installed-files.patch | 27 ++++++++ |
15 |
x11-base/xwayland/metadata.xml | 16 +++++ |
16 |
x11-base/xwayland/xwayland-21.1.1.ebuild | 77 ++++++++++++++++++++++ |
17 |
4 files changed, 121 insertions(+) |
18 |
|
19 |
diff --git a/x11-base/xwayland/Manifest b/x11-base/xwayland/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..2f2adffe714 |
22 |
--- /dev/null |
23 |
+++ b/x11-base/xwayland/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST xwayland-21.1.1.tar.xz 1257776 BLAKE2B 181aca3d3fad3759eb726c6f6141912d588a85bae214f9d395450b6945ee845d28c7a8580e6aaa5f3538d06083312391d24267e6b239bfc533526a1bd7a56f0a SHA512 0cb03d796af183f9fde14c30ef45d94ef466ac4ba3d85dda34e74f91dd94bb75d0c8a867ecb7bda7ea61d98c70a4f73bc98c5a205ea5f69a0e222cd780d263d8 |
26 |
|
27 |
diff --git a/x11-base/xwayland/files/xwayland-drop-redundantly-installed-files.patch b/x11-base/xwayland/files/xwayland-drop-redundantly-installed-files.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..39e0548eaaa |
30 |
--- /dev/null |
31 |
+++ b/x11-base/xwayland/files/xwayland-drop-redundantly-installed-files.patch |
32 |
@@ -0,0 +1,27 @@ |
33 |
+diff --git a/dix/meson.build b/dix/meson.build |
34 |
+index ddc5cc3..bf5bfa3 100644 |
35 |
+--- a/dix/meson.build |
36 |
++++ b/dix/meson.build |
37 |
+@@ -56,8 +56,3 @@ libxserver_main = static_library('libxserver_main', |
38 |
+ include_directories: inc, |
39 |
+ dependencies: common_dep, |
40 |
+ ) |
41 |
+- |
42 |
+-install_data( |
43 |
+- 'protocol.txt', |
44 |
+- install_dir: serverconfigdir, |
45 |
+-) |
46 |
+diff --git a/meson.build b/meson.build |
47 |
+index 4af03ef..791465d 100644 |
48 |
+--- a/meson.build |
49 |
++++ b/meson.build |
50 |
+@@ -520,9 +520,3 @@ subdir('hw') |
51 |
+ if host_machine.system() != 'windows' |
52 |
+ subdir('test') |
53 |
+ endif |
54 |
+- |
55 |
+-install_man(configure_file( |
56 |
+- input: 'man/Xserver.man', |
57 |
+- output: 'Xserver.1', |
58 |
+- configuration: manpage_config, |
59 |
+-)) |
60 |
|
61 |
diff --git a/x11-base/xwayland/metadata.xml b/x11-base/xwayland/metadata.xml |
62 |
new file mode 100644 |
63 |
index 00000000000..db66c9cee4d |
64 |
--- /dev/null |
65 |
+++ b/x11-base/xwayland/metadata.xml |
66 |
@@ -0,0 +1,16 @@ |
67 |
+<?xml version="1.0" encoding="UTF-8"?> |
68 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
69 |
+<pkgmetadata> |
70 |
+<maintainer type="project"> |
71 |
+ <email>x11@g.o</email> |
72 |
+ <name>X11</name> |
73 |
+</maintainer> |
74 |
+<use> |
75 |
+ <flag name="unwind">Enable libunwind usage for backtraces</flag> |
76 |
+ <flag name="xcsecurity">Build Security extension</flag> |
77 |
+ <flag name="rpc">Enable secure rpc</flag> |
78 |
+</use> |
79 |
+<upstream> |
80 |
+ <remote-id type="cpe">cpe:/a:x.org:xorg-server</remote-id> |
81 |
+</upstream> |
82 |
+</pkgmetadata> |
83 |
|
84 |
diff --git a/x11-base/xwayland/xwayland-21.1.1.ebuild b/x11-base/xwayland/xwayland-21.1.1.ebuild |
85 |
new file mode 100644 |
86 |
index 00000000000..52954bdff07 |
87 |
--- /dev/null |
88 |
+++ b/x11-base/xwayland/xwayland-21.1.1.ebuild |
89 |
@@ -0,0 +1,77 @@ |
90 |
+# Copyright 2021 Gentoo Authors |
91 |
+# Distributed under the terms of the GNU General Public License v2 |
92 |
+ |
93 |
+EAPI=7 |
94 |
+ |
95 |
+inherit meson |
96 |
+ |
97 |
+DESCRIPTION="Standalone X server running under Wayland" |
98 |
+HOMEPAGE="https://wayland.freedesktop.org/xserver.html" |
99 |
+SRC_URI="https://xorg.freedesktop.org/archive/individual/xserver/${P}.tar.xz" |
100 |
+ |
101 |
+IUSE="rpc unwind ipv6 xcsecurity selinux" |
102 |
+ |
103 |
+LICENSE="MIT" |
104 |
+SLOT="0" |
105 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
106 |
+ |
107 |
+CDEPEND=" |
108 |
+ >=x11-libs/pixman-0.27.2 |
109 |
+ dev-libs/libbsd |
110 |
+ >=x11-libs/libXfont2-2.0.1 |
111 |
+ >=x11-libs/libXdmcp-1.0.2 |
112 |
+ dev-libs/wayland |
113 |
+ >=x11-libs/libXdmcp-1.0.2 |
114 |
+ >=x11-libs/libdrm-2.4.89 |
115 |
+ >=media-libs/libepoxy-1.5.4[X,egl(+)] |
116 |
+ >=media-libs/mesa-18[X(+),egl,gbm] |
117 |
+ >=x11-libs/libxshmfence-1.1 |
118 |
+ rpc? ( net-libs/libtirpc ) |
119 |
+ >=x11-libs/libXau-1.0.4 |
120 |
+ media-libs/libglvnd[X] |
121 |
+ unwind? ( sys-libs/libunwind ) |
122 |
+ >=dev-libs/wayland-protocols-1.18 |
123 |
+" |
124 |
+ |
125 |
+DEPEND=" |
126 |
+ ${CDEPEND} |
127 |
+ !<=x11-base/xorg-server-1.20.11 |
128 |
+" |
129 |
+ |
130 |
+RDEPEND=" |
131 |
+ ${DEPEND} |
132 |
+ selinux? ( sec-policy/selinux-xserver ) |
133 |
+" |
134 |
+BDEPEND=" |
135 |
+ sys-devel/flex |
136 |
+ dev-util/wayland-scanner |
137 |
+" |
138 |
+ |
139 |
+PATCHES=( |
140 |
+ "${FILESDIR}"/xwayland-drop-redundantly-installed-files.patch |
141 |
+) |
142 |
+ |
143 |
+src_configure() { |
144 |
+ local emesonargs=( |
145 |
+ $(meson_use rpc secure-rpc) |
146 |
+ $(meson_use unwind libunwind) |
147 |
+ $(meson_use ipv6) |
148 |
+ $(meson_use xcsecurity) |
149 |
+ $(meson_use selinux xselinux) |
150 |
+ -Dsha1=libcrypto |
151 |
+ -Ddpms=true |
152 |
+ -Ddri3=true |
153 |
+ -Dglamor=true |
154 |
+ -Dglx=true |
155 |
+ -Dscreensaver=true |
156 |
+ -Dxace=true |
157 |
+ -Dxdmcp=true |
158 |
+ -Dxinerama=true |
159 |
+ -Dxv=true |
160 |
+ -Dxvfb=true |
161 |
+ -Dxwayland-path=/usr/libexec |
162 |
+ -Ddtrace=false |
163 |
+ ) |
164 |
+ |
165 |
+ meson_src_configure |
166 |
+} |