diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-21 01:50:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-21 01:50:31 +0000 |
commit | 2ac4d6eef70b0af1c7380b190dd14c8df8a4b9a5 (patch) | |
tree | 99640217df95ed54255127d0f54f43d19474348f /gui-wm/sway | |
parent | 1fb8608d6f0b1acf0e34361c105533087a09c710 (diff) |
gentoo auto-resync : 21:12:2023 - 01:50:31
Diffstat (limited to 'gui-wm/sway')
-rw-r--r-- | gui-wm/sway/Manifest | 4 | ||||
-rw-r--r-- | gui-wm/sway/files/sway-portals.conf | 6 | ||||
-rw-r--r-- | gui-wm/sway/sway-1.8.1-r1.ebuild | 120 | ||||
-rw-r--r-- | gui-wm/sway/sway-9999.ebuild | 6 |
4 files changed, 135 insertions, 1 deletions
diff --git a/gui-wm/sway/Manifest b/gui-wm/sway/Manifest index 13e6ef0d90aa..7669103c3b7f 100644 --- a/gui-wm/sway/Manifest +++ b/gui-wm/sway/Manifest @@ -1,4 +1,6 @@ +AUX sway-portals.conf 216 BLAKE2B d30b62bb142802e5067c2829d69faba87b07c8a36661f43473b0a107fd57d020b3dcc5e7a1967a1fca13b7a5e9140063b7285c44b766f67002213521d676b1ab SHA512 790741df028822bf4d83170dea57e1c63f7d7938cf31969e4cd347b0fc07330322b603c9ec0091b7a3f425132bed9dee6f261074cc273555120858beaaaf5da1 DIST sway-1.8.1.tar.gz 5577483 BLAKE2B 0e21c3a113b6bbb4a535ef77e347304ead98a424b65c176299f3d86fd52c35abf88d4e88fff0a8ecdb48494e8275110c79ea35fafd2902653db03fd938ee0323 SHA512 1f9909cb0402a99926d0ff1cefb98c40930e61678067413b6f195b036e6018a4f85bb3a6649d8bb743c93f0476b103791617a94d7c8c11a2c021f40131b65563 +EBUILD sway-1.8.1-r1.ebuild 2787 BLAKE2B 879affa3704335acb2d00ffcbee4ec602b484379a12fa57ad878888755450bf2f03506453a4107b49080e072c665294db3af7e87d1d846208f7609a6f4ad3c8b SHA512 b4c6014e636ef438915dba33d4882e27c6afe30da62e4958a9e5f03cf38512e3a714222df6cca3d7ae95239642f95409b5ec28563ff019ecd6478d2a1d48b69f EBUILD sway-1.8.1.ebuild 2697 BLAKE2B 3730a8549ac3e0371adf2ae476fee57b70435ebcc9d22618e8979b7b91c9476fde4b28cff77b4c0c7297ba9458f0fa7ab8a6192d0da57c9de7780510dd5d4547 SHA512 dd3641872fb7c499cf6161dea58686c89713efa69d56552a5df9e4a50f1f897053483ef6295bda2ef0314915d4b5e4c34a305e2f81032bee506cce84ec6cf1d4 -EBUILD sway-9999.ebuild 2465 BLAKE2B 390e19589ac974897e0389b3afc522c4bf2f6ff7d3a803a40ad85ce8a9585df525d8dcb494b75fcb370a59eb7bfe7e4eec8e7ed1b521fc23020cd3bd07b817f3 SHA512 18cec7ad98e2ea6fea1c836035bb43882f64690c659974cbdc963d66b370a08c4c2afd143b3248ebad4278b039b7687e623dc240027518f8e805bdca8f309cf7 +EBUILD sway-9999.ebuild 2589 BLAKE2B 65b67af420b3fcccf555ee3047217d206af1fe9ce5aeb46a785b567958765b3717df40eb20759721081cef90a05915c14a603746b345b128f47b8735ce71f02c SHA512 30892e657c0c157cb713eda57471b7c3caeb5014c3ad10590c10c95054df155278f4996029fa78245b44dd370b7828a9faee95389d084a3cb231b3b277831eb5 MISC metadata.xml 1802 BLAKE2B 2851be5d36dd2965a8ae2e55617615990f5e936208c05aacad49825099866c47f550d74f066905cb09029ec90e53d20a4487a7ba1af039ef1d2d445ebd1bd041 SHA512 c47f54f6997e10461c5ff337eb9ad441b03f6dcc83f1ae63cb92bb3df07bbb78d78c7b9718eb50e0d808a7ea73e13d3f4f809931af34d5b557e8a7ac9903d228 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-1.8.1-r1.ebuild b/gui-wm/sway/sway-1.8.1-r1.ebuild new file mode 100644 index 000000000000..5a6cfa95a1ec --- /dev/null +++ b/gui-wm/sway/sway-1.8.1-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson optfeature + +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="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="grimshot +man +swaybar +swaynag tray wallpapers X" + +DEPEND=" + >=dev-libs/json-c-0.13:0= + >=dev-libs/libinput-1.21.0:0= + sys-auth/seatd:= + dev-libs/libpcre2 + >=dev-libs/wayland-1.20.0 + x11-libs/cairo + x11-libs/libxkbcommon + x11-libs/pango + x11-libs/pixman + media-libs/mesa[gles2,libglvnd(+)] + swaybar? ( x11-libs/gdk-pixbuf:2 ) + tray? ( || ( + sys-apps/systemd + sys-auth/elogind + sys-libs/basu + ) ) + wallpapers? ( gui-apps/swaybg[gdk-pixbuf(+)] ) + X? ( + x11-libs/libxcb:0= + x11-libs/xcb-util-wm + ) +" +# x11-libs/xcb-util-wm needed for xcb-iccm +if [[ ${PV} == 9999 ]]; then + DEPEND+="~gui-libs/wlroots-9999:=[X?]" +else + DEPEND+=" + >=gui-libs/wlroots-0.16:=[X?] + <gui-libs/wlroots-0.17:=[X?] + " +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=" + >=dev-libs/wayland-protocols-1.24 + >=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 +REQUIRED_USE="tray? ( swaybar )" + +src_configure() { + local emesonargs=( + $(meson_feature man man-pages) + $(meson_feature tray) + $(meson_feature X xwayland) + $(meson_feature swaybar gdk-pixbuf) + $(meson_use swaynag) + $(meson_use swaybar) + $(meson_use wallpapers default-wallpaper) + -Dfish-completions=true + -Dzsh-completions=true + -Dbash-completions=true + ) + + 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 + optfeature "idle management utility" gui-apps/swayidle + optfeature "simple screen locker" gui-apps/swaylock + optfeature "lightweight notification daemon" gui-apps/mako + echo + einfo "For a list of additional addons and tools usable with sway please" + einfo "visit the offical wiki at:" + einfo "https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway" + einfo "Please note that some of them might not (yet) available on gentoo" +} 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 |