commit: 903bedd11be81d905d492f6007e8820ecebcff5d Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> AuthorDate: Wed Dec 20 23:22:20 2023 +0000 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> CommitDate: Wed Dec 20 23:22:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903bedd1
gui-wm/sway: add sway-portals config closes: https://bugs.gentoo.org/915703 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> gui-wm/sway/files/sway-portals.conf | 6 ++++++ .../sway/{sway-9999.ebuild => sway-1.8.1-r1.ebuild} | 21 ++++++++++++++++++++- gui-wm/sway/sway-9999.ebuild | 6 ++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/gui-wm/sway/files/sway-portals.conf b/gui-wm/sway/files/sway-portals.conf new file mode 100644 index 000000000000..aa046f63c4b1 --- /dev/null +++ b/gui-wm/sway/files/sway-portals.conf @@ -0,0 +1,6 @@ +[preferred] +# Use xdg-desktop-portal-gtk for every portal interface... +default=gtk +# ... except for the ScreenCast and Screenshot +org.freedesktop.impl.portal.ScreenCast=wlr +org.freedesktop.impl.portal.Screenshot=wlr diff --git a/gui-wm/sway/sway-9999.ebuild b/gui-wm/sway/sway-1.8.1-r1.ebuild similarity index 86% copy from gui-wm/sway/sway-9999.ebuild copy to gui-wm/sway/sway-1.8.1-r1.ebuild index 088475a36417..5a6cfa95a1ec 100644 --- a/gui-wm/sway/sway-9999.ebuild +++ b/gui-wm/sway/sway-1.8.1-r1.ebuild @@ -20,7 +20,7 @@ fi LICENSE="MIT" SLOT="0" -IUSE="+man +swaybar +swaynag tray wallpapers X" +IUSE="grimshot +man +swaybar +swaynag tray wallpapers X" DEPEND=" >=dev-libs/json-c-0.13:0= @@ -56,6 +56,13 @@ else fi RDEPEND=" x11-misc/xkeyboard-config + grimshot? ( + app-misc/jq + gui-apps/grim + gui-apps/slurp + gui-apps/wl-clipboard + x11-libs/libnotify + ) ${DEPEND} " BDEPEND=" @@ -87,6 +94,18 @@ src_configure() { meson_src_configure } +src_install() { + meson_src_install + + if use grimshot; then + doman contrib/grimshot.1 + dobin contrib/grimshot + fi + + insinto /usr/share/xdg-desktop-portal/portals + doins "${FILESDIR}/sway-portals.conf" +} + pkg_postinst() { optfeature_header "There are several packages that may be useful with sway:" optfeature "wallpaper utility" gui-apps/swaybg diff --git a/gui-wm/sway/sway-9999.ebuild b/gui-wm/sway/sway-9999.ebuild index 088475a36417..3e3ec1143eeb 100644 --- a/gui-wm/sway/sway-9999.ebuild +++ b/gui-wm/sway/sway-9999.ebuild @@ -87,6 +87,12 @@ src_configure() { meson_src_configure } +src_install() { + meson_src_install + insinto /usr/share/xdg-desktop-portal/portals + doins "${FILESDIR}/sway-portals.conf" +} + pkg_postinst() { optfeature_header "There are several packages that may be useful with sway:" optfeature "wallpaper utility" gui-apps/swaybg
