commit: a8eef63a72543308d0a6f3dcda388385774995de Author: Niccolò Scatena <speedjack95 <AT> gmail <DOT> com> AuthorDate: Fri Nov 30 15:19:55 2018 +0000 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> CommitDate: Sat Dec 1 17:49:07 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8eef63a
dev-libs/sway: update live version 9999 Removed src_install: calling newpamd is not longer required since meson.build now properly install the pam module. Add ability to disable swayidle, swaymsg, swaynag. Add support for building swaylock without pam. Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com> Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> dev-libs/sway/sway-9999.ebuild | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild index 381dbbb1a60..14be762b4b7 100644 --- a/dev-libs/sway/sway-9999.ebuild +++ b/dev-libs/sway/sway-9999.ebuild @@ -14,14 +14,14 @@ else KEYWORDS="~amd64 ~x86" fi -inherit eutils fcaps meson pam +inherit eutils fcaps meson DESCRIPTION="i3-compatible Wayland window manager" HOMEPAGE="https://swaywm.org" LICENSE="MIT" SLOT="0" -IUSE="elogind fish-completion +swaybar +swaybg +swaylock systemd +tray wallpapers X zsh-completion" +IUSE="elogind fish-completion +pam +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag systemd +tray wallpapers X zsh-completion" REQUIRED_USE="?? ( elogind systemd )" RDEPEND="~dev-libs/wlroots-9999[systemd=,elogind=,X=] @@ -38,12 +38,12 @@ RDEPEND="~dev-libs/wlroots-9999[systemd=,elogind=,X=] swaybar? ( x11-libs/gdk-pixbuf:2[jpeg] ) swaybg? ( x11-libs/gdk-pixbuf:2[jpeg] ) swaylock? ( - virtual/pam + pam? ( virtual/pam ) x11-libs/gdk-pixbuf:2[jpeg] ) systemd? ( >=sys-apps/systemd-237 ) tray? ( >=sys-apps/dbus-1.10 ) - X? ( x11-libs/libxcb:0=[xkb] )" + X? ( x11-libs/libxcb:0= )" DEPEND="${RDEPEND}" BDEPEND="app-text/scdoc virtual/pkgconfig" @@ -55,7 +55,14 @@ src_prepare() { use swaybar || sed -e "s/subdir('swaybar')//g" -i meson.build || die use swaybg || sed -e "s/subdir('swaybg')//g" -i meson.build || die - use swaylock || sed -e "s/subdir('swaylock')//g" -i meson.build || die + use swayidle || sed -e "s/subdir('swayidle')//g" -e "/swayidle.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swayidle/d" -i meson.build || die + use swaylock || sed -e "s/subdir('swaylock')//g" -e "/swaylock.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaylock/d" -i meson.build || die + use swaymsg || sed -e "s/subdir('swaymsg')//g" -e "/swaymsg.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaymsg/d" -i meson.build || die + use swaynag || sed -e "s/subdir('swaynag')//g" -e "/swaynag.[0-9].scd/d" \ + -e "/completions\/[a-z]\+\/_\?swaynag/d" -i meson.build || die } src_configure() { @@ -71,12 +78,6 @@ src_configure() { meson_src_configure } -src_install() { - meson_src_install - - use swaylock && newpamd swaylock/pam/swaylock.linux swaylock -} - pkg_postinst() { elog "You must be in the input group to allow sway to access input devices!" local dbus_cmd="" @@ -91,4 +92,7 @@ pkg_postinst() { elog "If you use ConsoleKit2, remember to launch sway using:" elog "exec ck-launch-session ${dbus_cmd}sway" fi + if use swaylock && ! use pam; then + fcaps cap_sys_admin usr/bin/swaylock + fi }