mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
Merge updates from master
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/385c9ade5f7a8ce9e5c13f762d56e6bd1c8d1b0a
|
||||
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
|
||||
<leohdz172@proton.me>
|
||||
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 <leohdz172@proton.me>
|
||||
--- 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
|
||||
|
||||
+8
-6
@@ -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() {
|
||||
@@ -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() {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DIST wlroots-0.17.3.tar.gz 608292 BLAKE2B 7caab3c3a58595d3a745c0b20a5db2193c54931cdd7bc1b9de11c151af82503a03a6a3166a86f42486cc69c6ac18ca2a5596809a5c5e6d7b44c9845f509c1093 SHA512 b88747daba304db6dc302acdebb8764e719d84134118963c019d5f0d0d38552e0ffd2a50bf560b3b84549c5a0f2d11a6187ac8ddcd9faa28c5b42f86c585b555
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>leohdz172@proton.me</email>
|
||||
<name>Leonardo Hernández Hernández</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="freedesktop-gitlab">wlroots/wlroots</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -134,7 +134,10 @@ BDEPEND="${PYTHON_DEPS}
|
||||
x11-apps/xhost
|
||||
)
|
||||
wayland? (
|
||||
>=gui-libs/wlroots-0.15.1-r1[tinywl]
|
||||
|| (
|
||||
gui-wm/tinywl
|
||||
<gui-libs/wlroots-0.17.3[tinywl(-)]
|
||||
)
|
||||
x11-misc/xkeyboard-config
|
||||
)
|
||||
)"
|
||||
|
||||
@@ -133,7 +133,10 @@ BDEPEND="${PYTHON_DEPS}
|
||||
x11-apps/xhost
|
||||
)
|
||||
!X? (
|
||||
>=gui-libs/wlroots-0.15.1-r1[tinywl]
|
||||
|| (
|
||||
gui-wm/tinywl
|
||||
<gui-libs/wlroots-0.17.3[tinywl(-)]
|
||||
)
|
||||
x11-misc/xkeyboard-config
|
||||
)
|
||||
)"
|
||||
|
||||
@@ -107,7 +107,10 @@ BDEPEND="${PYTHON_DEPS}
|
||||
x11-apps/xhost
|
||||
)
|
||||
!X? (
|
||||
>=gui-libs/wlroots-0.15.1-r1[tinywl]
|
||||
|| (
|
||||
gui-wm/tinywl
|
||||
<gui-libs/wlroots-0.17.3[tinywl(-)]
|
||||
)
|
||||
x11-misc/xkeyboard-config
|
||||
)
|
||||
)"
|
||||
|
||||
@@ -104,7 +104,10 @@ BDEPEND="${PYTHON_DEPS}
|
||||
x11-apps/xhost
|
||||
)
|
||||
!X? (
|
||||
>=gui-libs/wlroots-0.15.1-r1[tinywl]
|
||||
|| (
|
||||
gui-wm/tinywl
|
||||
<gui-libs/wlroots-0.17.3[tinywl(-)]
|
||||
)
|
||||
x11-misc/xkeyboard-config
|
||||
)
|
||||
)"
|
||||
|
||||
Reference in New Issue
Block a user