blob: bb0975cd429b4b9e0c6c14fb94731fd1d2256789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.16.0
EAPI=8
CRATES="
"
RUST_MIN_VER="1.88.0"
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"
REQUIRED_USE="?? ( cosmic gnome hyprland kde niri pantheon socket 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 udev)
$(usev niri)
$(usev cosmic)
$(usev socket)
$(usev pantheon)
)
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() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|