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