# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CRATES=" anstream@1.0.0 anstyle-parse@1.0.0 anstyle-query@1.1.5 anstyle-wincon@3.0.11 anstyle@1.0.14 anyhow@1.0.104 bitflags@2.13.2 cfg-if@1.0.5 cfg_aliases@0.2.2 clap@4.6.7 clap_builder@4.6.7 clap_complete@4.6.11 clap_lex@1.1.1 colorchoice@1.0.5 futures-channel@0.3.34 futures-core@0.3.34 futures-executor@0.3.34 futures-io@0.3.34 futures-macro@0.3.34 futures-sink@0.3.34 futures-task@0.3.34 futures-util@0.3.34 futures@0.3.34 hermit-abi@0.3.9 indoc@2.0.8 io-lifetimes@1.0.11 is_terminal_polyfill@1.70.2 itoa@1.0.18 libc@0.2.191 libudev-sys@0.1.4 memchr@2.8.3 nix@0.31.3 once_cell@1.21.4 once_cell_polyfill@1.70.2 pin-project-lite@0.2.17 pkg-config@0.3.34 proc-macro2@1.0.107 quote@1.0.47 rustversion@1.0.23 serde@1.0.229 serde_core@1.0.229 serde_derive@1.0.229 serde_json@1.0.154 slab@0.4.12 smallvec@1.16.3 strsim@0.11.1 syn@2.0.119 syn@3.0.9 thiserror-impl@2.0.21 thiserror@2.0.21 tracing-attributes@0.1.31 tracing-core@0.1.36 tracing@0.1.44 udev@0.9.3 unicode-ident@1.0.27 utf8parse@0.2.2 windows-link@0.2.1 windows-sys@0.48.0 windows-sys@0.61.2 windows-targets@0.48.5 windows_aarch64_gnullvm@0.48.5 windows_aarch64_msvc@0.48.5 windows_i686_gnu@0.48.5 windows_i686_msvc@0.48.5 windows_x86_64_gnu@0.48.5 windows_x86_64_gnullvm@0.48.5 windows_x86_64_msvc@0.48.5 zmij@1.0.23 " declare -A GIT_CRATES=( [sdtx]='https://github.com/linux-surface/libsurfacedtx;742d54e8d3c400e25e8fc7363bf6482b9ca7a7d2;libsurfacedtx-%commit%/sdtx' ) inherit cargo DESCRIPTION="Control various aspects of Microsoft Surface devices from the CLI" HOMEPAGE="https://github.com/linux-surface/surface-control" SRC_URI=" https://github.com/linux-surface/surface-control/archive/refs/tags/v${PV}-1.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " S="${WORKDIR}/${P}-1" LICENSE="MIT" # Dependent crate licenses LICENSE+=" MIT Unicode-3.0" SLOT="0" KEYWORDS="~amd64" RDEPEND="virtual/udev" DEPEND="${RDEPEND}" QA_FLAGS_IGNORED="usr/bin/surface" src_install() { cargo_src_install dodoc README.md }