diff --git a/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch b/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch new file mode 100644 index 0000000000000..86dd42521e436 --- /dev/null +++ b/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch @@ -0,0 +1,43 @@ +https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/385c9ade5f7a8ce9e5c13f762d56e6bd1c8d1b0a +From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= + +Date: Wed, 5 Jun 2024 22:33:05 -0600 +Subject: [PATCH] add an option to enable/disable libliftoff +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +instead of always using it if found + +Signed-off-by: Leonardo Hernández Hernández +--- a/backend/drm/meson.build ++++ b/backend/drm/meson.build +@@ -16,7 +16,7 @@ libliftoff = dependency( + 'libliftoff', + version: '>=0.4.0', + fallback: 'libliftoff', +- required: false, ++ required: get_option('libliftoff'), + ) + + if not (hwdata.found() and libdisplay_info.found() and features['session']) +--- a/meson.build ++++ b/meson.build +@@ -98,6 +98,7 @@ features = { + internal_features = { + 'xcb-errors': false, + 'egl': false, ++ 'libliftoff': false, + } + internal_config = configuration_data() + +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -7,3 +7,4 @@ option('backends', type: 'array', choices: ['auto', 'drm', 'libinput', 'x11'], v + option('allocators', type: 'array', choices: ['auto', 'gbm'], value: ['auto'], + description: 'Select built-in allocators') + option('session', type: 'feature', value: 'auto', description: 'Enable session support') ++option('libliftoff', type: 'feature', value: 'auto', description: 'Enable support for libliftoff') +-- +2.45.2 + diff --git a/gui-libs/wlroots/wlroots-0.17.3-r2.ebuild b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild similarity index 88% rename from gui-libs/wlroots/wlroots-0.17.3-r2.ebuild rename to gui-libs/wlroots/wlroots-0.17.3-r3.ebuild index 8dc3bc02f4a29..4002b88934c66 100644 --- a/gui-libs/wlroots/wlroots-0.17.3-r2.ebuild +++ b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild @@ -19,13 +19,16 @@ else fi LICENSE="MIT" -IUSE="liftoff +libinput +drm +session tinywl vulkan x11-backend xcb-errors X" +IUSE="liftoff +libinput +drm +session vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) + liftoff? ( drm ) xcb-errors? ( || ( x11-backend X ) ) " +PATCHES=( "${FILESDIR}/${PN}-0.17-fix-automagic-libliftoff.patch" ) + RDEPEND=" >=dev-libs/wayland-1.22.0 media-libs/libglvnd @@ -62,6 +65,8 @@ RDEPEND=" x11-base/xwayland ) " + +# TODO: 0.17.4 will add support for libliftoff-0.5 DEPEND=" ${RDEPEND} liftoff? ( @@ -84,11 +89,12 @@ src_configure() { local meson_backends=$(IFS=','; echo "${backends[*]}") local emesonargs=( $(meson_feature xcb-errors) - $(meson_use tinywl examples) + -Dexamples=false -Drenderers=$(usex vulkan 'gles2,vulkan' gles2) $(meson_feature X xwayland) -Dbackends=${meson_backends} $(meson_feature session) + $(meson_feature liftoff libliftoff) ) meson_src_configure @@ -97,10 +103,6 @@ src_configure() { src_install() { meson_src_install dodoc docs/* - - if use tinywl; then - dobin "${BUILD_DIR}"/tinywl/tinywl - fi } pkg_postinst() { diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild index 77c372411845f..05772f2c09af1 100644 --- a/gui-libs/wlroots/wlroots-9999.ebuild +++ b/gui-libs/wlroots/wlroots-9999.ebuild @@ -19,10 +19,11 @@ else fi LICENSE="MIT" -IUSE="liftoff +libinput +drm +session tinywl vulkan x11-backend xcb-errors X" +IUSE="liftoff +libinput +drm +session lcms vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) + liftoff? ( drm ) xcb-errors? ( || ( x11-backend X ) ) " @@ -41,6 +42,7 @@ DEPEND=" sys-apps/hwdata liftoff? ( >=dev-libs/libliftoff-0.4 ) ) + lcms? ( media-libs/lcms:2 ) libinput? ( >=dev-libs/libinput-1.14.0:= ) session? ( sys-auth/seatd:= @@ -80,11 +82,13 @@ src_configure() { local meson_backends=$(IFS=','; echo "${backends[*]}") local emesonargs=( $(meson_feature xcb-errors) - $(meson_use tinywl examples) + -Dexamples=false -Drenderers=$(usex vulkan 'gles2,vulkan' gles2) $(meson_feature X xwayland) -Dbackends=${meson_backends} $(meson_feature session) + $(meson_feature lcms color-management) + $(meson_feature liftoff libliftoff) ) meson_src_configure @@ -93,10 +97,6 @@ src_configure() { src_install() { meson_src_install dodoc docs/* - - if use tinywl; then - dobin "${BUILD_DIR}"/tinywl/tinywl - fi } pkg_postinst() { diff --git a/gui-wm/tinywl/Manifest b/gui-wm/tinywl/Manifest new file mode 100644 index 0000000000000..a21edb849e46e --- /dev/null +++ b/gui-wm/tinywl/Manifest @@ -0,0 +1 @@ +DIST wlroots-0.17.3.tar.gz 608292 BLAKE2B 7caab3c3a58595d3a745c0b20a5db2193c54931cdd7bc1b9de11c151af82503a03a6a3166a86f42486cc69c6ac18ca2a5596809a5c5e6d7b44c9845f509c1093 SHA512 b88747daba304db6dc302acdebb8764e719d84134118963c019d5f0d0d38552e0ffd2a50bf560b3b84549c5a0f2d11a6187ac8ddcd9faa28c5b42f86c585b555 diff --git a/gui-wm/tinywl/metadata.xml b/gui-wm/tinywl/metadata.xml new file mode 100644 index 0000000000000..c478e8b9eaf9b --- /dev/null +++ b/gui-wm/tinywl/metadata.xml @@ -0,0 +1,15 @@ + + + + + leohdz172@proton.me + Leonardo Hernández Hernández + + + proxy-maint@gentoo.org + Proxy Maintainers + + + wlroots/wlroots + + diff --git a/gui-wm/tinywl/tinywl-0.17.3.ebuild b/gui-wm/tinywl/tinywl-0.17.3.ebuild new file mode 100644 index 0000000000000..891403933f458 --- /dev/null +++ b/gui-wm/tinywl/tinywl-0.17.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="\"minimum viable product\" Wayland compositor based on wlroots" +HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/wlroots-${PV}" +fi + +LICENSE="CC0-1.0" +SLOT="0" +DEPEND=" + dev-libs/wayland + x11-libs/libxkbcommon + =gui-libs/wlroots-$(ver_cut 1-2)*:= +" +RDEPEND=" + ${DEPEND} + !gui-libs/wlroots[tinywl(-)] +" +BDEPEND=" + dev-libs/wayland-protocols + dev-util/wayland-scanner + virtual/pkgconfig +" + +src_prepare() { + sed -i -e "s/-Werror //" tinywl/Makefile || die + default +} + +src_compile() { + emake -C tinywl +} + +src_install() { + dodoc tinywl/README.md + dobin tinywl/tinywl +} diff --git a/gui-wm/tinywl/tinywl-9999.ebuild b/gui-wm/tinywl/tinywl-9999.ebuild new file mode 100644 index 0000000000000..891403933f458 --- /dev/null +++ b/gui-wm/tinywl/tinywl-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="\"minimum viable product\" Wayland compositor based on wlroots" +HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/wlroots-${PV}" +fi + +LICENSE="CC0-1.0" +SLOT="0" +DEPEND=" + dev-libs/wayland + x11-libs/libxkbcommon + =gui-libs/wlroots-$(ver_cut 1-2)*:= +" +RDEPEND=" + ${DEPEND} + !gui-libs/wlroots[tinywl(-)] +" +BDEPEND=" + dev-libs/wayland-protocols + dev-util/wayland-scanner + virtual/pkgconfig +" + +src_prepare() { + sed -i -e "s/-Werror //" tinywl/Makefile || die + default +} + +src_compile() { + emake -C tinywl +} + +src_install() { + dodoc tinywl/README.md + dobin tinywl/tinywl +} diff --git a/mail-client/thunderbird/thunderbird-115.11.0.ebuild b/mail-client/thunderbird/thunderbird-115.11.0.ebuild index 2619c8d75b476..582b2c7d6c1df 100644 --- a/mail-client/thunderbird/thunderbird-115.11.0.ebuild +++ b/mail-client/thunderbird/thunderbird-115.11.0.ebuild @@ -134,7 +134,10 @@ BDEPEND="${PYTHON_DEPS} x11-apps/xhost ) wayland? ( - >=gui-libs/wlroots-0.15.1-r1[tinywl] + || ( + gui-wm/tinywl +