diff options
author | Takuya Wakazono <pastalian46@gmail.com> | 2024-11-14 20:53:05 +0900 |
---|---|---|
committer | Takuya Wakazono <pastalian46@gmail.com> | 2024-11-14 20:53:05 +0900 |
commit | 70708ce8a4f05e7342a63456dfca36f01ce5ba4b (patch) | |
tree | bbf37b4d000cf617884aa302281fa4da34ee00ca /gui-wm | |
parent | dev-python/mpxj: Added missing dependency. Enabled Python 3.13. (diff) | |
download | guru-70708ce8a4f05e7342a63456dfca36f01ce5ba4b.tar.gz guru-70708ce8a4f05e7342a63456dfca36f01ce5ba4b.tar.bz2 guru-70708ce8a4f05e7342a63456dfca36f01ce5ba4b.zip |
gui-wm/niri: add 0.1.10.1
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'gui-wm')
-rw-r--r-- | gui-wm/niri/Manifest | 2 | ||||
-rw-r--r-- | gui-wm/niri/niri-0.1.10.1.ebuild | 88 |
2 files changed, 90 insertions, 0 deletions
diff --git a/gui-wm/niri/Manifest b/gui-wm/niri/Manifest index 51be01dfe..f1fb7a8cd 100644 --- a/gui-wm/niri/Manifest +++ b/gui-wm/niri/Manifest @@ -1,2 +1,4 @@ +DIST niri-0.1.10.1-vendored-dependencies.tar.xz 53928792 BLAKE2B 28eb1d090b12f8b324e89d807b0999161360ecc71fc2b3d2b5e7a1cdcb7313e307867f4a763a6124d4bde46c28b90fa3797d75d62fa1b20ac3ae998b69cf94cd SHA512 7ee23334de2dacfdd6e2f73b2056ed81af39abef132d423c9c6097de367f7be3e0ba1694b4818f0ee89518c0e379aafd0ece426ac97a52a5b9c96bd9532ed49e +DIST niri-0.1.10.1.tar.gz 429116 BLAKE2B 394cce3c11d19ef65d450a0e402e3c97affdff798340bb37aba90ea9b49c4cb5e7417873bd0e66bafb2ff035d71ddfca14fb91a86aa997dc23534bd1eff48035 SHA512 ba816350bad30debcb961d6c516c96a0a732621e78e08f7f04bbf3bee46cb463318a59acf532660288022a247cfcd636d59159b66fd01c1c702d58f8ddf44e6a DIST niri-0.1.9-vendored-dependencies.tar.xz 52231744 BLAKE2B c9b7a1a508f273a59219437c644bc954398277ddec772c53dc35556736244b5230ab1a0aa9e31f9b418215d634b05565e1c3331f882a6616e4036d29892a29d3 SHA512 88db732c9d2c81e4285ce0e67ef1c4778367e4ff1540b43d7922b85add199c6f2f29e03d1bc78d321f79684bd6fd0ca3b06533491a5b02cf4872e5dd661a93d2 DIST niri-0.1.9.tar.gz 409640 BLAKE2B 86caa9f2b9a468c5aef8041f902bbbd252200ab2fda4da5bf9d0997d61014b8f99336dd2b0579cf754d188ce51dfbcee0d83f413d8a10dba451c104a69f73ca0 SHA512 7436ad537b6f4e2d0b05731d94bf02594310526843083a175c061327958d7673d19ec601732969f9910c4e41b97be64a04d2a1eac3c7ec19c4d71a31fdad8d6c diff --git a/gui-wm/niri/niri-0.1.10.1.ebuild b/gui-wm/niri/niri-0.1.10.1.ebuild new file mode 100644 index 000000000..9c56000ad --- /dev/null +++ b/gui-wm/niri/niri-0.1.10.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {16..19} ) +RUST_MIN_VER="1.77.0" + +inherit llvm-r1 cargo systemd + +DESCRIPTION="Scrollable-tiling Wayland compositor" +HOMEPAGE="https://github.com/YaLTeR/niri" +SRC_URI=" + https://github.com/YaLTeR/niri/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/YaLTeR/niri/releases/download/v${PV}/${P}-vendored-dependencies.tar.xz +" + +LICENSE="GPL-3+" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT MPL-2.0 + Unicode-3.0 Unicode-DFS-2016 +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+dbus screencast systemd" +REQUIRED_USE=" + screencast? ( dbus ) + systemd? ( dbus ) +" + +DEPEND=" + dev-libs/glib:2 + dev-libs/libinput:= + dev-libs/wayland + media-libs/libdisplay-info:= + media-libs/mesa + sys-auth/seatd:= + virtual/libudev:= + x11-libs/cairo + x11-libs/libxkbcommon + x11-libs/pango + x11-libs/pixman + screencast? ( + media-video/pipewire:= + ) +" +RDEPEND="${DEPEND}" +# Clang is required for bindgen +BDEPEND=" + screencast? ( $(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}') ) +" + +ECARGO_VENDOR="${WORKDIR}/vendor" + +QA_FLAGS_IGNORED="usr/bin/niri" + +pkg_setup() { + llvm-r1_pkg_setup + rust_pkg_setup +} + +src_prepare() { + sed -i 's/git = "[^ ]*"/version = "*"/' Cargo.toml || die + default +} + +src_configure() { + local myfeatures=( + $(usev dbus) + $(usev screencast xdp-gnome-screencast) + $(usev systemd) + ) + cargo_src_configure --no-default-features +} + +src_install() { + cargo_src_install + + dobin resources/niri-session + systemd_douserunit resources/niri{.service,-shutdown.target} + + insinto /usr/share/wayland-sessions + doins resources/niri.desktop + + insinto /usr/share/xdg-desktop-portal + doins resources/niri-portals.conf +} |