From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A53FB1582EF for ; Sun, 23 Feb 2025 13:01:04 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E24493431BD for ; Sun, 23 Feb 2025 13:00:58 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 02BE31102A2; Sun, 23 Feb 2025 13:00:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id EA9B11102A2 for ; Sun, 23 Feb 2025 13:00:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B0403434F2 for ; Sun, 23 Feb 2025 13:00:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D831723C1 for ; Sun, 23 Feb 2025 13:00:26 +0000 (UTC) From: "Takuya Wakazono" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Takuya Wakazono" Message-ID: <1740315507.841700c63a7b59f2653a576a7d14c47a66e5d8ce.pastalian46@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/niri/ X-VCS-Repository: repo/proj/guru X-VCS-Files: gui-wm/niri/Manifest gui-wm/niri/niri-25.02.ebuild X-VCS-Directories: gui-wm/niri/ X-VCS-Committer: pastalian46 X-VCS-Committer-Name: Takuya Wakazono X-VCS-Revision: 841700c63a7b59f2653a576a7d14c47a66e5d8ce X-VCS-Branch: dev Date: Sun, 23 Feb 2025 13:00:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4f0e1f5b-f297-4869-97b4-be7eb6627f42 X-Archives-Hash: 2bca66a1b8d4bf94d2e21bc8e20a6ff4 commit: 841700c63a7b59f2653a576a7d14c47a66e5d8ce Author: Takuya Wakazono gmail com> AuthorDate: Sun Feb 23 12:58:27 2025 +0000 Commit: Takuya Wakazono gmail com> CommitDate: Sun Feb 23 12:58:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=841700c6 gui-wm/niri: add 25.02 Signed-off-by: Takuya Wakazono gmail.com> gui-wm/niri/Manifest | 2 + gui-wm/niri/niri-25.02.ebuild | 100 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/gui-wm/niri/Manifest b/gui-wm/niri/Manifest index b720730a2..631f8f9ac 100644 --- a/gui-wm/niri/Manifest +++ b/gui-wm/niri/Manifest @@ -2,3 +2,5 @@ DIST niri-0.1.10.1-vendored-dependencies.tar.xz 53928792 BLAKE2B 28eb1d090b12f8b DIST niri-0.1.10.1.tar.gz 429116 BLAKE2B 394cce3c11d19ef65d450a0e402e3c97affdff798340bb37aba90ea9b49c4cb5e7417873bd0e66bafb2ff035d71ddfca14fb91a86aa997dc23534bd1eff48035 SHA512 ba816350bad30debcb961d6c516c96a0a732621e78e08f7f04bbf3bee46cb463318a59acf532660288022a247cfcd636d59159b66fd01c1c702d58f8ddf44e6a DIST niri-25.01-vendored-dependencies.tar.xz 47572184 BLAKE2B d8675c7f98f43fe34ff0237b78ae772296015ff28509960b87aa828937bf541fbfeb23cadaf869bfe128fbeff8d16f362e8967a124b996cea2ed0a53036480cb SHA512 a498d667e65175190e5d60edcdb4b11defd34e76644b29f14f01dd31035ac2dc4dfa1962afa57e18d1a06c775c3e6302c3e5cbb6b1fdb3980b148c9912a1ee14 DIST niri-25.01.tar.gz 572739 BLAKE2B b8d1b1919cc5568b38ffae225a815669dacf8fd5a9d3d6f4e3083f90e4a0ed811ffdf718166ca850655d679af428c7f4067a4973802ecdeb1e580351d2f796d9 SHA512 5c555f4410659a4301151a58938cc9880a9a244af138157c0be0fb38f0e82d20e6fccccad7e47ef515d3aaa0f7ddeef5088adad3f8d0be1a99a89f822c8b7a66 +DIST niri-25.02-vendored-dependencies.tar.xz 46867412 BLAKE2B b8bc3ebddd0495448118565130777a21c5c727952ce9a1a67adc112e4173a2a23e550d28f88e299856a4b7348322406d79661487a690758f35b541a8936eb419 SHA512 dcc3c542e4743f0b68b84dcac1f540123e7a69fc6d97a9a51185802a335de4ef25ebd2ff9db92bb3015670da56bc685382e25b4e418e22c370ec99ee40a9123e +DIST niri-25.02.tar.gz 666937 BLAKE2B 79a050f001b0287b8de81b7368da661900ac86f2515a5b91fc44e8b52604e2a1bfe430dc251212ff4fca60f42bf5741d3acb492df3275a1e87962d60f60342c0 SHA512 1ed4061cf6267c32a035604314f6c324f3002891ef14bbec5bfdb8b980cab5d2ef94b856cd651d7ebb99e249158be5849c66f661ab731ac6f0c25f2eda8a3745 diff --git a/gui-wm/niri/niri-25.02.ebuild b/gui-wm/niri/niri-25.02.ebuild new file mode 100644 index 000000000..6aeb7cc05 --- /dev/null +++ b/gui-wm/niri/niri-25.02.ebuild @@ -0,0 +1,100 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 18 19 ) +RUST_MIN_VER="1.80.1" + +# used for version string +export NIRI_BUILD_COMMIT="b94a5db" + +inherit cargo llvm-r2 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}" +# libclang is required for bindgen +BDEPEND=" + screencast? ( $(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}') ) +" + +ECARGO_VENDOR="${WORKDIR}/vendor" + +QA_FLAGS_IGNORED="usr/bin/niri" + +pkg_setup() { + llvm-r2_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 +} + +src_test() { + # tests create a wayland socket in the xdg runtime dir + export XDG_RUNTIME_DIR="${T}/xdg" + mkdir "${XDG_RUNTIME_DIR}" || die + chmod 0700 "${XDG_RUNTIME_DIR}" || die + + cargo_src_test +}