Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/wlroots/
Date: Fri, 22 Feb 2019 22:54:22
Message-Id: 1550874712.057227baf4c9d271098a7597c537c0adb234750b.bman@gentoo
1 commit: 057227baf4c9d271098a7597c537c0adb234750b
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 22 22:31:52 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 22 22:31:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=057227ba
7
8 gui-libs/wlroots: add new category and package
9
10 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
11
12 gui-libs/wlroots/Manifest | 2 +
13 gui-libs/wlroots/metadata.xml | 40 ++++++++++++++
14 gui-libs/wlroots/wlroots-0.2.ebuild | 101 +++++++++++++++++++++++++++++++++++
15 gui-libs/wlroots/wlroots-0.3.ebuild | 101 +++++++++++++++++++++++++++++++++++
16 gui-libs/wlroots/wlroots-9999.ebuild | 101 +++++++++++++++++++++++++++++++++++
17 5 files changed, 345 insertions(+)
18
19 diff --git a/gui-libs/wlroots/Manifest b/gui-libs/wlroots/Manifest
20 new file mode 100644
21 index 00000000000..a4c642cf78c
22 --- /dev/null
23 +++ b/gui-libs/wlroots/Manifest
24 @@ -0,0 +1,2 @@
25 +DIST wlroots-0.2.tar.gz 437638 BLAKE2B dd7ca737ba2dfc00e30c83e973616cefb77fccb793161794361422a2fcbdf7299aacea8d794b910fdf06c9a191a89f7f1530d312545d08d126a729be41eeb424 SHA512 b7727b29ed7e5188d5fa6099687f8e6f48b6b3f17f7a6e136956ad6b607054595de3779118bffd4b9730115eaca2f00c2d30d52f4915b2753a749432ec0c3f2a
26 +DIST wlroots-0.3.tar.gz 473490 BLAKE2B 552bcc5d8bb847dbac5caaddeac830a4de25b4cc80abb6c8b8e610b5e40cc20ff50a145fdfb6bb5f0aa53d218400777ca7a5982c74eb01bd973109b2f8fd7938 SHA512 ccec1426e6ac86fa63f82763d123162fca5be25fb37bbb44a5de651a7764f5325ef21cbe2cf698cb315f0de4719a6bac8eb0ceeffe2111de7c9f4b59e019aaaa
27
28 diff --git a/gui-libs/wlroots/metadata.xml b/gui-libs/wlroots/metadata.xml
29 new file mode 100644
30 index 00000000000..5fb5999bdba
31 --- /dev/null
32 +++ b/gui-libs/wlroots/metadata.xml
33 @@ -0,0 +1,40 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>bman@g.o</email>
39 + <name>Aaron Bauman</name>
40 + </maintainer>
41 + <maintainer type="person">
42 + <email>speedjack95@×××××.com</email>
43 + <name>Niccolò Scatena</name>
44 + </maintainer>
45 + <longdescription lang="en">
46 + Pluggable, composable, unopinionated modules for building a Wayland
47 + compositor.
48 +
49 + wlroots implements a huge variety of Wayland compositor features and
50 + implements them right. By using wlroots, you get high performance,
51 + excellent hardware compatibility, broad support for many wayland
52 + interfaces, and comfortable development tools.
53 +
54 + wlroots is developed under the direction of the <pkg>dev-libs/sway</pkg> project.
55 + </longdescription>
56 + <use>
57 + <flag name="elogind">Enable support for rootless session via elogind</flag>
58 + <flag name="icccm">Use xcb-icccm (from <pkg>x11-libs/xcb-util-wm</pkg>) util library for improved Xwayland introspection</flag>
59 + <flag name="rootston">Build the rootston example compositor</flag>
60 + <flag name="x11-backend">Enable support for handling input/output devices through <pkg>x11-libs/libxcb</pkg></flag>
61 + <flag name="X">Enable support for X11 applications (XWayland)</flag>
62 + </use>
63 + <upstream>
64 + <remote-id type="github">swaywm/wlroots</remote-id>
65 + <maintainer status="active">
66 + <email>sir@×××××.com</email>
67 + <name>Drew DeVault</name>
68 + </maintainer>
69 + <bugs-to>https://github.com/swaywm/wlroots/issues</bugs-to>
70 + <doc>https://github.com/swaywm/wlroots/wiki</doc>
71 + <changelog>https://github.com/swaywm/wlroots/releases</changelog>
72 + </upstream>
73 +</pkgmetadata>
74
75 diff --git a/gui-libs/wlroots/wlroots-0.2.ebuild b/gui-libs/wlroots/wlroots-0.2.ebuild
76 new file mode 100644
77 index 00000000000..a3427d6c6fc
78 --- /dev/null
79 +++ b/gui-libs/wlroots/wlroots-0.2.ebuild
80 @@ -0,0 +1,101 @@
81 +# Copyright 1999-2019 Gentoo Authors
82 +# Distributed under the terms of the GNU General Public License v2
83 +
84 +EAPI=7
85 +
86 +inherit fcaps meson
87 +
88 +DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
89 +HOMEPAGE="https://github.com/swaywm/wlroots"
90 +
91 +if [[ ${PV} == 9999 ]]; then
92 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
93 + inherit git-r3
94 +else
95 + SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
96 + KEYWORDS="~amd64 ~x86"
97 +fi
98 +
99 +LICENSE="MIT"
100 +SLOT="0"
101 +IUSE="elogind icccm rootston systemd x11-backend X"
102 +REQUIRED_USE="?? ( elogind systemd )"
103 +
104 +DEPEND="
105 + >=dev-libs/libinput-1.7.0:0=
106 + >=dev-libs/wayland-1.16.0
107 + media-libs/mesa[egl,gles2,gbm]
108 + virtual/libudev
109 + x11-libs/libdrm
110 + x11-libs/libxkbcommon
111 + x11-libs/pixman
112 + elogind? ( >=sys-auth/elogind-237 )
113 + icccm? ( x11-libs/xcb-util-wm )
114 + systemd? ( >=sys-apps/systemd-237 )
115 + x11-backend? ( x11-libs/libxcb:0= )
116 + X? (
117 + x11-base/xorg-server[wayland]
118 + x11-libs/libxcb:0=
119 + x11-libs/xcb-util-image
120 + )
121 +"
122 +RDEPEND="
123 + ${DEPEND}
124 +"
125 +BDEPEND="
126 + >=dev-libs/wayland-protocols-1.15
127 + virtual/pkgconfig
128 +"
129 +
130 +FILECAPS=( cap_sys_admin usr/bin/rootston )
131 +
132 +src_configure() {
133 + # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
134 + local emesonargs=(
135 + "-Dxcb-errors=disabled"
136 + -Dlibcap=$(usex filecaps enabled disabled)
137 + -Dxcb-icccm=$(usex icccm enabled disabled)
138 + -Dxwayland=$(usex X enabled disabled)
139 + -Dx11-backend=$(usex x11-backend enabled disabled)
140 + $(meson_use rootston)
141 + "-Dexamples=false"
142 + "-Dwerror=false"
143 + )
144 + if use systemd; then
145 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
146 + elif use elogind; then
147 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
148 + else
149 + emesonargs+=("-Dlogind=disabled")
150 + fi
151 +
152 + meson_src_configure
153 +}
154 +
155 +src_install() {
156 + if use rootston; then
157 + dobin "${BUILD_DIR}"/rootston/rootston
158 + newdoc rootston/rootston.ini.example rootston.ini
159 + fi
160 +
161 + meson_src_install
162 +}
163 +
164 +pkg_postinst() {
165 + elog "You must be in the input group to allow your compositor"
166 + elog "to access input devices via libinput."
167 + if use rootston; then
168 + elog ""
169 + elog "You should copy (and decompress) the example configuration file"
170 + elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
171 + elog "to the working directory from where you launch rootston"
172 + elog "(or pass the '-C path-to-config' option to rootston)."
173 + if ! use systemd && ! use elogind; then
174 + elog ""
175 + elog "If you use ConsoleKit2, remember to launch rootston using:"
176 + elog "exec ck-launch-session rootston"
177 +
178 + fcaps_pkg_postinst
179 + fi
180 + fi
181 +}
182
183 diff --git a/gui-libs/wlroots/wlroots-0.3.ebuild b/gui-libs/wlroots/wlroots-0.3.ebuild
184 new file mode 100644
185 index 00000000000..c96b1fcfc3f
186 --- /dev/null
187 +++ b/gui-libs/wlroots/wlroots-0.3.ebuild
188 @@ -0,0 +1,101 @@
189 +# Copyright 1999-2019 Gentoo Authors
190 +# Distributed under the terms of the GNU General Public License v2
191 +
192 +EAPI=7
193 +
194 +inherit fcaps meson
195 +
196 +DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
197 +HOMEPAGE="https://github.com/swaywm/wlroots"
198 +
199 +if [[ ${PV} == 9999 ]]; then
200 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
201 + inherit git-r3
202 +else
203 + SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
204 + KEYWORDS="~amd64 ~x86"
205 +fi
206 +
207 +LICENSE="MIT"
208 +SLOT="0"
209 +IUSE="elogind icccm rootston systemd x11-backend X"
210 +REQUIRED_USE="?? ( elogind systemd )"
211 +
212 +DEPEND="
213 + >=dev-libs/libinput-1.7.0:0=
214 + >=dev-libs/wayland-1.16.0
215 + media-libs/mesa[egl,gles2,gbm]
216 + virtual/libudev
217 + x11-libs/libdrm
218 + x11-libs/libxkbcommon
219 + x11-libs/pixman
220 + elogind? ( >=sys-auth/elogind-237 )
221 + icccm? ( x11-libs/xcb-util-wm )
222 + systemd? ( >=sys-apps/systemd-237 )
223 + x11-backend? ( x11-libs/libxcb:0= )
224 + X? (
225 + x11-base/xorg-server[wayland]
226 + x11-libs/libxcb:0=
227 + x11-libs/xcb-util-image
228 + )
229 +"
230 +RDEPEND="
231 + ${DEPEND}
232 +"
233 +BDEPEND="
234 + >=dev-libs/wayland-protocols-1.16
235 + virtual/pkgconfig
236 +"
237 +
238 +FILECAPS=( cap_sys_admin usr/bin/rootston )
239 +
240 +src_configure() {
241 + # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
242 + local emesonargs=(
243 + "-Dxcb-errors=disabled"
244 + -Dlibcap=$(usex filecaps enabled disabled)
245 + -Dxcb-icccm=$(usex icccm enabled disabled)
246 + -Dxwayland=$(usex X enabled disabled)
247 + -Dx11-backend=$(usex x11-backend enabled disabled)
248 + $(meson_use rootston)
249 + "-Dexamples=false"
250 + "-Dwerror=false"
251 + )
252 + if use systemd; then
253 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
254 + elif use elogind; then
255 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
256 + else
257 + emesonargs+=("-Dlogind=disabled")
258 + fi
259 +
260 + meson_src_configure
261 +}
262 +
263 +src_install() {
264 + if use rootston; then
265 + dobin "${BUILD_DIR}"/rootston/rootston
266 + newdoc rootston/rootston.ini.example rootston.ini
267 + fi
268 +
269 + meson_src_install
270 +}
271 +
272 +pkg_postinst() {
273 + elog "You must be in the input group to allow your compositor"
274 + elog "to access input devices via libinput."
275 + if use rootston; then
276 + elog ""
277 + elog "You should copy (and decompress) the example configuration file"
278 + elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
279 + elog "to the working directory from where you launch rootston"
280 + elog "(or pass the '-C path-to-config' option to rootston)."
281 + if ! use systemd && ! use elogind; then
282 + elog ""
283 + elog "If you use ConsoleKit2, remember to launch rootston using:"
284 + elog "exec ck-launch-session rootston"
285 +
286 + fcaps_pkg_postinst
287 + fi
288 + fi
289 +}
290
291 diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild
292 new file mode 100644
293 index 00000000000..c96b1fcfc3f
294 --- /dev/null
295 +++ b/gui-libs/wlroots/wlroots-9999.ebuild
296 @@ -0,0 +1,101 @@
297 +# Copyright 1999-2019 Gentoo Authors
298 +# Distributed under the terms of the GNU General Public License v2
299 +
300 +EAPI=7
301 +
302 +inherit fcaps meson
303 +
304 +DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
305 +HOMEPAGE="https://github.com/swaywm/wlroots"
306 +
307 +if [[ ${PV} == 9999 ]]; then
308 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
309 + inherit git-r3
310 +else
311 + SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
312 + KEYWORDS="~amd64 ~x86"
313 +fi
314 +
315 +LICENSE="MIT"
316 +SLOT="0"
317 +IUSE="elogind icccm rootston systemd x11-backend X"
318 +REQUIRED_USE="?? ( elogind systemd )"
319 +
320 +DEPEND="
321 + >=dev-libs/libinput-1.7.0:0=
322 + >=dev-libs/wayland-1.16.0
323 + media-libs/mesa[egl,gles2,gbm]
324 + virtual/libudev
325 + x11-libs/libdrm
326 + x11-libs/libxkbcommon
327 + x11-libs/pixman
328 + elogind? ( >=sys-auth/elogind-237 )
329 + icccm? ( x11-libs/xcb-util-wm )
330 + systemd? ( >=sys-apps/systemd-237 )
331 + x11-backend? ( x11-libs/libxcb:0= )
332 + X? (
333 + x11-base/xorg-server[wayland]
334 + x11-libs/libxcb:0=
335 + x11-libs/xcb-util-image
336 + )
337 +"
338 +RDEPEND="
339 + ${DEPEND}
340 +"
341 +BDEPEND="
342 + >=dev-libs/wayland-protocols-1.16
343 + virtual/pkgconfig
344 +"
345 +
346 +FILECAPS=( cap_sys_admin usr/bin/rootston )
347 +
348 +src_configure() {
349 + # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
350 + local emesonargs=(
351 + "-Dxcb-errors=disabled"
352 + -Dlibcap=$(usex filecaps enabled disabled)
353 + -Dxcb-icccm=$(usex icccm enabled disabled)
354 + -Dxwayland=$(usex X enabled disabled)
355 + -Dx11-backend=$(usex x11-backend enabled disabled)
356 + $(meson_use rootston)
357 + "-Dexamples=false"
358 + "-Dwerror=false"
359 + )
360 + if use systemd; then
361 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
362 + elif use elogind; then
363 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
364 + else
365 + emesonargs+=("-Dlogind=disabled")
366 + fi
367 +
368 + meson_src_configure
369 +}
370 +
371 +src_install() {
372 + if use rootston; then
373 + dobin "${BUILD_DIR}"/rootston/rootston
374 + newdoc rootston/rootston.ini.example rootston.ini
375 + fi
376 +
377 + meson_src_install
378 +}
379 +
380 +pkg_postinst() {
381 + elog "You must be in the input group to allow your compositor"
382 + elog "to access input devices via libinput."
383 + if use rootston; then
384 + elog ""
385 + elog "You should copy (and decompress) the example configuration file"
386 + elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
387 + elog "to the working directory from where you launch rootston"
388 + elog "(or pass the '-C path-to-config' option to rootston)."
389 + if ! use systemd && ! use elogind; then
390 + elog ""
391 + elog "If you use ConsoleKit2, remember to launch rootston using:"
392 + elog "exec ck-launch-session rootston"
393 +
394 + fcaps_pkg_postinst
395 + fi
396 + fi
397 +}