gui-apps/xremap - 0.15.12 (guru)

Search

Install

Install this version:

emerge -a =gui-apps/xremap-0.15.12

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =gui-apps/xremap-0.15.12

Or alternatively:

emerge --autounmask-write -a =gui-apps/xremap-0.15.12

Package Information

Description:
Dynamic key remap for X and Wayland
Homepage:
https://github.com/xremap/xremap
License:
MIT Apache-2.0 BSD GPL-3+ MIT Unicode-3.0

Ebuild Details

Version EAPI Keywords Slot
0.15.12 8 ~amd64 0
View Raw Ebuild
# 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p gui-apps/xremap | euse -E <flag> -p gui-apps/xremap | euse -D <flag> -p gui-apps/xremap

Inherited Eclasses

Dependencies

DEPEND

udev? ( virtual/libudev )

RDEPEND

udev? ( virtual/libudev )

Manifest for 0.15.12

Type File Size Source URLs
DIST xremap-0.15.12-crates.tar.xz 12977460 bytes https://github.com/yamader/gentoo-deps/releases/download/xremap-0.15.12/xremap-0.15.12-crates.tar.xz
DIST xremap-0.15.12.tar.gz 157984 bytes https://github.com/xremap/xremap/archive/v0.15.12/xremap-0.15.12.tar.gz