Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/weston/
Date: Sun, 10 Mar 2019 13:10:47
Message-Id: 1552223341.e9b91e3e81bc779c07b7b52619277ce6e873fae9.chewi@gentoo
1 commit: e9b91e3e81bc779c07b7b52619277ce6e873fae9
2 Author: makepost <makepost <AT> firemail <DOT> cc>
3 AuthorDate: Sun Mar 10 07:15:22 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 13:09:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b91e3e
7
8 dev-libs/weston-9999: migrate to meson
9
10 Upstream after v6 won't support autotools:
11 https://lists.freedesktop.org/archives/wayland-devel/2019-February/040080.html
12
13 Also bump the wayland dependency, because current master matches v6
14 beta, and weston 6 will be released alongside wayland 1.17. Before the
15 release, >=1.17 resolves to 9999, which is how I'm testing it.
16
17 Signed-off-by: makepost <makepost <AT> firemail.cc>
18 Closes: https://github.com/gentoo/gentoo/pull/11326
19 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
20
21 dev-libs/weston/weston-9999.ebuild | 97 +++++++++++++++-----------------------
22 1 file changed, 39 insertions(+), 58 deletions(-)
23
24 diff --git a/dev-libs/weston/weston-9999.ebuild b/dev-libs/weston/weston-9999.ebuild
25 index 40aa43e4412..1a039dffa31 100644
26 --- a/dev-libs/weston/weston-9999.ebuild
27 +++ b/dev-libs/weston/weston-9999.ebuild
28 @@ -1,4 +1,4 @@
29 -# Copyright 1999-2018 Gentoo Authors
30 +# Copyright 1999-2019 Gentoo Authors
31 # Distributed under the terms of the GNU General Public License v2
32
33 EAPI=6
34 @@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then
35 EXPERIMENTAL="true"
36 fi
37
38 -inherit autotools readme.gentoo-r1 toolchain-funcs $GIT_ECLASS
39 +inherit meson readme.gentoo-r1 toolchain-funcs $GIT_ECLASS
40
41 DESCRIPTION="Wayland reference compositor"
42 HOMEPAGE="https://wayland.freedesktop.org/"
43 @@ -25,20 +25,19 @@ fi
44 LICENSE="MIT CC-BY-SA-3.0"
45 SLOT="0"
46
47 -IUSE="colord dbus +drm editor examples fbdev +gles2 headless ivi jpeg +launch lcms rdp remoting +resize-optimization screen-sharing static-libs +suid systemd test wayland-compositor webp +X xwayland"
48 +IUSE="colord +drm editor examples fbdev +gles2 headless ivi jpeg +launch lcms rdp remoting +resize-optimization screen-sharing static-libs +suid systemd test wayland-compositor webp +X xwayland"
49
50 REQUIRED_USE="
51 drm? ( gles2 )
52 screen-sharing? ( rdp )
53 - systemd? ( dbus )
54 test? ( headless xwayland )
55 wayland-compositor? ( gles2 )
56 "
57
58 RDEPEND="
59 >=dev-libs/libinput-0.8.0
60 - >=dev-libs/wayland-1.12.0
61 - >=dev-libs/wayland-protocols-1.14
62 + >=dev-libs/wayland-1.17.0
63 + >=dev-libs/wayland-protocols-1.17
64 lcms? ( media-libs/lcms:2 )
65 media-libs/libpng:0=
66 webp? ( media-libs/libwebp:0= )
67 @@ -53,7 +52,6 @@ RDEPEND="
68 >=virtual/udev-136
69 )
70 colord? ( >=x11-misc/colord-0.1.27 )
71 - dbus? ( >=sys-apps/dbus-1.6 )
72 drm? (
73 >=media-libs/mesa-17.1[gbm]
74 >=sys-libs/mtdev-1.1.0
75 @@ -70,6 +68,7 @@ RDEPEND="
76 )
77 systemd? (
78 sys-auth/pambase[systemd]
79 + >=sys-apps/dbus-1.6
80 >=sys-apps/systemd-209[pam]
81 )
82 launch? ( sys-auth/pambase )
83 @@ -88,68 +87,50 @@ DEPEND="${RDEPEND}
84 virtual/pkgconfig
85 "
86
87 -src_prepare() {
88 - default
89 - if [[ ${PV} = 9999* ]]; then
90 - eautoreconf
91 - else
92 - elibtoolize
93 - fi
94 -}
95 -
96 src_configure() {
97 - local myconf=()
98 -
99 - if use examples || use test; then
100 - myconf+=( --enable-simple-clients )
101 - else
102 - myconf+=( --disable-simple-clients )
103 - fi
104 -
105 - econf \
106 - $(use_enable examples demo-clients-install) \
107 - $(use_enable fbdev fbdev-compositor) \
108 - $(use_enable dbus) \
109 - $(use_enable drm drm-compositor) \
110 - $(use_enable headless headless-compositor) \
111 - $(use_enable ivi ivi-shell) \
112 - $(use_enable lcms) \
113 - $(use_enable rdp rdp-compositor) \
114 - $(use_enable wayland-compositor) \
115 - $(use_enable X x11-compositor) \
116 - $(use_enable launch weston-launch) \
117 - $(use_enable colord) \
118 - $(use_enable gles2 egl) \
119 - $(use_enable remoting) \
120 - $(use_enable resize-optimization) \
121 - $(use_enable screen-sharing) \
122 - $(use_enable suid setuid-install) \
123 - $(use_enable systemd systemd-login) \
124 - $(use_enable systemd systemd-notify) \
125 - $(use_enable xwayland) \
126 - $(use_enable xwayland xwayland-test) \
127 - $(use_with jpeg) \
128 - $(use_with webp) \
129 - --with-cairo=image \
130 - --disable-junit-xml \
131 - --disable-simple-dmabuf-drm-client \
132 - --disable-simple-dmabuf-v4l-client \
133 - --disable-simple-egl-clients \
134 - --disable-vaapi-recorder \
135 + local emesonargs=(
136 + $(meson_use drm backend-drm)
137 + -Dbackend-drm-screencast-vaapi=false
138 + $(meson_use headless backend-headless)
139 + $(meson_use rdp backend-rdp)
140 + $(meson_use screen-sharing screenshare)
141 + $(meson_use X backend-x11)
142 + $(meson_use fbdev backend-fbdev)
143 + $(meson_use gles2 renderer-gl)
144 + $(meson_use launch weston-launch)
145 + $(meson_use xwayland)
146 + $(meson_use systemd)
147 + $(meson_use remoting)
148 + $(meson_use wayland-compositor shell-desktop)
149 + $(meson_use ivi shell-ivi)
150 + $(meson_use lcms color-management-lcms)
151 + $(meson_use colord color-management-colord)
152 + $(meson_use systemd launcher-logind)
153 + $(meson_use jpeg image-jpeg)
154 + $(meson_use webp image-webp)
155 + -Dtools=debug,info,terminal
156 + -Dsimple-dmabuf-drm=auto
157 + $(meson_use examples demo-clients)
158 + $(usex examples -Dsimple-clients=damage,img,egl,shm,touch "")
159 + $(meson_use resize-optimization resize-pool)
160 + -Dtest-junit-xml=false
161 "${myconf[@]}"
162 + )
163 + meson_src_configure
164 }
165
166 src_test() {
167 export XDG_RUNTIME_DIR="${T}/runtime-dir"
168 mkdir "${XDG_RUNTIME_DIR}" || die
169 chmod 0700 "${XDG_RUNTIME_DIR}" || die
170 -
171 cd "${BUILD_DIR}" || die
172 - emake check
173 + meson_src_test
174 }
175
176 src_install() {
177 - default
178 -
179 + meson_src_install
180 + if use launch && use suid; then
181 + chmod u+s "${ED}"/usr/bin/weston-launch || die
182 + fi
183 readme.gentoo_create_doc
184 }