1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.2
32 bytecheck_derive@0.6.12
41 concurrent-queue@2.4.0
45 core-foundation-sys@0.8.6
47 crossbeam-utils@0.8.19
56 derive_is_enum_variant@0.1.1
57 documented-derive@0.3.0
63 event-listener-strategy@0.5.0
68 foreign-types-shared@0.1.1
72 from_variants_impl@1.0.2
74 futures-channel@0.3.30
76 futures-executor@0.3.30
130 libmimalloc-sys@0.1.35
143 minimal-lexical@0.2.1
153 objc-foundation@0.1.1
160 openssl-src@300.2.3+3.2.1
168 parking_lot_core@0.9.9
169 percent-encoding@2.3.1
174 pin-project-internal@1.1.5
175 pin-project-lite@0.2.13
181 proc-macro-crate@3.1.0
182 proc-macro-error-attr@1.0.4
183 proc-macro-error@1.0.4
187 ptr_meta_derive@0.1.4
196 regex-automata@0.1.10
206 rust_decimal_macros@1.34.2
207 rustc-demangle@0.1.23
216 security-framework-sys@2.9.1
217 security-framework@2.9.2
224 serde_urlencoded@0.7.1
226 signal-hook-registry@1.4.1
243 system-configuration-sys@0.5.0
244 system-configuration@0.5.1
247 target-lexicon@0.12.14
251 thiserror-impl@1.0.57
260 tokio-native-tls@0.3.1
270 tracing-attributes@0.1.27
272 tracing-journald@0.3.0
274 tracing-subscriber@0.3.18
279 unicode-normalization@0.1.23
280 unicode-segmentation@1.11.0
288 version-compare@0.1.1
291 wasi@0.11.0+wasi-snapshot-preview1
292 wasm-bindgen-backend@0.2.91
293 wasm-bindgen-futures@0.4.41
294 wasm-bindgen-macro-support@0.2.91
295 wasm-bindgen-macro@0.2.91
296 wasm-bindgen-shared@0.2.91
299 winapi-i686-pc-windows-gnu@0.4.0
300 winapi-x86_64-pc-windows-gnu@0.4.0
304 windows-targets@0.48.5
305 windows-targets@0.52.0
306 windows_aarch64_gnullvm@0.48.5
307 windows_aarch64_gnullvm@0.52.0
308 windows_aarch64_msvc@0.48.5
309 windows_aarch64_msvc@0.52.0
310 windows_i686_gnu@0.48.5
311 windows_i686_gnu@0.52.0
312 windows_i686_msvc@0.48.5
313 windows_i686_msvc@0.52.0
314 windows_x86_64_gnu@0.48.5
315 windows_x86_64_gnu@0.52.0
316 windows_x86_64_gnullvm@0.48.5
317 windows_x86_64_gnullvm@0.52.0
318 windows_x86_64_msvc@0.48.5
319 windows_x86_64_msvc@0.52.0
328 declare -A GIT_CRATES
=(
329 [ncmapi
]='https://github.com/waylyrics/ncmapi-rs;590f280458e1826df0af0f0f624c2222448a7dee;ncmapi-rs-%commit%'
330 [qqmusic-rs
]='https://github.com/waylyrics/qqmusic-rs;22e66ba62e63d97c6dffb45400655404e6f06b93;qqmusic-rs-%commit%'
334 inherit cargo desktop gnome2-utils plocale xdg
336 DESCRIPTION
="Simple On Screen lyrics Display for linux/unix"
338 https://waylyrics.github.io/waylyrics/waylyrics
339 https://github.com/waylyrics/waylyrics
342 if [[ "${PV}" == *9999* ]]; then
344 EGIT_REPO_URI
="https://github.com/waylyrics/waylyrics.git"
347 https://github.com/waylyrics/waylyrics/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
354 # Dependent crate licenses
356 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ MIT
357 Unicode-DFS-2016 Unlicense
373 >=virtual/rust-1.73:*
377 export WAYLYRICS_THEME_PRESETS_DIR
="/usr/share/${PN}/themes"
378 cargo_src_compile
--all-targets --all-features
384 doicon
-s scalable
"${S}/res/icons/hicolor/scalable/apps/io.poly000.waylyrics.svg"
385 domenu
"${S}/io.poly000.waylyrics.desktop"
387 insinto
"/usr/share/glib-2.0/schemas"
388 doins
"io.poly000.waylyrics.gschema.xml"
390 insinto
"/usr/share/${PN}"
393 cd "${S}/locales" || die
395 if [[ -f ${1}/LC_MESSAGES
/waylyrics.po
]]; then
396 local file=${1}/LC_MESSAGES
/waylyrics.po
397 msgfmt
"${file}" -o "${file%.po}.mo" || die
398 insinto
/usr
/share
/locale
/${1}/LC_MESSAGES
399 doins
"${file%.po}.mo"
402 plocale_for_each_locale install_locale
406 gnome2_schemas_update
411 gnome2_schemas_update