# Copyright 2024 Misha Zavertkin # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cargo DESCRIPTION="Per window keyboard layout (language) for Hyprland wayland compositor" # Double check the homepage as the cargo_metadata crate # does not provide this value so instead repository is used HOMEPAGE="https://github.com/coffebar/hyprland-per-window-layout" if [[ ${PV} = 9999* ]]; then EGIT_REPO_URI="https://github.com/coffebar/hyprland-per-window-layout.git/" inherit git-r3 else SRC_URI="https://github.com/coffebar/hyprland-per-window-layout/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS}" KEYWORDS="~amd64" fi # License set may be more restrictive as OR is not respected # use cargo-license for a more accurate license picture LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions Boost-1.0 MIT MPL-2.0 Unicode-DFS-2016 Unlicense" SLOT="0" RDEPEND=" gui-wm/hyprland " # rust does not use *FLAGS from make.conf, silence portage warning # update with proper path to binaries this crate installs, omit leading / QA_FLAGS_IGNORED="usr/bin/${PN}" src_unpack() { if [[ ${PV} = 9999* ]]; then git-r3_src_unpack cargo_live_src_unpack else cargo_src_unpack fi }