commit: 6d2a77faf66a85bb41e05489771ff1e00706f966
parent 0e887cf44b68f5ff10cea91777bbbdb307a3de2c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 23 Dec 2021 19:37:12 +0100
gui-libs/wlroots: Version bump, 0.15.0
Diffstat:
3 files changed, 104 insertions(+), 0 deletions(-)
diff --git a/gui-libs/wlroots/Manifest b/gui-libs/wlroots/Manifest
@@ -0,0 +1 @@
+DIST wlroots-0.15.0.tar.gz 565059 BLAKE2B d98529b4548e3b751a505a26af143be585ed42fb9617bc67b4a10747bb494f1359d7bdb75d1730a72396e7c550fe481e858a5ac88621d61671698439e3656920 SHA512 730b1e0cf003dabae23101664c6d1993636bd3a8ecbdb3c165eef415a92811c4d5228f48e0275f75361d8528f118dfb8a2298cfb05dbf6364539224ceedca447
diff --git a/gui-libs/wlroots/metadata.xml b/gui-libs/wlroots/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ Pluggable, composable, unopinionated modules for building a Wayland
+ compositor.
+
+ wlroots implements a huge variety of Wayland compositor features and
+ implements them right. By using wlroots, you get high performance,
+ excellent hardware compatibility, broad support for many wayland
+ interfaces, and comfortable development tools.
+
+ wlroots is developed under the direction of the <pkg>gui-wm/sway</pkg> project.
+ </longdescription>
+ <use>
+ <flag name="vulkan">Enable support for the vulkan backend renderer</flag>
+ <flag name="x11-backend">Enable support for handling input/output devices through <pkg>x11-libs/libxcb</pkg></flag>
+ <flag name="X">Enable support for X11 applications (XWayland)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">swaywm/wlroots</remote-id>
+ <maintainer status="active">
+ <email>sir@cmpwn.com</email>
+ <name>Drew DeVault</name>
+ </maintainer>
+ <bugs-to>https://gitlab.freedesktop.org/wlroots/wlroots/-/issues</bugs-to>
+ <doc>https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/home</doc>
+ <changelog>https://gitlab.freedesktop.org/wlroots/wlroots/-/releases</changelog>
+ </upstream>
+</pkgmetadata>
diff --git a/gui-libs/wlroots/wlroots-0.15.0.ebuild b/gui-libs/wlroots/wlroots-0.15.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+DESCRIPTION="Pluggable, composable, unopinionated modules for building a Wayland compositor"
+HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots"
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git"
+ inherit git-r3
+ SLOT="0/9999"
+else
+ SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+ SLOT="0/15"
+fi
+
+LICENSE="MIT"
+IUSE="vulkan x11-backend X"
+
+DEPEND="
+ >=dev-libs/libinput-1.14.0:0=
+ >=dev-libs/wayland-1.20.0
+ >=dev-libs/wayland-protocols-1.24
+ media-libs/mesa[egl(+),gles2,gbm(+)]
+ sys-auth/seatd:=
+ virtual/libudev
+ vulkan? (
+ dev-util/glslang:0=
+ dev-util/vulkan-headers:0=
+ media-libs/vulkan-loader:0=
+ )
+ >=x11-libs/libdrm-2.4.109
+ x11-libs/libxkbcommon
+ x11-libs/pixman
+ x11-backend? ( x11-libs/libxcb:0= )
+ X? (
+ x11-base/xwayland
+ x11-libs/libxcb:0=
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-wm
+ )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ >=dev-libs/wayland-protocols-1.24
+ >=dev-util/meson-0.60.0
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # xcb-util-errors is not on Gentoo Repository (and upstream seems inactive?)
+ local emesonargs=(
+ "-Dxcb-errors=disabled"
+ "-Dexamples=false"
+ "-Dwerror=false"
+ -Drenderers=$(usex vulkan 'gles2,vulkan' gles2)
+ -Dxwayland=$(usex X enabled disabled)
+ -Dbackends=drm,libinput$(usex x11-backend ',x11' '')
+ )
+
+ meson_src_configure
+}
+
+pkg_postinst() {
+ elog "You must be in the input group to allow your compositor"
+ elog "to access input devices via libinput."
+}