summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-09-13 14:10:24 +0200
committerAaron Bauman <bman@gentoo.org>2020-11-11 12:03:12 -0500
commit6b78bcb50adbc7dd16d3a5dcdc4cb04b04877b85 (patch)
treecece07ca40c69a8649160137efbdf5b4e434ab96 /gui-wm/sway
parentgui-libs/wlroots: Add support for seatd (diff)
downloadgentoo-6b78bcb50adbc7dd16d3a5dcdc4cb04b04877b85.tar.gz
gentoo-6b78bcb50adbc7dd16d3a5dcdc4cb04b04877b85.tar.bz2
gentoo-6b78bcb50adbc7dd16d3a5dcdc4cb04b04877b85.zip
gui-wm/sway: Add support for seatd
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/17521 Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'gui-wm/sway')
-rw-r--r--gui-wm/sway/metadata.xml1
-rw-r--r--gui-wm/sway/sway-9999.ebuild12
2 files changed, 7 insertions, 6 deletions
diff --git a/gui-wm/sway/metadata.xml b/gui-wm/sway/metadata.xml
index a7e995120512..f4fdcc1510d5 100644
--- a/gui-wm/sway/metadata.xml
+++ b/gui-wm/sway/metadata.xml
@@ -29,6 +29,7 @@
<flag name="elogind">Enable support for rootless session via elogind</flag>
<flag name="fish-completion">Enable fish completion support</flag>
<flag name="man">Build and install man pages</flag>
+ <flag name="seatd">Enable support for rootless session via <pkg>sys-auth/seatd</pkg></flag>
<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>
diff --git a/gui-wm/sway/sway-9999.ebuild b/gui-wm/sway/sway-9999.ebuild
index 336a2ad2f6d2..12347f7a6fc4 100644
--- a/gui-wm/sway/sway-9999.ebuild
+++ b/gui-wm/sway/sway-9999.ebuild
@@ -20,7 +20,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="elogind fish-completion +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag systemd tray wallpapers X zsh-completion"
+IUSE="elogind fish-completion +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag seatd systemd tray wallpapers X zsh-completion"
REQUIRED_USE="?? ( elogind systemd )
tray? ( || ( elogind systemd ) )"
@@ -44,11 +44,11 @@ DEPEND="
X? ( x11-libs/libxcb:0= )
"
if [[ ${PV} == 9999 ]]; then
- DEPEND+="~gui-libs/wlroots-9999:=[elogind=,systemd=,X=]"
+ DEPEND+="~gui-libs/wlroots-9999:=[elogind=,seatd=,systemd=,X=]"
else
DEPEND+="
- >=gui-libs/wlroots-0.11.0:=[elogind=,systemd=,X=]
- <gui-libs/wlroots-0.12.0:=[elogind=,systemd=,X=]
+ >=gui-libs/wlroots-0.11.0:=[elogind=,seatd=,systemd=,X=]
+ <gui-libs/wlroots-0.12.0:=[elogind=,seatd=,systemd=,X=]
"
fi
RDEPEND="
@@ -99,14 +99,14 @@ src_configure() {
}
pkg_preinst() {
- if ! use systemd && ! use elogind; then
+ if ! use systemd && ! use elogind && ! use seatd; then
fowners root:0 /usr/bin/sway
fperms 4511 /usr/bin/sway
fi
}
pkg_postinst() {
- if ! use systemd && ! use elogind; then
+ if ! use systemd && ! use elogind && ! use seatd; then
elog ""
elog "If you use ConsoleKit2, remember to launch sway using:"
elog "exec ck-launch-session sway"