|
| 1 | +# Copyright 2026 Gentoo Authors |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | + |
| 4 | +# Autogenerated by pycargoebuild 0.16.0 |
| 5 | + |
| 6 | +EAPI=8 |
| 7 | + |
| 8 | +CRATES=" |
| 9 | + anstream@1.0.0 |
| 10 | + anstyle-parse@1.0.0 |
| 11 | + anstyle-query@1.1.5 |
| 12 | + anstyle-wincon@3.0.11 |
| 13 | + anstyle@1.0.14 |
| 14 | + anyhow@1.0.102 |
| 15 | + async-broadcast@0.7.2 |
| 16 | + async-channel@2.5.0 |
| 17 | + async-executor@1.14.0 |
| 18 | + async-io@2.6.0 |
| 19 | + async-lock@3.4.2 |
| 20 | + async-process@2.5.0 |
| 21 | + async-recursion@1.1.1 |
| 22 | + async-signal@0.2.14 |
| 23 | + async-task@4.7.1 |
| 24 | + async-trait@0.1.89 |
| 25 | + atomic-waker@1.1.2 |
| 26 | + autocfg@1.5.1 |
| 27 | + bitflags@2.11.1 |
| 28 | + blocking@1.6.2 |
| 29 | + bumpalo@3.20.3 |
| 30 | + cfg-if@1.0.4 |
| 31 | + clap@4.6.1 |
| 32 | + clap_builder@4.6.0 |
| 33 | + clap_derive@4.6.1 |
| 34 | + clap_lex@1.1.0 |
| 35 | + colorchoice@1.0.5 |
| 36 | + concurrent-queue@2.5.0 |
| 37 | + crossbeam-utils@0.8.21 |
| 38 | + endi@1.1.1 |
| 39 | + enumflags2@0.7.12 |
| 40 | + enumflags2_derive@0.7.12 |
| 41 | + equivalent@1.0.2 |
| 42 | + errno@0.3.14 |
| 43 | + event-listener-strategy@0.5.4 |
| 44 | + event-listener@5.4.1 |
| 45 | + fastrand@2.4.1 |
| 46 | + foldhash@0.1.5 |
| 47 | + futures-core@0.3.32 |
| 48 | + futures-io@0.3.32 |
| 49 | + futures-lite@2.6.1 |
| 50 | + futures-task@0.3.32 |
| 51 | + futures-util@0.3.32 |
| 52 | + getrandom@0.4.2 |
| 53 | + hashbrown@0.15.5 |
| 54 | + hashbrown@0.17.1 |
| 55 | + heck@0.5.0 |
| 56 | + hermit-abi@0.3.9 |
| 57 | + hermit-abi@0.5.2 |
| 58 | + hex@0.4.3 |
| 59 | + id-arena@2.3.0 |
| 60 | + indexmap@2.14.0 |
| 61 | + io-lifetimes@1.0.11 |
| 62 | + is_terminal_polyfill@1.70.2 |
| 63 | + itoa@1.0.18 |
| 64 | + js-sys@0.3.99 |
| 65 | + leb128fmt@0.1.0 |
| 66 | + libc@0.2.186 |
| 67 | + libudev-sys@0.1.4 |
| 68 | + linux-raw-sys@0.12.1 |
| 69 | + log@0.4.30 |
| 70 | + memchr@2.8.0 |
| 71 | + memoffset@0.9.1 |
| 72 | + once_cell@1.21.4 |
| 73 | + once_cell_polyfill@1.70.2 |
| 74 | + ordered-stream@0.2.0 |
| 75 | + parking@2.2.1 |
| 76 | + pin-project-lite@0.2.17 |
| 77 | + piper@0.2.5 |
| 78 | + pkg-config@0.3.33 |
| 79 | + polling@3.11.0 |
| 80 | + prettyplease@0.2.37 |
| 81 | + proc-macro-crate@3.5.0 |
| 82 | + proc-macro2@1.0.106 |
| 83 | + quote@1.0.45 |
| 84 | + r-efi@6.0.0 |
| 85 | + rustix@1.1.4 |
| 86 | + rustversion@1.0.22 |
| 87 | + semver@1.0.28 |
| 88 | + serde@1.0.228 |
| 89 | + serde_core@1.0.228 |
| 90 | + serde_derive@1.0.228 |
| 91 | + serde_json@1.0.150 |
| 92 | + serde_repr@0.1.20 |
| 93 | + signal-hook-registry@1.4.8 |
| 94 | + slab@0.4.12 |
| 95 | + strsim@0.11.1 |
| 96 | + syn@2.0.117 |
| 97 | + tempfile@3.27.0 |
| 98 | + toml_datetime@1.1.1+spec-1.1.0 |
| 99 | + toml_edit@0.25.11+spec-1.1.0 |
| 100 | + toml_parser@1.1.2+spec-1.1.0 |
| 101 | + tracing-attributes@0.1.31 |
| 102 | + tracing-core@0.1.36 |
| 103 | + tracing@0.1.44 |
| 104 | + udev@0.9.3 |
| 105 | + uds_windows@1.2.1 |
| 106 | + unicode-ident@1.0.24 |
| 107 | + unicode-xid@0.2.6 |
| 108 | + utf8parse@0.2.2 |
| 109 | + uuid@1.23.1 |
| 110 | + wasip2@1.0.3+wasi-0.2.9 |
| 111 | + wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06 |
| 112 | + wasm-bindgen-macro-support@0.2.122 |
| 113 | + wasm-bindgen-macro@0.2.122 |
| 114 | + wasm-bindgen-shared@0.2.122 |
| 115 | + wasm-bindgen@0.2.122 |
| 116 | + wasm-encoder@0.244.0 |
| 117 | + wasm-metadata@0.244.0 |
| 118 | + wasmparser@0.244.0 |
| 119 | + windows-link@0.2.1 |
| 120 | + windows-sys@0.48.0 |
| 121 | + windows-sys@0.61.2 |
| 122 | + windows-targets@0.48.5 |
| 123 | + windows_aarch64_gnullvm@0.48.5 |
| 124 | + windows_aarch64_msvc@0.48.5 |
| 125 | + windows_i686_gnu@0.48.5 |
| 126 | + windows_i686_msvc@0.48.5 |
| 127 | + windows_x86_64_gnu@0.48.5 |
| 128 | + windows_x86_64_gnullvm@0.48.5 |
| 129 | + windows_x86_64_msvc@0.48.5 |
| 130 | + winnow@1.0.3 |
| 131 | + wit-bindgen-core@0.51.0 |
| 132 | + wit-bindgen-rust-macro@0.51.0 |
| 133 | + wit-bindgen-rust@0.51.0 |
| 134 | + wit-bindgen@0.51.0 |
| 135 | + wit-bindgen@0.57.1 |
| 136 | + wit-component@0.244.0 |
| 137 | + wit-parser@0.244.0 |
| 138 | + zbus@5.15.0 |
| 139 | + zbus_macros@5.15.0 |
| 140 | + zbus_names@4.3.2 |
| 141 | + zmij@1.0.21 |
| 142 | + zvariant@5.11.0 |
| 143 | + zvariant_derive@5.11.0 |
| 144 | + zvariant_utils@3.3.1 |
| 145 | +" |
| 146 | + |
| 147 | +RUST_MIN_VER="1.87.0" |
| 148 | +inherit cargo systemd |
| 149 | + |
| 150 | +DESCRIPTION="Tells you what each USB cable / device on Linux can actually do. Rust port of WhatCable; previously published as \`whatcable\`." |
| 151 | +HOMEPAGE="https://github.com/abrauchli/usbeehive" |
| 152 | +SRC_URI=" |
| 153 | + https://github.com/abrauchli/usbeehive/archive/refs/tags/v${PV}.tar.gz |
| 154 | + ${CARGO_CRATE_URIS} |
| 155 | +" |
| 156 | + |
| 157 | +LICENSE="MIT" |
| 158 | +# Dependent crate licenses |
| 159 | +LICENSE+=" MIT Unicode-3.0 ZLIB" |
| 160 | +SLOT="0" |
| 161 | +KEYWORDS="~amd64" |
| 162 | +IUSE="dbus" |
| 163 | + |
| 164 | +RDEPEND=" |
| 165 | + virtual/libudev:= |
| 166 | + dbus? ( sys-apps/dbus ) |
| 167 | +" |
| 168 | +DEPEND="${RDEPEND}" |
| 169 | +BDEPEND=" |
| 170 | + virtual/pkgconfig |
| 171 | +" |
| 172 | +QA_FLAGS_IGNORED=" |
| 173 | + usr/bin/usbeehive |
| 174 | + usr/bin/usbeehived |
| 175 | +" |
| 176 | + |
| 177 | +src_prepare() { |
| 178 | + eapply_user |
| 179 | + sed -i "s#%h/.cargo#/usr#" systemd/usbeehived.service || die |
| 180 | +} |
| 181 | + |
| 182 | +src_configure() { |
| 183 | + local myfeatures=( |
| 184 | + $(usev dbus) |
| 185 | + ) |
| 186 | + cargo_src_configure |
| 187 | +} |
| 188 | + |
| 189 | +src_install() { |
| 190 | + cargo_src_install |
| 191 | + |
| 192 | + systemd_dounit systemd/usbeehived.service |
| 193 | + newinitd "${FILESDIR}/usbeehived.initd" usbeehived |
| 194 | +} |
0 commit comments