net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / media-plugins / waylyrics / waylyrics-0.3.20.ebuild
blob214034da367ad11e6874fd1242f38028787f6ae0
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.4
6 EAPI=8
8 CRATES="
9 addr2line@0.24.2
10 adler2@2.0.0
11 aes@0.8.4
12 ahash@0.7.8
13 ahash@0.8.11
14 aho-corasick@1.1.3
15 ansi_term@0.12.1
16 anyhow@1.0.93
17 arrayvec@0.7.6
18 ashpd@0.10.2
19 ashpd@0.9.2
20 assert_float_eq@1.1.3
21 async-broadcast@0.7.1
22 async-channel@2.3.1
23 async-executor@1.13.1
24 async-fs@2.1.2
25 async-io@2.4.0
26 async-lock@3.4.0
27 async-net@2.0.0
28 async-process@2.3.0
29 async-recursion@1.1.1
30 async-signal@0.2.10
31 async-task@4.7.1
32 async-trait@0.1.83
33 atk-sys@0.18.0
34 atk@0.18.0
35 atomic-waker@1.1.2
36 atty@0.2.14
37 autocfg@1.4.0
38 backtrace@0.3.74
39 base64@0.22.1
40 base64ct@1.6.0
41 bitflags@1.3.2
42 bitflags@2.6.0
43 bitvec@1.0.1
44 block-buffer@0.10.4
45 block-padding@0.3.3
46 block2@0.5.1
47 block@0.1.6
48 blocking@1.6.1
49 borsh-derive@1.5.2
50 borsh@1.5.2
51 bumpalo@3.16.0
52 bytecheck@0.6.12
53 bytecheck_derive@0.6.12
54 byteorder@1.5.0
55 bytes@1.8.0
56 cairo-rs@0.18.5
57 cairo-rs@0.20.5
58 cairo-sys-rs@0.18.2
59 cairo-sys-rs@0.20.0
60 cbc@0.1.2
61 cc@1.1.37
62 cfg-expr@0.15.8
63 cfg-expr@0.17.0
64 cfg-if@1.0.0
65 cfg_aliases@0.2.1
66 cipher@0.4.4
67 clap@2.34.0
68 concurrent-queue@2.5.0
69 const-oid@0.9.6
70 convert_case@0.6.0
71 cookie@0.18.1
72 cookie_store@0.21.1
73 core-foundation-sys@0.8.7
74 core-foundation@0.10.0
75 core-foundation@0.9.4
76 core-graphics-types@0.2.0
77 core-graphics@0.24.0
78 cpufeatures@0.2.14
79 crc32fast@1.4.2
80 crossbeam-channel@0.5.13
81 crossbeam-utils@0.8.20
82 crypto-common@0.1.6
83 darling@0.14.4
84 darling_core@0.14.4
85 darling_macro@0.14.4
86 dbus-codegen@0.9.1
87 dbus-tree@0.9.2
88 dbus@0.9.7
89 der@0.7.9
90 deranged@0.3.11
91 derive_is_enum_variant@0.1.1
92 digest@0.10.7
93 directories@5.0.1
94 dirs-sys@0.4.1
95 dirs@5.0.1
96 dispatch@0.2.0
97 displaydoc@0.2.5
98 dlib@0.5.2
99 document-features@0.2.10
100 documented-macros@0.9.1
101 documented@0.9.1
102 downcast-rs@1.2.1
103 dpi@0.1.1
104 ecb@0.1.2
105 either@1.13.0
106 embed-resource@2.5.1
107 encoding_rs@0.8.35
108 endi@1.1.0
109 enum-kinds@0.5.1
110 enumflags2@0.7.10
111 enumflags2_derive@0.7.10
112 equivalent@1.0.1
113 errno@0.3.9
114 event-listener-strategy@0.5.2
115 event-listener@5.3.1
116 fastrand@2.2.0
117 fdeflate@0.3.6
118 field-offset@0.3.6
119 flate2@1.0.34
120 fnv@1.0.7
121 foreign-types-macros@0.2.3
122 foreign-types-shared@0.1.1
123 foreign-types-shared@0.3.1
124 foreign-types@0.3.2
125 foreign-types@0.5.0
126 form_urlencoded@1.2.1
127 from_variants@1.0.2
128 from_variants_impl@1.0.2
129 funty@2.0.0
130 futures-channel@0.3.31
131 futures-core@0.3.31
132 futures-executor@0.3.31
133 futures-io@0.3.31
134 futures-lite@2.5.0
135 futures-macro@0.3.31
136 futures-sink@0.3.31
137 futures-task@0.3.31
138 futures-util@0.3.31
139 futures@0.3.31
140 gdk-pixbuf-sys@0.18.0
141 gdk-pixbuf-sys@0.20.4
142 gdk-pixbuf@0.18.5
143 gdk-pixbuf@0.20.4
144 gdk-sys@0.18.0
145 gdk4-sys@0.9.3
146 gdk4-win32-sys@0.9.3
147 gdk4-win32@0.9.3
148 gdk4@0.9.3
149 gdk@0.18.0
150 generic-array@0.14.7
151 getrandom@0.2.15
152 gettext-rs@0.7.2
153 gettext-sys@0.22.5
154 gimli@0.31.1
155 gio-sys@0.18.1
156 gio-sys@0.20.5
157 gio@0.18.4
158 gio@0.20.5
159 glib-macros@0.18.5
160 glib-macros@0.20.5
161 glib-sys@0.18.1
162 glib-sys@0.20.5
163 glib@0.18.5
164 glib@0.20.5
165 gobject-sys@0.18.0
166 gobject-sys@0.20.4
167 graphene-rs@0.20.4
168 graphene-sys@0.20.4
169 gsk4-sys@0.9.3
170 gsk4@0.9.3
171 gtk-sys@0.18.0
172 gtk3-macros@0.18.0
173 gtk4-macros@0.9.3
174 gtk4-sys@0.9.4
175 gtk4@0.9.4
176 gtk@0.18.1
177 h2@0.4.6
178 hashbrown@0.12.3
179 hashbrown@0.15.1
180 heck@0.3.3
181 heck@0.4.1
182 heck@0.5.0
183 hermit-abi@0.1.19
184 hermit-abi@0.3.9
185 hermit-abi@0.4.0
186 hex-simd@0.8.0
187 hex@0.4.3
188 http-body-util@0.1.2
189 http-body@1.0.1
190 http@1.1.0
191 httparse@1.9.5
192 hyper-rustls@0.27.3
193 hyper-tls@0.6.0
194 hyper-util@0.1.10
195 hyper@1.5.0
196 icu_collections@1.5.0
197 icu_locid@1.5.0
198 icu_locid_transform@1.5.0
199 icu_locid_transform_data@1.5.0
200 icu_normalizer@1.5.0
201 icu_normalizer_data@1.5.0
202 icu_properties@1.5.1
203 icu_properties_data@1.5.0
204 icu_provider@1.5.0
205 icu_provider_macros@1.5.0
206 ident_case@1.0.1
207 idna@0.3.0
208 idna@1.0.3
209 idna_adapter@1.2.0
210 indexmap@2.6.0
211 inout@0.1.3
212 ipnet@2.10.1
213 itertools@0.13.0
214 itoa@1.0.11
215 js-sys@0.3.72
216 keyboard-types@0.7.0
217 ksni@0.2.2
218 lazy_static@1.5.0
219 libappindicator-sys@0.9.0
220 libappindicator@0.9.0
221 libc@0.2.162
222 libdbus-sys@0.2.5
223 libloading@0.7.4
224 libloading@0.8.5
225 libm@0.2.11
226 libmimalloc-sys@0.1.39
227 libredox@0.1.3
228 libxdo-sys@0.11.0
229 libxdo@0.6.0
230 linux-raw-sys@0.4.14
231 litemap@0.7.3
232 litrs@0.4.1
233 locale_config@0.3.0
234 lock_api@0.4.12
235 log@0.4.22
236 lrc-nom@0.3.0
237 lrclib-api-rs@0.3.1
238 malloc_buf@0.0.6
239 matchers@0.1.0
240 md5@0.7.0
241 memchr@2.7.4
242 memoffset@0.9.1
243 mimalloc@0.1.43
244 mime@0.3.17
245 minimal-lexical@0.2.1
246 miniz_oxide@0.8.0
247 mio@1.0.2
248 mpris@2.0.1
249 muda@0.15.3
250 native-tls@0.2.12
251 ncmapi2@0.1.13
252 nix@0.29.0
253 nom@7.1.3
254 nu-ansi-term@0.46.0
255 num-bigint-dig@0.8.4
256 num-conv@0.1.0
257 num-integer@0.1.46
258 num-iter@0.1.45
259 num-traits@0.2.19
260 objc-foundation@0.1.1
261 objc-sys@0.3.5
262 objc2-app-kit@0.2.2
263 objc2-core-data@0.2.2
264 objc2-core-image@0.2.2
265 objc2-encode@4.0.3
266 objc2-foundation@0.2.2
267 objc2-metal@0.2.2
268 objc2-quartz-core@0.2.2
269 objc2@0.5.2
270 objc@0.2.7
271 objc_id@0.1.1
272 object@0.36.5
273 once_cell@1.20.2
274 opencc-rust@1.1.19
275 openssl-macros@0.1.1
276 openssl-probe@0.1.5
277 openssl-sys@0.9.104
278 openssl@0.10.68
279 optfield@0.3.0
280 option-ext@0.2.0
281 ordered-stream@0.2.0
282 outref@0.5.1
283 overload@0.1.1
284 pango-sys@0.18.0
285 pango-sys@0.20.4
286 pango@0.18.3
287 pango@0.20.4
288 parking@2.2.1
289 parking_lot@0.12.3
290 parking_lot_core@0.9.10
291 pem-rfc7468@0.7.0
292 percent-encoding@2.3.1
293 phf@0.11.2
294 phf_generator@0.11.2
295 phf_macros@0.11.2
296 phf_shared@0.11.2
297 pin-project-lite@0.2.15
298 pin-utils@0.1.0
299 piper@0.2.4
300 pkcs1@0.7.5
301 pkcs8@0.10.2
302 pkg-config@0.3.31
303 png@0.17.14
304 polling@3.7.4
305 pollster@0.3.0
306 powerfmt@0.2.0
307 ppv-lite86@0.2.20
308 proc-macro-crate@1.3.1
309 proc-macro-crate@2.0.0
310 proc-macro-crate@3.2.0
311 proc-macro-error-attr@1.0.4
312 proc-macro-error@1.0.4
313 proc-macro2@1.0.89
314 psl-types@2.0.11
315 ptr_meta@0.1.4
316 ptr_meta_derive@0.1.4
317 publicsuffix@2.2.3
318 qqmusic-rs@0.2.1
319 quick-xml@0.36.2
320 quote@0.3.15
321 quote@1.0.37
322 radium@0.7.0
323 rand@0.8.5
324 rand_chacha@0.3.1
325 rand_core@0.6.4
326 raw-window-handle@0.6.2
327 redox_syscall@0.5.7
328 redox_users@0.4.6
329 regex-automata@0.1.10
330 regex-automata@0.4.8
331 regex-syntax@0.6.29
332 regex-syntax@0.8.5
333 regex@1.11.1
334 rend@0.4.2
335 reqwest@0.12.9
336 rfd@0.15.1
337 ring@0.17.8
338 rkyv@0.7.45
339 rkyv_derive@0.7.45
340 rsa@0.9.6
341 rust_decimal@1.36.0
342 rust_decimal_macros@1.36.0
343 rustc-demangle@0.1.24
344 rustc_version@0.4.1
345 rustix@0.38.39
346 rustls-pemfile@2.2.0
347 rustls-pki-types@1.10.0
348 rustls-webpki@0.102.8
349 rustls@0.23.18
350 rustversion@1.0.18
351 ryu@1.0.18
352 schannel@0.1.26
353 scoped-tls@1.0.1
354 scopeguard@1.2.0
355 seahash@4.1.0
356 security-framework-sys@2.12.1
357 security-framework@2.11.1
358 semver@1.0.23
359 serde@1.0.215
360 serde_derive@1.0.215
361 serde_json@1.0.133
362 serde_repr@0.1.19
363 serde_spanned@0.6.8
364 serde_urlencoded@0.7.1
365 sha1@0.10.6
366 sharded-slab@0.1.7
367 shlex@1.3.0
368 signal-hook-registry@1.4.2
369 signature@2.2.0
370 simd-adler32@0.3.7
371 simdutf8@0.1.5
372 siphasher@0.3.11
373 slab@0.4.9
374 smallvec@1.13.2
375 socket2@0.5.7
376 sorensen@0.2.0
377 spin@0.9.8
378 spki@0.7.3
379 stable_deref_trait@1.2.0
380 static_assertions@1.1.0
381 strsim@0.10.0
382 strsim@0.8.0
383 strum@0.26.3
384 strum_macros@0.26.4
385 subtle@2.6.1
386 syn@0.11.11
387 syn@1.0.109
388 syn@2.0.87
389 sync_wrapper@1.0.1
390 synom@0.11.3
391 synstructure@0.13.1
392 sys-locale@0.3.2
393 system-configuration-sys@0.6.0
394 system-configuration@0.6.1
395 system-deps@6.2.2
396 system-deps@7.0.3
397 tap@1.0.1
398 target-lexicon@0.12.16
399 temp-dir@0.1.14
400 tempfile@3.14.0
401 textwrap@0.11.0
402 thiserror-impl@1.0.69
403 thiserror-impl@2.0.4
404 thiserror@1.0.69
405 thiserror@2.0.4
406 thread_local@1.1.8
407 time-core@0.1.2
408 time-macros@0.2.18
409 time@0.3.36
410 tinystr@0.7.6
411 tinyvec@1.8.0
412 tinyvec_macros@0.1.1
413 tokio-macros@2.4.0
414 tokio-native-tls@0.3.1
415 tokio-rustls@0.26.0
416 tokio-util@0.7.12
417 tokio@1.42.0
418 toml@0.8.19
419 toml_datetime@0.6.8
420 toml_edit@0.19.15
421 toml_edit@0.20.7
422 toml_edit@0.22.22
423 tower-service@0.3.3
424 tracing-attributes@0.1.28
425 tracing-core@0.1.33
426 tracing-journald@0.3.1
427 tracing-log@0.2.0
428 tracing-panic@0.1.2
429 tracing-subscriber@0.3.19
430 tracing@0.1.41
431 tray-icon@0.19.2
432 try-lock@0.2.5
433 typenum@1.17.0
434 uds_windows@1.1.0
435 unicode-bidi@0.3.17
436 unicode-ident@1.0.13
437 unicode-normalization@0.1.24
438 unicode-segmentation@1.12.0
439 unicode-width@0.1.14
440 unicode-xid@0.0.4
441 untrusted@0.9.0
442 url@2.5.4
443 urlencoding@2.1.3
444 utf16_iter@1.0.5
445 utf8_iter@1.0.4
446 uuid@1.11.0
447 valuable@0.1.0
448 vcpkg@0.2.15
449 vec_map@0.8.2
450 version-compare@0.2.0
451 version_check@0.9.5
452 vsimd@0.8.0
453 vswhom-sys@0.1.2
454 vswhom@0.1.0
455 want@0.3.1
456 wasi@0.11.0+wasi-snapshot-preview1
457 wasm-bindgen-backend@0.2.95
458 wasm-bindgen-futures@0.4.45
459 wasm-bindgen-macro-support@0.2.95
460 wasm-bindgen-macro@0.2.95
461 wasm-bindgen-shared@0.2.95
462 wasm-bindgen@0.2.95
463 wayland-backend@0.3.7
464 wayland-client@0.31.7
465 wayland-protocols@0.32.5
466 wayland-scanner@0.31.5
467 wayland-sys@0.31.5
468 web-sys@0.3.72
469 winapi-i686-pc-windows-gnu@0.4.0
470 winapi-x86_64-pc-windows-gnu@0.4.0
471 winapi@0.3.9
472 windows-core@0.58.0
473 windows-implement@0.58.0
474 windows-interface@0.58.0
475 windows-registry@0.2.0
476 windows-result@0.2.0
477 windows-strings@0.1.0
478 windows-sys@0.48.0
479 windows-sys@0.52.0
480 windows-sys@0.59.0
481 windows-targets@0.48.5
482 windows-targets@0.52.6
483 windows@0.58.0
484 windows_aarch64_gnullvm@0.48.5
485 windows_aarch64_gnullvm@0.52.6
486 windows_aarch64_msvc@0.48.5
487 windows_aarch64_msvc@0.52.6
488 windows_exe_info@0.4.2
489 windows_i686_gnu@0.48.5
490 windows_i686_gnu@0.52.6
491 windows_i686_gnullvm@0.52.6
492 windows_i686_msvc@0.48.5
493 windows_i686_msvc@0.52.6
494 windows_x86_64_gnu@0.48.5
495 windows_x86_64_gnu@0.52.6
496 windows_x86_64_gnullvm@0.48.5
497 windows_x86_64_gnullvm@0.52.6
498 windows_x86_64_msvc@0.48.5
499 windows_x86_64_msvc@0.52.6
500 winnow@0.5.40
501 winnow@0.6.20
502 winreg@0.52.0
503 write16@1.0.0
504 writeable@0.5.5
505 wyz@0.5.1
506 x11@2.21.0
507 xdg-home@1.3.0
508 xml-rs@0.8.23
509 yoke-derive@0.7.4
510 yoke@0.7.4
511 zbus@4.4.0
512 zbus@5.1.1
513 zbus_macros@4.4.0
514 zbus_macros@5.1.1
515 zbus_names@3.0.0
516 zbus_names@4.1.0
517 zerocopy-derive@0.7.35
518 zerocopy@0.7.35
519 zerofrom-derive@0.1.4
520 zerofrom@0.1.4
521 zeroize@1.8.1
522 zerovec-derive@0.10.3
523 zerovec@0.10.4
524 zvariant@4.2.0
525 zvariant@5.1.0
526 zvariant_derive@4.2.0
527 zvariant_derive@5.1.0
528 zvariant_utils@2.1.0
529 zvariant_utils@3.0.2
532 declare -A GIT_CRATES=(
533 [dark-light]='https://github.com/frewsxcv/rust-dark-light;3eb3e93dd0fa30733c3e93082dd9517fb580ae95;rust-dark-light-%commit%'
536 PLOCALES="en_US it_IT zh_CN"
537 PLOCALE_BACKUP="en_US"
538 RUST_MIN_VER="1.73"
539 inherit cargo desktop gnome2-utils plocale xdg
541 DESCRIPTION="Simple On Screen lyrics Display for linux/unix"
542 HOMEPAGE="
543 https://waylyrics.github.io/waylyrics/waylyrics
544 https://github.com/waylyrics/waylyrics
547 if [[ "${PV}" == *9999* ]]; then
548 inherit git-r3
549 EGIT_REPO_URI="https://github.com/waylyrics/waylyrics.git"
550 else
551 SRC_URI="
552 https://github.com/waylyrics/waylyrics/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
553 ${CARGO_CRATE_URIS}
555 KEYWORDS="~amd64 ~loong"
558 LICENSE="MIT CC-BY-4.0"
559 # Dependent crate licenses
560 LICENSE+="
561 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ ISC MIT
562 MPL-2.0 Unicode-3.0 Unicode-DFS-2016 Unlicense
564 SLOT="0"
566 DEPEND="
567 dev-libs/glib:2
568 app-i18n/opencc
569 dev-libs/openssl:=
570 gnome-base/dconf
571 gui-libs/gtk:4
572 sys-apps/dbus
573 sys-devel/gettext
574 x11-libs/cairo
576 RDEPEND="
577 ${DEPEND}
578 sys-apps/xdg-desktop-portal
581 src_compile() {
582 export WAYLYRICS_THEME_PRESETS_DIR="/usr/share/${PN}/themes"
583 cargo_src_compile --all-targets --all-features
586 src_install() {
587 cargo_src_install
589 doicon -s scalable "${S}/res/icons/hicolor/scalable/apps/io.github.waylyrics.Waylyrics.svg"
590 domenu "${S}/metainfo/io.github.waylyrics.Waylyrics.desktop"
592 insinto "/usr/share/glib-2.0/schemas"
593 doins "${S}/metainfo/io.github.waylyrics.Waylyrics.gschema.xml"
595 insinto "/usr/share/metainfo"
596 doins "${S}/metainfo/io.github.waylyrics.Waylyrics.metainfo.xml"
598 insinto "/usr/share/${PN}"
599 doins -r themes
601 cd "${S}/locales" || die
602 install_locale() {
603 if [[ -f ${1}/LC_MESSAGES/waylyrics.po ]]; then
604 local file=${1}/LC_MESSAGES/waylyrics.po
605 msgfmt "${file}" -o "${file%.po}.mo" || die
606 insinto /usr/share/locale/${1}/LC_MESSAGES
607 doins "${file%.po}.mo"
610 plocale_for_each_locale install_locale
613 pkg_postinst() {
614 gnome2_schemas_update
615 xdg_pkg_postinst
618 pkg_postrm() {
619 gnome2_schemas_update
620 xdg_pkg_postrm