Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/wlroots/
Date: Tue, 30 Oct 2018 10:34:03
Message-Id: 1540895553.9cde07e2d17ea005ca19a06ab44f08b4e4f7dd12.mgorny@gentoo
1 commit: 9cde07e2d17ea005ca19a06ab44f08b4e4f7dd12
2 Author: Niccolò Scatena <speedjack95 <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 22 12:27:52 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 10:32:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cde07e2
7
8 dev-libs/wlroots: add live version 9999
9
10 Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12 Closes: https://github.com/gentoo/gentoo/pull/10199
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-libs/wlroots/wlroots-9999.ebuild | 96 ++++++++++++++++++++++++++++++++++++
16 1 file changed, 96 insertions(+)
17
18 diff --git a/dev-libs/wlroots/wlroots-9999.ebuild b/dev-libs/wlroots/wlroots-9999.ebuild
19 new file mode 100644
20 index 00000000000..eae2493458c
21 --- /dev/null
22 +++ b/dev-libs/wlroots/wlroots-9999.ebuild
23 @@ -0,0 +1,96 @@
24 +# Copyright 1999-2018 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +if [[ ${PV} == 9999 ]] ; then
30 + EGIT_REPO_URI="https://github.com/swaywm/wlroots.git"
31 + inherit git-r3
32 +else
33 + SRC_URI="https://github.com/swaywm/wlroots/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 + KEYWORDS="~amd64 ~x86"
35 +fi
36 +
37 +inherit fcaps meson
38 +
39 +DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
40 +HOMEPAGE="https://github.com/swaywm/wlroots"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +IUSE="elogind icccm rootston systemd x11-backend X"
45 +REQUIRED_USE="?? ( elogind systemd )"
46 +
47 +RDEPEND=">=dev-libs/libinput-1.7.0:0=
48 + >=dev-libs/wayland-1.16.0
49 + >=dev-libs/wayland-protocols-1.15
50 + media-libs/mesa[egl,gles2,gbm]
51 + virtual/libudev
52 + x11-libs/libdrm
53 + x11-libs/libxkbcommon
54 + x11-libs/pixman
55 + elogind? ( >=sys-auth/elogind-237 )
56 + icccm? ( x11-libs/xcb-util-wm )
57 + systemd? ( >=sys-apps/systemd-237 )
58 + x11-backend? ( x11-libs/libxcb:0=[xkb] )
59 + X? (
60 + x11-base/xorg-server[wayland]
61 + x11-libs/libxcb:0=
62 + )"
63 +DEPEND="${RDEPEND}"
64 +BDEPEND=">=dev-util/meson-0.48
65 + virtual/pkgconfig"
66 +
67 +FILECAPS=( cap_sys_admin usr/bin/rootston )
68 +
69 +src_configure() {
70 + # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
71 + local emesonargs=(
72 + "-Dxcb-errors=disabled"
73 + -Dlibcap=$(usex filecaps enabled disabled)
74 + -Dxcb-icccm=$(usex icccm enabled disabled)
75 + -Dxcb-xkb=$(usex x11-backend enabled disabled)
76 + -Dxwayland=$(usex X enabled disabled)
77 + -Dx11-backend=$(usex x11-backend enabled disabled)
78 + -Drootston=$(usex rootston true false)
79 + "-Dexamples=false"
80 + "-Dwerror=false"
81 + )
82 + if use systemd ; then
83 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")
84 + elif use elogind ; then
85 + emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=elogind")
86 + else
87 + emesonargs+=("-Dlogind=disabled")
88 + fi
89 +
90 + meson_src_configure
91 +}
92 +
93 +src_install() {
94 + if use rootston ; then
95 + dobin "${BUILD_DIR}"/rootston/rootston
96 + newdoc rootston/rootston.ini.example rootston.ini
97 + fi
98 +
99 + meson_src_install
100 +}
101 +
102 +pkg_postinst() {
103 + elog "You must be in the input group to allow your compositor"
104 + elog "to access input devices via libinput."
105 + if use rootston ; then
106 + elog ""
107 + elog "You should copy (and decompress) the example configuration file"
108 + elog "from ${EROOT:-${ROOT}}/usr/share/doc/${PF}/rootston.ini"
109 + elog "to the working directory from where you launch rootston"
110 + elog "(or pass the '-C path-to-config' option to rootston)."
111 + if ! use systemd && ! use elogind ; then
112 + elog ""
113 + elog "If you use ConsoleKit2, remember to launch rootston using:"
114 + elog "exec ck-launch-session rootston"
115 +
116 + fcaps_pkg_postinst
117 + fi
118 + fi
119 +}