From b6b5e7913a366f6804b2ee9e06f5caae076e2a8d Mon Sep 17 00:00:00 2001 From: Daichi Yamamoto Date: Sun, 4 Oct 2026 14:56:41 +0900 Subject: [PATCH] gui-apps/xremap: add 0.15.14 Signed-off-by: Daichi Yamamoto --- gui-apps/xremap/Manifest | 2 + gui-apps/xremap/files/xremap-input.rules | 2 +- gui-apps/xremap/metadata.xml | 2 +- gui-apps/xremap/xremap-0.15.14.ebuild | 78 ++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 gui-apps/xremap/xremap-0.15.14.ebuild diff --git a/gui-apps/xremap/Manifest b/gui-apps/xremap/Manifest index e0c632d83e..d3860fed0d 100644 --- a/gui-apps/xremap/Manifest +++ b/gui-apps/xremap/Manifest @@ -1,2 +1,4 @@ DIST xremap-0.15.12-crates.tar.xz 12977460 BLAKE2B 87e0f0548f1650caa16e687e5c75a15d1539aae1d123a96c7ac415d5642b211b36b8e46bc105a53f0de89b7f6ee7de66bb04b53fd81d2748bb53b9341584e278 SHA512 c42e5952bce5179bdec810000d0782c3b510ca1748545e89a983fce9c4685ce5650e2625c69d2fd479b900b39319f1362b6f106f2da7d1cabcc7c9e7fbaa0bd0 DIST xremap-0.15.12.tar.gz 157984 BLAKE2B 4f55f0a5d1ee2ca1a08c7906ecfe3c14c4f3c2e84a2bea9207c4c31ce2ded830705a9f7d637c90c91120138730ba71aa5af9116052d7d40ea5f0945db6e67c14 SHA512 9cf8d4350d3685ec1463551407300c05e67692ba836775c10a089c1e6e972a33fb54cced2c0144ae59fb9ab9c3b1ce1e9c55fd2e3cc28af1311bd9e36113abfe +DIST xremap-0.15.14-crates.tar.xz 12986924 BLAKE2B 594dd7ebe6b07c97cbd3df830cc6a17ecd3968a95044dde5120c3c4c519db14b4467f581f8b9f37cd2a6cce2c4d8aaf8d3db10de6d4b0c92d903de03c4b0937d SHA512 5c80bf085e5677c086f08069b1acc86a3fe9f1ba73bc0fa9eb89a6aaa78b0a710376be8b6235c6173f43be99ccc5905d996ecf51ea2dbf98f47710ac2a3d2aaf +DIST xremap-0.15.14.tar.gz 162700 BLAKE2B 6c0c7fd3ea2006c540061bbf80c733e86e7bb84403b08721efe3c969c394477da17186d8598b83d8763a48bbd2f7083f4794ccc58d6068aa0ad4713d8e7bef48 SHA512 d3fe48ddfc5f9cdbfd22d8904e67e8a19af7ca673b91c6123ad1241ffb35dab676615d5b380f90d7a91c5162e986d9dd83ffc9a103b4be2dddabae1178aa95bf diff --git a/gui-apps/xremap/files/xremap-input.rules b/gui-apps/xremap/files/xremap-input.rules index 4f3d349cea..1158b4067e 100644 --- a/gui-apps/xremap/files/xremap-input.rules +++ b/gui-apps/xremap/files/xremap-input.rules @@ -1 +1 @@ -KERNEL=="uinput", GROUP="input", TAG+="uaccess" +KERNEL=="uinput", GROUP="input", TAG+="uaccess", MODE:="0660", OPTIONS+="static_node=uinput" diff --git a/gui-apps/xremap/metadata.xml b/gui-apps/xremap/metadata.xml index 802deca215..4432d009ac 100644 --- a/gui-apps/xremap/metadata.xml +++ b/gui-apps/xremap/metadata.xml @@ -13,8 +13,8 @@ build client for Hyprland build client for Niri build client for COSMIC Wayland - build client for Variant for system service build client for Pantheon Wayland (aka Secure) + build client for system service xremap/xremap diff --git a/gui-apps/xremap/xremap-0.15.14.ebuild b/gui-apps/xremap/xremap-0.15.14.ebuild new file mode 100644 index 0000000000..b585540ae8 --- /dev/null +++ b/gui-apps/xremap/xremap-0.15.14.ebuild @@ -0,0 +1,78 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.17.1 + +EAPI=8 + +CRATES=" +" + +RUST_MIN_VER="1.87" + +inherit cargo systemd udev + +DESCRIPTION="Dynamic key remap for X and Wayland" +HOMEPAGE="https://github.com/xremap/xremap" +SRC_URI=" + https://github.com/xremap/xremap/archive/v${PV}/${P}.tar.gz + https://github.com/yamader/gentoo-deps/releases/download/${P}/${P}-crates.tar.xz +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD GPL-3+ MIT Unicode-3.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cosmic gnome hyprland kde niri pantheon socket udev wlroots x11" + +DEPEND="udev? ( virtual/libudev )" +RDEPEND="${DEPEND}" + +DOCS=( CHANGELOG.md README.md ) + +QA_FLAGS_IGNORED=".*" + +src_configure() { + local myfeatures=( + $(usev gnome) + $(usev x11) + $(usev hyprland hypr) + $(usev kde) + $(usev wlroots) + $(usev niri) + $(usev cosmic) + $(usev pantheon) + $(usev socket) + $(usev udev) + ) + cargo_src_configure --no-default-features +} + +src_install() { + cargo_src_install + + insinto /etc/xremap + doins example/config.yml + doins example/emacs.yml + + insinto /etc/xdg/autostart + doins example/xremap.desktop + + systemd_douserunit example/xremap.service + + insinto /usr/lib/modules-load.d + doins "${FILESDIR}"/xremap-uinput.conf + + use udev && udev_newrules "${FILESDIR}"/xremap-input.rules 99-xremap-input.rules + + einstalldocs +} + +pkg_postinst() { + use udev && udev_reload +} + +pkg_postrm() { + use udev && udev_reload +}