logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 7949a4752adb6a22d0fd2adbdd2d2e67a688723d
parent e5f101654adc8082d9bc32f2783aa96d485ab1e0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 26 Feb 2023 18:40:34 +0100

gui-apps/cog: Update buildsystem to meson

Diffstat:

Mgui-apps/cog/cog-9999.ebuild69++++++++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 42 insertions(+), 27 deletions(-)

diff --git a/gui-apps/cog/cog-9999.ebuild b/gui-apps/cog/cog-9999.ebuild @@ -1,60 +1,75 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake git-r3 +inherit meson git-r3 DESCRIPTION="Single Window Launcher for WPE WebKit" HOMEPAGE="https://github.com/Igalia/cog" EGIT_REPO_URI="https://github.com/Igalia/cog.git" LICENSE="MIT" SLOT="0" -IUSE="+drm +fdo gtk4 headless X" +IUSE="+drm gtk4 headless wayland X" + +# note: cogcore_dep is ./core/ +cogplatformcommon_dep="media-libs/libepoxy" +wpebackend_fdo_dep=">=gui-libs/wpebackend-fdo-1.8.0" DEPEND=" - net-libs/wpewebkit - net-libs/libsoup:2.4 + net-libs/wpewebkit:1.1=[X?] + net-libs/libsoup:3.0 drm? ( - media-libs/mesa[egl(+),gbm(+)] - >=gui-libs/wpebackend-fdo-1.4.0 + ${cogplatformcommon_dep} + ${wpebackend_fdo_dep} >=x11-libs/libdrm-2.4.71 dev-libs/libinput:= virtual/libudev:= - dev-libs/wayland ) - fdo? ( + gtk4? ( + ${cogplatformcommon_dep} + ${wpebackend_fdo_dep} + gui-libs/gtk:4 + ) + headless? ( ${wpebackend_fdo_dep} ) + wayland? ( + ${wpebackend_fdo_dep} x11-libs/cairo media-libs/mesa[egl(+)] - >=gui-libs/wpebackend-fdo-1.6.0 dev-libs/wayland + dev-libs/wayland-protocols x11-libs/libxkbcommon ) - gtk4? ( - gui-libs/gtk:4 - >=gui-libs/wpebackend-fdo-1.6.0 - ) - headless? ( >=gui-libs/wpebackend-fdo-1.8.0 ) X? ( - >=gui-libs/wpebackend-fdo-1.6.0 + ${wpebackend_fdo_dep} + ${cogplatformcommon_dep} media-libs/mesa[egl(+)] x11-libs/libxcb x11-libs/libxkbcommon[X] + x11-libs/libX11 ) " RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/meson-format-array + wayland? ( dev-util/wayland-scanner ) +" src_configure() { - local mycmakeargs=( - -DCOG_PLATFORM_DRM=$(usex drm) - -DCOG_PLATFORM_HEADLESS=$(usex headless) - -DCOG_PLATFORM_FDO=$(usex fdo) - -DCOG_PLATFORM_X11=$(usex X) - -DCOG_PLATFORM_GTK4=$(usex gtk4) - -DCOG_WESTON_DIRECT_DISPLAY=off - -DBUILD_DOCS=off - -DUSE_SOUP2=on + local platforms=( + $(usev drm) + $(usev headless) + $(usev wayland) + $(usev gtk4) + ) + use X && platforms+=( 'x11' ) + + local emesonargs=( + -Dsoup2=disabled + -Dplatforms="$(meson-format-array ${platforms[@]})" + -Dwayland_weston_direct_display=false + -Dwayland_weston_content_protection=false ) - cmake_src_configure + meson_src_configure }