aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-08-11 18:52:54 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-08-11 19:31:32 +0900
commit7d3b25041149800a5d147c1d51f0194409e20f2c (patch)
treef5821a0edabc123bc94499ec48a8af431753ce68
parentprofiles: unmask dev-lang/swift (diff)
downloadguru-7d3b25041149800a5d147c1d51f0194409e20f2c.tar.gz
guru-7d3b25041149800a5d147c1d51f0194409e20f2c.tar.bz2
guru-7d3b25041149800a5d147c1d51f0194409e20f2c.zip
gui-wm/niri: add 0.1.8
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
-rw-r--r--gui-wm/niri/Manifest2
-rw-r--r--gui-wm/niri/niri-0.1.8.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/gui-wm/niri/Manifest b/gui-wm/niri/Manifest
index f744d1d2a..45eaee10a 100644
--- a/gui-wm/niri/Manifest
+++ b/gui-wm/niri/Manifest
@@ -1,2 +1,4 @@
DIST niri-0.1.7-vendored-dependencies.tar.xz 55986496 BLAKE2B 86d7a3ddce3884831874cfac0540d6e5e8dccb9fe503f3d9b061af22f4a29e4f4742e150081fffff139b69961b19f3d8bcb4b2dd4bba5fb0ef955dca0a165df7 SHA512 bc58c234760c42034628c273c428d2200affdd4076cdd2e2a6961fa07aa256832e0a20c3cbc6116f4af29c452a1a82f29a871ccf718a8bbb121a3b544c09d320
DIST niri-0.1.7.tar.gz 354660 BLAKE2B 5d547424248d547587f0ec1e647f1265f334e49b8a1dc3d133b43707c7789ce12c5e18e9e42de87fa897e71332353a313af791574ac2e002d39b6c5c6b2441f8 SHA512 cd1067dc0a2a11920b33af8e13823147d7a0e7a206cf9ff94a0c410c8414c6c70db0c21d1a08d0e0935edf04e12e3fba5e748ac8f430c7bc63e6d6b84c2141dd
+DIST niri-0.1.8-vendored-dependencies.tar.xz 52394124 BLAKE2B 67f706016335bd79641c188006bda75e8b7ca9203b1bb4d37b6f771f877c734da6fead95304655e428b2ab2c17342377af8e41258b036ed68eb58f094c79a186 SHA512 f29f17504da45d406c7411a17bcce8c3a8e056f16f46044ffe5ed6af79b8daee9cbdbd84257b480f4311fc3efe49814c6bbe45dfd1e32325fdcc75c99dd27607
+DIST niri-0.1.8.tar.gz 379816 BLAKE2B 3558f2664148bd255b592c5809ee26db459f2f70d58686b62c96ca4bcb4d7ea7651e737fda1bcc27fe095269db235aa8ed2fc719aef62ed4ce69c7883a04e054 SHA512 191e9a781a1d193cc49e3609bfb00a4915e74526ba9d4db8e091e49b515b8b7fc9292706b0cb0bb23321629a92f9ba624a0b13b80827e126ed487ffb780ad963
diff --git a/gui-wm/niri/niri-0.1.8.ebuild b/gui-wm/niri/niri-0.1.8.ebuild
new file mode 100644
index 000000000..bb9267693
--- /dev/null
+++ b/gui-wm/niri/niri-0.1.8.ebuild
@@ -0,0 +1,82 @@
+# 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 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-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.77.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
+ 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
+}