From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA70D138334 for ; Sun, 10 Mar 2019 13:10:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80EECE093D; Sun, 10 Mar 2019 13:10:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42618E093D for ; Sun, 10 Mar 2019 13:10:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE590335C7B for ; Sun, 10 Mar 2019 13:10:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1EE58576 for ; Sun, 10 Mar 2019 13:10:43 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1552223341.e9b91e3e81bc779c07b7b52619277ce6e873fae9.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/weston/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/weston/weston-9999.ebuild X-VCS-Directories: dev-libs/weston/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: e9b91e3e81bc779c07b7b52619277ce6e873fae9 X-VCS-Branch: master Date: Sun, 10 Mar 2019 13:10:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d3b216df-0ef6-4ba2-aa1b-469b4ce31e47 X-Archives-Hash: b747bd6f5ac81004ce220725e35ed92f commit: e9b91e3e81bc779c07b7b52619277ce6e873fae9 Author: makepost firemail cc> AuthorDate: Sun Mar 10 07:15:22 2019 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Mar 10 13:09:01 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b91e3e dev-libs/weston-9999: migrate to meson Upstream after v6 won't support autotools: https://lists.freedesktop.org/archives/wayland-devel/2019-February/040080.html Also bump the wayland dependency, because current master matches v6 beta, and weston 6 will be released alongside wayland 1.17. Before the release, >=1.17 resolves to 9999, which is how I'm testing it. Signed-off-by: makepost firemail.cc> Closes: https://github.com/gentoo/gentoo/pull/11326 Signed-off-by: James Le Cuirot gentoo.org> dev-libs/weston/weston-9999.ebuild | 97 +++++++++++++++----------------------- 1 file changed, 39 insertions(+), 58 deletions(-) diff --git a/dev-libs/weston/weston-9999.ebuild b/dev-libs/weston/weston-9999.ebuild index 40aa43e4412..1a039dffa31 100644 --- a/dev-libs/weston/weston-9999.ebuild +++ b/dev-libs/weston/weston-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then EXPERIMENTAL="true" fi -inherit autotools readme.gentoo-r1 toolchain-funcs $GIT_ECLASS +inherit meson readme.gentoo-r1 toolchain-funcs $GIT_ECLASS DESCRIPTION="Wayland reference compositor" HOMEPAGE="https://wayland.freedesktop.org/" @@ -25,20 +25,19 @@ fi LICENSE="MIT CC-BY-SA-3.0" SLOT="0" -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" +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" REQUIRED_USE=" drm? ( gles2 ) screen-sharing? ( rdp ) - systemd? ( dbus ) test? ( headless xwayland ) wayland-compositor? ( gles2 ) " RDEPEND=" >=dev-libs/libinput-0.8.0 - >=dev-libs/wayland-1.12.0 - >=dev-libs/wayland-protocols-1.14 + >=dev-libs/wayland-1.17.0 + >=dev-libs/wayland-protocols-1.17 lcms? ( media-libs/lcms:2 ) media-libs/libpng:0= webp? ( media-libs/libwebp:0= ) @@ -53,7 +52,6 @@ RDEPEND=" >=virtual/udev-136 ) colord? ( >=x11-misc/colord-0.1.27 ) - dbus? ( >=sys-apps/dbus-1.6 ) drm? ( >=media-libs/mesa-17.1[gbm] >=sys-libs/mtdev-1.1.0 @@ -70,6 +68,7 @@ RDEPEND=" ) systemd? ( sys-auth/pambase[systemd] + >=sys-apps/dbus-1.6 >=sys-apps/systemd-209[pam] ) launch? ( sys-auth/pambase ) @@ -88,68 +87,50 @@ DEPEND="${RDEPEND} virtual/pkgconfig " -src_prepare() { - default - if [[ ${PV} = 9999* ]]; then - eautoreconf - else - elibtoolize - fi -} - src_configure() { - local myconf=() - - if use examples || use test; then - myconf+=( --enable-simple-clients ) - else - myconf+=( --disable-simple-clients ) - fi - - econf \ - $(use_enable examples demo-clients-install) \ - $(use_enable fbdev fbdev-compositor) \ - $(use_enable dbus) \ - $(use_enable drm drm-compositor) \ - $(use_enable headless headless-compositor) \ - $(use_enable ivi ivi-shell) \ - $(use_enable lcms) \ - $(use_enable rdp rdp-compositor) \ - $(use_enable wayland-compositor) \ - $(use_enable X x11-compositor) \ - $(use_enable launch weston-launch) \ - $(use_enable colord) \ - $(use_enable gles2 egl) \ - $(use_enable remoting) \ - $(use_enable resize-optimization) \ - $(use_enable screen-sharing) \ - $(use_enable suid setuid-install) \ - $(use_enable systemd systemd-login) \ - $(use_enable systemd systemd-notify) \ - $(use_enable xwayland) \ - $(use_enable xwayland xwayland-test) \ - $(use_with jpeg) \ - $(use_with webp) \ - --with-cairo=image \ - --disable-junit-xml \ - --disable-simple-dmabuf-drm-client \ - --disable-simple-dmabuf-v4l-client \ - --disable-simple-egl-clients \ - --disable-vaapi-recorder \ + local emesonargs=( + $(meson_use drm backend-drm) + -Dbackend-drm-screencast-vaapi=false + $(meson_use headless backend-headless) + $(meson_use rdp backend-rdp) + $(meson_use screen-sharing screenshare) + $(meson_use X backend-x11) + $(meson_use fbdev backend-fbdev) + $(meson_use gles2 renderer-gl) + $(meson_use launch weston-launch) + $(meson_use xwayland) + $(meson_use systemd) + $(meson_use remoting) + $(meson_use wayland-compositor shell-desktop) + $(meson_use ivi shell-ivi) + $(meson_use lcms color-management-lcms) + $(meson_use colord color-management-colord) + $(meson_use systemd launcher-logind) + $(meson_use jpeg image-jpeg) + $(meson_use webp image-webp) + -Dtools=debug,info,terminal + -Dsimple-dmabuf-drm=auto + $(meson_use examples demo-clients) + $(usex examples -Dsimple-clients=damage,img,egl,shm,touch "") + $(meson_use resize-optimization resize-pool) + -Dtest-junit-xml=false "${myconf[@]}" + ) + meson_src_configure } src_test() { export XDG_RUNTIME_DIR="${T}/runtime-dir" mkdir "${XDG_RUNTIME_DIR}" || die chmod 0700 "${XDG_RUNTIME_DIR}" || die - cd "${BUILD_DIR}" || die - emake check + meson_src_test } src_install() { - default - + meson_src_install + if use launch && use suid; then + chmod u+s "${ED}"/usr/bin/weston-launch || die + fi readme.gentoo_create_doc }