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