logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 39b266e6b7556fa859aa38f0668bbefaf933251c
parent 6d2a77faf66a85bb41e05489771ff1e00706f966
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 23 Dec 2021 19:43:54 +0100

gui-wm/sway: Version bump, 1.7-rc1

Diffstat:

Agui-wm/sway/Manifest1+
Agui-wm/sway/metadata.xml49+++++++++++++++++++++++++++++++++++++++++++++++++
Agui-wm/sway/sway-1.7_rc1.ebuild94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 144 insertions(+), 0 deletions(-)

diff --git a/gui-wm/sway/Manifest b/gui-wm/sway/Manifest @@ -0,0 +1 @@ +DIST sway-1.7_rc1.tar.gz 5558544 BLAKE2B 04efec79b5bbb6aaa26ab1952f2ca2cd29880623004d1bcad3d1965c518af1d6affb16010a5b3128e2a2c32deb7089d8bd784ded7ccbed25a4637fb3914de0ae SHA512 a8d6b94d51736fd894b5eb660a3a9ff9800d0626aaf16e5b0f7e52569f249f7ddafed6500b977fde64dd275807b4ac187c2bfae8df452e696835424685dad9e7 diff --git a/gui-wm/sway/metadata.xml b/gui-wm/sway/metadata.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>bman@gentoo.org</email> + <name>Aaron Bauman</name> + </maintainer> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>speedjack95@gmail.com</email> + <name>Niccolò Scatena</name> + </maintainer> + <longdescription lang="en"> + "SirCmpwn's Wayland window manager" is an i3-compatible window manager + for Wayland. + + sway was created to fill the need of an i3-like window manager for + Wayland. The upstream i3 developers have no intention of porting i3 to + Wayland, and projects proposed by others ended up as vaporware. Many + thanks to the i3 folks for providing such a great piece of software, so + good that your users would rather write an entirely new window manager + from scratch that behaved *exactly* like i3 rather than switch to + something else. + </longdescription> + <use> + <flag name="swaybar">Install 'swaybar': sway's status bar component</flag> + <flag name="swaybg">Install 'swaybg': allows to set a desktop background image</flag> + <flag name="swayidle">Install 'swayidle': idle manager to run commands when user is inactive</flag> + <flag name="swaylock">Install 'swaylock': sway's screen locker</flag> + <flag name="swaymsg">Install 'swaymsg': tool for communicating with a running sway instance</flag> + <flag name="swaynag">Install 'swaynag': shows a message with buttons</flag> + <flag name="tray">Enable support for StatusNotifierItem tray specification</flag> + <flag name="wallpapers">Install sway's default wallpaper image</flag> + <flag name="X">Enable support for X11 applications (XWayland)</flag> + </use> + <upstream> + <remote-id type="github">swaywm/sway</remote-id> + <maintainer status="active"> + <email>sir@cmpwn.com</email> + <name>Drew DeVault</name> + </maintainer> + <bugs-to>https://github.com/swaywm/sway/issues</bugs-to> + <doc>https://github.com/swaywm/sway/wiki</doc> + <changelog>https://github.com/swaywm/sway/releases</changelog> + </upstream> +</pkgmetadata> diff --git a/gui-wm/sway/sway-1.7_rc1.ebuild b/gui-wm/sway/sway-1.7_rc1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="i3-compatible Wayland window manager" +HOMEPAGE="https://swaywm.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git" +else + MY_PV=${PV/_rc/-rc} + SRC_URI="https://github.com/swaywm/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag tray wallpapers X" + +DEPEND=" + >=dev-libs/json-c-0.13:0= + >=dev-libs/libinput-1.6.0:0= + sys-auth/seatd:= + dev-libs/libpcre + dev-libs/wayland + x11-libs/cairo + x11-libs/libxkbcommon + x11-libs/pango + x11-libs/pixman + media-libs/mesa[gles2,libglvnd(+)] + swaybar? ( x11-libs/gdk-pixbuf:2 ) + swaybg? ( gui-apps/swaybg ) + swayidle? ( gui-apps/swayidle ) + swaylock? ( gui-apps/swaylock ) + wallpapers? ( x11-libs/gdk-pixbuf:2[jpeg] ) + X? ( x11-libs/libxcb:0= ) +" +if [[ ${PV} == 9999 ]]; then + DEPEND+="~gui-libs/wlroots-9999:=[X=]" +else + DEPEND+=" + >=gui-libs/wlroots-0.15:=[X=] + <gui-libs/wlroots-0.16:=[X=] + " +fi +RDEPEND=" + x11-misc/xkeyboard-config + ${DEPEND} +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.14 + >=dev-util/meson-0.60.0 + virtual/pkgconfig +" +if [[ ${PV} == 9999 ]]; then + BDEPEND+="man? ( ~app-text/scdoc-9999 )" +else + BDEPEND+="man? ( >=app-text/scdoc-1.9.3 )" +fi + +src_prepare() { + default + + use swaymsg || sed -e "s/subdir('swaymsg')//g" -e "/swaymsg.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaymsg/d" -i meson.build || die +} + +src_configure() { + local emesonargs=( + -Dman-pages=$(usex man enabled disabled) + -Dtray=$(usex tray enabled disabled) + -Dxwayland=$(usex X enabled disabled) + $(meson_use wallpapers default-wallpaper) + -Dfish-completions=true + -Dzsh-completions=true + -Dbash-completions=true + -Dwerror=false + -Dswaybar=$(usex swaybar true false) + -Dswaynag=$(usex swaybar true false) + ) + + if use swaybar; then + emesonargs+=( -Dgdk-pixbuf=enabled ) + else + emesonargs+=( -Dgdk-pixbuf=disabled ) + fi + + meson_src_configure +}