aboutsummaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-05-20 21:28:02 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-05-20 21:30:24 +0900
commit8c499fb11544f326fc5c2fe2526f1b7d42a8c95e (patch)
tree3df8a86b805502f77262ea716c3cd70845092b6a /gui-wm
parentmedia-libs/wivrn: remove negative USE flag (diff)
downloadguru-8c499fb11544f326fc5c2fe2526f1b7d42a8c95e.tar.gz
guru-8c499fb11544f326fc5c2fe2526f1b7d42a8c95e.tar.bz2
guru-8c499fb11544f326fc5c2fe2526f1b7d42a8c95e.zip
gui-wm/niri: add 0.1.6
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/niri/Manifest2
-rw-r--r--gui-wm/niri/niri-0.1.6.ebuild84
2 files changed, 86 insertions, 0 deletions
diff --git a/gui-wm/niri/Manifest b/gui-wm/niri/Manifest
index da0ff1519..4331d9722 100644
--- a/gui-wm/niri/Manifest
+++ b/gui-wm/niri/Manifest
@@ -1,2 +1,4 @@
DIST niri-0.1.5-vendored-dependencies.tar.xz 55701136 BLAKE2B a56907560b47958df743f5740e7cac4b0a3aa29233cac990aaa9ec48f0b16461a0459b95d7cd958cec07eda6b9d5ba4ada5e5ef533fadb084a05b3b6737c5694 SHA512 63560f4d811b18e9bdd5e14e79880c6844b45616964c72fdf87b0f1074951ec8549c199271297a51596b20c4d4c4b058cee5c59c5ab6339af1a3b5615976ab9f
DIST niri-0.1.5.tar.gz 293845 BLAKE2B deeea09391acaa5b576b230bf726cc5eb156ab918fe725929d9fbfbdcee273cd9790b2bf2b0ea1e85af405d1298d9c9a637c200c5297d3f002a58cb435d3308d SHA512 ff66e5671bc48cf6bb679d898f597839808def84773a288ad7b2a58f55f9f9e78a92b66581f391e03e0416e9a0fa7ab9ef5fce10788a88bf055ad597f5dc44da
+DIST niri-0.1.6-vendored-dependencies.tar.xz 55357156 BLAKE2B 6be7227ebb856d501e1bc7eb94746ab21ac8171b060a0375f956fc774d73372e3e33f218ba8ba1728687c01d0a3ba770250ba0b0d762ef4ad3dd729a581b555f SHA512 2368a8d7feb06e02b41174e8baff28324da5ebc9f7fec58e5662245730f357cc1ec68d5c19d2923c5c86cba27ee60fc8190f10ae67856b42ead02543445bfe08
+DIST niri-0.1.6.tar.gz 335427 BLAKE2B 17ab734d3412b4da4e0eca7a3dcbbb7210140ef9ae7a6d4bcd9ca7177128073c9385a59776ab2903e4ac70e158a5860c310519f0b5768721bbee483bad9ad0f4 SHA512 ed83a62552e3a7b049ec03aff2e8e191eb383584f1789f15fe94cce8df847a0de7b3917bd5b64fa1c8e6392de52bb81caa92472a3e40df97ac1b5562b881dca2
diff --git a/gui-wm/niri/niri-0.1.6.ebuild b/gui-wm/niri/niri-0.1.6.ebuild
new file mode 100644
index 000000000..fd417fb09
--- /dev/null
+++ b/gui-wm/niri/niri-0.1.6.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {16..18} )
+
+inherit cargo llvm-r1
+
+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-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/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="
+ >=virtual/rust-1.72.0
+ screencast? ( $(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}') )
+"
+
+ECARGO_VENDOR="${WORKDIR}/vendor"
+
+QA_FLAGS_IGNORED="usr/bin/niri"
+
+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
+
+ insinto /usr/lib/systemd/user
+ doins 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
+}