diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /dev-libs/weston | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'dev-libs/weston')
-rw-r--r-- | dev-libs/weston/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/weston/files/weston-10.0.0-backend-default.patch | 27 | ||||
-rw-r--r-- | dev-libs/weston/files/weston-10.0.0-test-deps.patch | 34 | ||||
-rw-r--r-- | dev-libs/weston/weston-10.0.0.ebuild | 153 | ||||
-rw-r--r-- | dev-libs/weston/weston-9.0.0-r2.ebuild | 1 | ||||
-rw-r--r-- | dev-libs/weston/weston-9999.ebuild | 29 |
6 files changed, 235 insertions, 17 deletions
diff --git a/dev-libs/weston/Manifest b/dev-libs/weston/Manifest index 47e3da2d2232..cc989c3650de 100644 --- a/dev-libs/weston/Manifest +++ b/dev-libs/weston/Manifest @@ -1,6 +1,10 @@ AUX README.gentoo 383 BLAKE2B a0d8fef2d1f0deebe46ed85065a09057a620aa7af4e7aa901f1fef7b75d15e2ca9d2be1b9367a651a2edf3b4265441ce47af832f423cf9725c78e61836a4f982 SHA512 e4d8f8e0edeb6773dd7ef6329074d1e40b694b9e7e10b6a429d8c5dd4fe1170594f447a42eb41446ec2355829a1da1606bf6c544434551c5c931b0794422e786 +AUX weston-10.0.0-backend-default.patch 828 BLAKE2B 2c6712737bc6e2d1a37d89b5ba4ea93fb30d137b8d76b77496f82503892bc295d19e97d8de223377328f8aa32721544f7a67f904c22bd1f1483fa99bf6c5f15e SHA512 e3cf66567ed8878ceeb0cde40f3c3aac8d20a04ce501d4fba8429f9d7552dc53ef4eec0cf103bf7e1e93fc9bdf224b20c628c9dede3e545455735fd95ae5dfea +AUX weston-10.0.0-test-deps.patch 1052 BLAKE2B eaa6d9950a7a932686d11d9b9efb9ebfc602ac82db14348d4c1701a0420a85469e05c5af76568a6189546f4d8b5f05bac85c64e7168522af4cc0a5a3d31a8050 SHA512 7f59b5da1ec7a885d53bf48c12a13cceed6e7306c018e9921d64ec1856b8d125421f7af0aa227785d794924c6f035bc79a681eb9331adb17fb790f82c28d0f10 AUX weston-pipewire-0.3.patch 11856 BLAKE2B aebe0f4859a0ac3144d8f631fd8b5e35c02f62217ad94106c138aa6095430a2aff7aedf88d67f95991d32e9c728b6704746fedc9858e41e5d99900722b6617ec SHA512 f3e028df4967672c58e1cac66fc8b7781252f15094439dca399d820d945156a15f1e420a8ed062584dcdd7c9577849127aa52974639877796ce91231123bf50d +DIST weston-10.0.0.tar.xz 1774600 BLAKE2B b2b8fa4f7542aba03970ca8abf504f340f8f8da9f9581c16ceac5c702eac355f5d4244778393a8804017f39dff490431e26a48580746033158bd2d2b721437f8 SHA512 77e05530751e4f743eebf015ab5b78a1fcc66b774713b5e296cfffc488be84e459f811c85ac4280b7b63eebf4ff5c958dd7306376ab343e6b80feae16c8c35a4 DIST weston-9.0.0.tar.xz 1555212 BLAKE2B 6c5feb3959ebe894861c6dc0817633b23e8518baf1c359c2967f111c071e9d4f166ef1421ad6465b036b3f1c485cab5f442476e7a44e3ec722cff576dea73852 SHA512 ccc263f8279b7b23e5c593b4a8a023de2c3dc178b1b8d6593599171770bcfe97608de9fcb77aa1cab39255451d289d323e51c317dae190c7641282e085b84f90 -EBUILD weston-9.0.0-r2.ebuild 3782 BLAKE2B 58e2fbed3db81908433d6c8f5a8ed478c2afb5a48b027839a47703afe041551a3917db0d879357ef6a9a9c5f64582f32dc370f4e41c719801677f17ce098768a SHA512 ff7edcec85e03246ab5b2f83dcda0b3fcdf0984a86f8e30e918dcbddea41e156b56bd4473db79788af42a0a55c5730373acab429b5571c1fd7e625945d089aee -EBUILD weston-9999.ebuild 3786 BLAKE2B 796acd0ff65bf5c3271ac8c09242024ffd33e7f2898cff0e80a39dfe0dd2a33763af9d5226910f6b48a128b8ce14457fd55471e432cafa7f8ef7b21d85c95abc SHA512 017dd76bec83bca30102daccd06b97d1edad078ad9b08c66266d8c1f37f774a384c7907528cc9774ee1c82ef2c27ccb1a401452afb3e1b904448c38460741cc7 +EBUILD weston-10.0.0.ebuild 3922 BLAKE2B 0c4dd1ff40b3d1c3f874b03e5106509b0b3cfd1e344b071c9b3cc9a99a59b1b5e679356fd559923447f25f86e809ed730ba421ce6ade58499d9371990e61638f SHA512 fdd32e6205ff2b8dd238ef99e859e3cdc6755d2aebfee162078da4d5e6d2a210702d962dba2a1cb48ea70299929e2c8009752da3b81c84859c2ee4fea2b1429a +EBUILD weston-9.0.0-r2.ebuild 3807 BLAKE2B 7a8728b739b34c50c1f864d15acb1394b40783a2ac6161f5035faee9ca360777ea6efcbc0c1826e3a60ce7f53d3a05b6bb4b391e1b33727c95b538ea6d80f12f SHA512 fbbab98f6735ebd5b4d9427d9ddb481e09ef37c85199a22a68b066ef93a88d92bfe1d95f72c95d3335f614e4d4bb91de00f40a209713576c3d0f87e3be498a1e +EBUILD weston-9999.ebuild 3815 BLAKE2B ffd80f511c1e14766f6a8f68ece3392aa1e0a1d2ac6e11732f98914656bd5075a09c55f73e8ff0a0453b481e4c067d9557335755c55ab2376302079372e6b7bc SHA512 b14628f84f9f71e6c0a26c94814bb4c22634a8f80c3bd12cca4916504d0f081eb2863a1f5843ff2456a52af24b5bae85fb3fb2bf0a62157e59202b30abe9c9ee MISC metadata.xml 1578 BLAKE2B 302ecc49dda1f6327a73d7dfcae61accf15323cf19e2d4dd322ae54612fa738331614efd044ec148a6bdb3d85895d789c962fad224a5fa88f45f2228421ef089 SHA512 104a8c428651e8c7e4ccdf8332be0af8bf00f3cd36afff301bf5fbd2f446fcc64e9b9ccf3acd636f4e4357a4d4d1ecac0cc747bdfb7089508900abdca5d96bea diff --git a/dev-libs/weston/files/weston-10.0.0-backend-default.patch b/dev-libs/weston/files/weston-10.0.0-backend-default.patch new file mode 100644 index 000000000000..710639e7e9c5 --- /dev/null +++ b/dev-libs/weston/files/weston-10.0.0-backend-default.patch @@ -0,0 +1,27 @@ +From 35e3fb72ac28af628aa1d2b7ee804a3f81720c47 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Fri, 4 Feb 2022 23:43:50 +0000 +Subject: [PATCH] meson.build: Fix -Dbackend-default=auto following fbdev + deprecation + +Signed-off-by: James Le Cuirot <chewi@gentoo.org> +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 1c73e130..d761903e 100644 +--- a/meson.build ++++ b/meson.build +@@ -121,7 +121,7 @@ config_h.set10('TEST_GL_RENDERER', get_option('test-gl-renderer')) + + backend_default = get_option('backend-default') + if backend_default == 'auto' +- foreach b : [ 'headless', 'fbdev', 'x11', 'wayland', 'drm' ] ++ foreach b : [ 'headless', 'x11', 'wayland', 'drm' ] + if get_option('backend-' + b) + backend_default = b + endif +-- +2.34.1 + diff --git a/dev-libs/weston/files/weston-10.0.0-test-deps.patch b/dev-libs/weston/files/weston-10.0.0-test-deps.patch new file mode 100644 index 000000000000..cc6ad8c6e130 --- /dev/null +++ b/dev-libs/weston/files/weston-10.0.0-test-deps.patch @@ -0,0 +1,34 @@ +From 9516859b9fdb2899a37116b55200fb04f7726b45 Mon Sep 17 00:00:00 2001 +From: Daniel Stone <daniels@collabora.com> +Date: Tue, 8 Feb 2022 22:39:42 +0000 +Subject: [PATCH] tests: Add dependency on screenshooter client protocol + +Given that the test-helper code relies on the screenshooter protocol, +make sure it's available for us to build, and the dependency ensures we +build in order. + +Fixes: #588 + +Signed-off-by: Daniel Stone <daniels@collabora.com> +--- + tests/meson.build | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/meson.build b/tests/meson.build +index d8e96e77d..955c4226c 100644 +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -29,8 +29,9 @@ lib_test_client = static_library( + 'weston-test-client-helper.c', + 'weston-test-fixture-compositor.c', + weston_test_client_protocol_h, +- weston_screenshooter_protocol_c, + weston_test_protocol_c, ++ weston_screenshooter_client_protocol_h, ++ weston_screenshooter_protocol_c, + viewporter_client_protocol_h, + viewporter_protocol_c, + 'color_util.h', +-- +GitLab + diff --git a/dev-libs/weston/weston-10.0.0.ebuild b/dev-libs/weston/weston-10.0.0.ebuild new file mode 100644 index 000000000000..d488637fff57 --- /dev/null +++ b/dev-libs/weston/weston-10.0.0.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/weston.git" + GIT_ECLASS="git-r3" + EXPERIMENTAL="true" +fi + +PYTHON_COMPAT=( python3_{9..10} ) +inherit meson python-any-r1 readme.gentoo-r1 xdg-utils ${GIT_ECLASS} + +DESCRIPTION="Wayland reference compositor" +HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/weston" + +if [[ ${PV} = *9999* ]]; then + SRC_URI="${SRC_PATCHES}" +else + SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT CC-BY-SA-3.0" +SLOT="0" + +IUSE="colord +desktop +drm editor examples fbdev fullscreen +gles2 headless ivi jpeg kiosk lcms pipewire rdp remoting +resize-optimization screen-sharing +seatd +suid systemd test wayland-compositor webp +X xwayland" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + colord? ( lcms ) + drm? ( gles2 ) + pipewire? ( drm ) + remoting? ( drm gles2 ) + screen-sharing? ( rdp ) + test? ( desktop headless xwayland ) + wayland-compositor? ( gles2 ) + || ( drm fbdev headless rdp wayland-compositor X ) +" + +RDEPEND=" + >=dev-libs/libinput-0.8.0 + >=dev-libs/wayland-1.18.0 + >=dev-libs/wayland-protocols-1.24 + lcms? ( media-libs/lcms:2 ) + media-libs/libpng:0= + webp? ( media-libs/libwebp:0= ) + jpeg? ( virtual/jpeg:0= ) + >=x11-libs/cairo-1.11.3 + >=x11-libs/libdrm-2.4.95 + >=x11-libs/libxkbcommon-0.5.0 + >=x11-libs/pixman-0.25.2 + x11-misc/xkeyboard-config + fbdev? ( + >=sys-libs/mtdev-1.1.0 + >=virtual/udev-136 + ) + colord? ( >=x11-misc/colord-0.1.27 ) + drm? ( + >=media-libs/mesa-17.1[gbm(+)] + >=sys-libs/mtdev-1.1.0 + >=virtual/udev-136 + ) + editor? ( x11-libs/pango ) + examples? ( x11-libs/pango ) + gles2? ( + media-libs/mesa[gles2,wayland] + ) + pipewire? ( >=media-video/pipewire-0.3:= ) + rdp? ( >=net-misc/freerdp-2.0.0_rc2:= ) + remoting? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + ) + seatd? ( sys-auth/seatd:= ) + systemd? ( + sys-auth/pambase[systemd] + >=sys-apps/dbus-1.6 + >=sys-apps/systemd-209[pam] + ) + X? ( + >=x11-libs/libxcb-1.9 + x11-libs/libX11 + ) + xwayland? ( + x11-base/xwayland + x11-libs/cairo[X,xcb(+)] + >=x11-libs/libxcb-1.9 + x11-libs/libXcursor + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-10.0.0-backend-default.patch + "${FILESDIR}"/${PN}-10.0.0-test-deps.patch +) + +src_configure() { + 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 wayland-compositor backend-wayland) + $(meson_use X backend-x11) + $(meson_use fbdev deprecated-backend-fbdev) + -Dbackend-default=auto + $(meson_use gles2 renderer-gl) + $(meson_use xwayland) + $(meson_use seatd launcher-libseat) + $(meson_use systemd) + $(meson_use remoting) + $(meson_use pipewire) + $(meson_use desktop shell-desktop) + $(meson_use fullscreen shell-fullscreen) + $(meson_use ivi shell-ivi) + $(meson_use kiosk shell-kiosk) + $(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 + $(meson_use examples demo-clients) + -Dsimple-clients=$(usex examples damage,dmabuf-v4l,im,shm,touch$(usex gles2 ,dmabuf-egl,egl "") "") + $(meson_use resize-optimization resize-pool) + -Dtest-junit-xml=false + -Dtest-gl-renderer=false + "${myconf[@]}" + ) + meson_src_configure +} + +src_test() { + xdg_environment_reset + + # devices test usually fails. + # xwayland test can fail if X11 socket already exists. + cd "${BUILD_DIR}" || die + meson test $(meson test --list | grep -Exv "devices|xwayland") || die +} + +src_install() { + meson_src_install + readme.gentoo_create_doc +} diff --git a/dev-libs/weston/weston-9.0.0-r2.ebuild b/dev-libs/weston/weston-9.0.0-r2.ebuild index b2013d85f980..27fdbecfc4af 100644 --- a/dev-libs/weston/weston-9.0.0-r2.ebuild +++ b/dev-libs/weston/weston-9.0.0-r2.ebuild @@ -31,6 +31,7 @@ REQUIRED_USE=" colord? ( lcms ) drm? ( gles2 ) pipewire? ( drm ) + remoting? ( drm gles2 ) screen-sharing? ( rdp ) test? ( desktop headless xwayland ) wayland-compositor? ( gles2 ) diff --git a/dev-libs/weston/weston-9999.ebuild b/dev-libs/weston/weston-9999.ebuild index 75c191a28c7b..38b24ee38007 100644 --- a/dev-libs/weston/weston-9999.ebuild +++ b/dev-libs/weston/weston-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -9,7 +9,8 @@ if [[ ${PV} = 9999* ]]; then EXPERIMENTAL="true" fi -inherit meson readme.gentoo-r1 xdg-utils ${GIT_ECLASS} +PYTHON_COMPAT=( python3_{9..10} ) +inherit meson python-any-r1 readme.gentoo-r1 xdg-utils ${GIT_ECLASS} DESCRIPTION="Wayland reference compositor" HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/weston" @@ -18,19 +19,20 @@ if [[ ${PV} = *9999* ]]; then SRC_URI="${SRC_PATCHES}" else SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" fi LICENSE="MIT CC-BY-SA-3.0" SLOT="0" -IUSE="colord +desktop +drm editor examples fbdev fullscreen +gles2 headless ivi jpeg kiosk +launch lcms pipewire rdp remoting +resize-optimization screen-sharing seatd +suid systemd test wayland-compositor webp +X xwayland" +IUSE="colord +desktop +drm editor examples fbdev fullscreen +gles2 headless ivi jpeg kiosk lcms pipewire rdp remoting +resize-optimization screen-sharing +seatd +suid systemd test wayland-compositor webp +X xwayland" RESTRICT="!test? ( test )" REQUIRED_USE=" colord? ( lcms ) drm? ( gles2 ) pipewire? ( drm ) + remoting? ( drm gles2 ) screen-sharing? ( rdp ) test? ( desktop headless xwayland ) wayland-compositor? ( gles2 ) @@ -39,14 +41,14 @@ REQUIRED_USE=" RDEPEND=" >=dev-libs/libinput-0.8.0 - >=dev-libs/wayland-1.17.0 - >=dev-libs/wayland-protocols-1.18 + >=dev-libs/wayland-1.18.0 + >=dev-libs/wayland-protocols-1.24 lcms? ( media-libs/lcms:2 ) media-libs/libpng:0= webp? ( media-libs/libwebp:0= ) jpeg? ( virtual/jpeg:0= ) >=x11-libs/cairo-1.11.3 - >=x11-libs/libdrm-2.4.68 + >=x11-libs/libdrm-2.4.95 >=x11-libs/libxkbcommon-0.5.0 >=x11-libs/pixman-0.25.2 x11-misc/xkeyboard-config @@ -65,7 +67,7 @@ RDEPEND=" gles2? ( media-libs/mesa[gles2,wayland] ) - pipewire? ( >=media-video/pipewire-0.2:= ) + pipewire? ( >=media-video/pipewire-0.3:= ) rdp? ( >=net-misc/freerdp-2.0.0_rc2:= ) remoting? ( media-libs/gstreamer:1.0 @@ -77,7 +79,6 @@ RDEPEND=" >=sys-apps/dbus-1.6 >=sys-apps/systemd-209[pam] ) - launch? ( sys-auth/pambase ) X? ( >=x11-libs/libxcb-1.9 x11-libs/libX11 @@ -91,6 +92,7 @@ RDEPEND=" " DEPEND="${RDEPEND}" BDEPEND=" + ${PYTHON_DEPS} virtual/pkgconfig " @@ -103,10 +105,9 @@ src_configure() { $(meson_use screen-sharing screenshare) $(meson_use wayland-compositor backend-wayland) $(meson_use X backend-x11) - $(meson_use fbdev backend-fbdev) + $(meson_use fbdev deprecated-backend-fbdev) -Dbackend-default=auto $(meson_use gles2 renderer-gl) - $(meson_use launch weston-launch) $(meson_use xwayland) $(meson_use seatd launcher-libseat) $(meson_use systemd) @@ -136,14 +137,12 @@ src_test() { xdg_environment_reset # devices test usually fails. + # xwayland test can fail if X11 socket already exists. cd "${BUILD_DIR}" || die - meson test $(meson test --list | grep -Fxv devices) || die + meson test $(meson test --list | grep -Exv "devices|xwayland") || die } src_install() { meson_src_install - if use launch && use suid; then - chmod u+s "${ED}"/usr/bin/weston-launch || die - fi readme.gentoo_create_doc } |