app-editors/zed: add 0.140.5, drop 0.139.3
[gentoo-zh.git] / media-plugins / waylyrics / waylyrics-0.3.11.ebuild
blob71f3e87651a5b28325a50f63177909881f96213e
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.2
6 EAPI=8
8 CRATES="
9         addr2line@0.21.0
10         adler@1.0.2
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.86
17         arrayvec@0.7.4
18         ashpd@0.8.1
19         assert_float_eq@1.1.3
20         async-broadcast@0.7.0
21         async-channel@2.3.1
22         async-executor@1.11.0
23         async-fs@2.1.2
24         async-io@2.3.2
25         async-lock@3.3.0
26         async-net@2.0.0
27         async-process@2.2.2
28         async-recursion@1.1.1
29         async-signal@0.2.6
30         async-task@4.7.1
31         async-trait@0.1.80
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.2.0
37         backtrace@0.3.71
38         base64@0.22.0
39         base64ct@1.6.0
40         bitflags@1.3.2
41         bitflags@2.5.0
42         bitvec@1.0.1
43         block-buffer@0.10.4
44         block-padding@0.3.3
45         block@0.1.6
46         blocking@1.6.0
47         borsh-derive@1.4.0
48         borsh@1.4.0
49         bumpalo@3.16.0
50         bytecheck@0.6.12
51         bytecheck_derive@0.6.12
52         byteorder@1.5.0
53         bytes@1.6.0
54         cairo-rs@0.18.5
55         cairo-rs@0.19.4
56         cairo-sys-rs@0.18.2
57         cairo-sys-rs@0.19.2
58         cbc@0.1.2
59         cc@1.0.95
60         cfg-expr@0.15.8
61         cfg-if@1.0.0
62         cfg_aliases@0.1.1
63         cipher@0.4.4
64         clap@2.34.0
65         cocoa-foundation@0.1.2
66         cocoa@0.25.0
67         concurrent-queue@2.5.0
68         const-oid@0.9.6
69         cookie@0.17.0
70         cookie@0.18.1
71         cookie_store@0.20.0
72         core-foundation-sys@0.8.6
73         core-foundation@0.9.4
74         core-graphics-types@0.1.3
75         core-graphics@0.23.2
76         cpufeatures@0.2.12
77         crc32fast@1.4.0
78         crossbeam-channel@0.5.12
79         crossbeam-utils@0.8.19
80         crypto-common@0.1.6
81         darling@0.14.4
82         darling_core@0.14.4
83         darling_macro@0.14.4
84         dbus-codegen@0.9.1
85         dbus-tree@0.9.2
86         dbus@0.9.7
87         der@0.7.9
88         deranged@0.3.11
89         derivative@2.2.0
90         derive_is_enum_variant@0.1.1
91         digest@0.10.7
92         directories@5.0.1
93         dirs-next@2.0.0
94         dirs-sys-next@0.1.2
95         dirs-sys@0.4.1
96         dispatch@0.2.0
97         documented-derive@0.4.1
98         documented@0.4.1
99         dpi@0.1.1
100         ecb@0.1.2
101         embed-resource@2.4.2
102         encoding_rs@0.8.34
103         endi@1.1.0
104         enum-kinds@0.5.1
105         enumflags2@0.7.9
106         enumflags2_derive@0.7.9
107         equivalent@1.0.1
108         errno@0.3.8
109         event-listener-strategy@0.4.0
110         event-listener-strategy@0.5.2
111         event-listener@4.0.3
112         event-listener@5.3.0
113         fastrand@2.1.0
114         fdeflate@0.3.4
115         field-offset@0.3.6
116         flate2@1.0.30
117         fnv@1.0.7
118         foreign-types-macros@0.2.3
119         foreign-types-shared@0.1.1
120         foreign-types-shared@0.3.1
121         foreign-types@0.3.2
122         foreign-types@0.5.0
123         form_urlencoded@1.2.1
124         from_variants@1.0.2
125         from_variants_impl@1.0.2
126         funty@2.0.0
127         futures-channel@0.3.30
128         futures-core@0.3.30
129         futures-executor@0.3.30
130         futures-io@0.3.30
131         futures-lite@2.3.0
132         futures-macro@0.3.30
133         futures-sink@0.3.30
134         futures-task@0.3.30
135         futures-util@0.3.30
136         gdk-pixbuf-sys@0.18.0
137         gdk-pixbuf-sys@0.19.5
138         gdk-pixbuf@0.18.5
139         gdk-pixbuf@0.19.2
140         gdk-sys@0.18.0
141         gdk4-sys@0.8.2
142         gdk4-win32-sys@0.8.2
143         gdk4-win32@0.8.2
144         gdk4@0.8.2
145         gdk@0.18.0
146         generic-array@0.14.7
147         getrandom@0.2.14
148         gettext-rs@0.7.0
149         gettext-sys@0.21.3
150         gimli@0.28.1
151         gio-sys@0.18.1
152         gio-sys@0.19.5
153         gio@0.18.4
154         gio@0.19.5
155         glib-macros@0.18.5
156         glib-macros@0.19.5
157         glib-sys@0.18.1
158         glib-sys@0.19.5
159         glib@0.18.5
160         glib@0.19.5
161         gobject-sys@0.18.0
162         gobject-sys@0.19.5
163         graphene-rs@0.19.2
164         graphene-sys@0.19.5
165         gsk4-sys@0.8.2
166         gsk4@0.8.2
167         gtk-sys@0.18.0
168         gtk3-macros@0.18.0
169         gtk4-macros@0.8.2
170         gtk4-sys@0.8.2
171         gtk4@0.8.2
172         gtk@0.18.1
173         h2@0.4.4
174         hashbrown@0.12.3
175         hashbrown@0.14.5
176         heck@0.3.3
177         heck@0.4.1
178         heck@0.5.0
179         hermit-abi@0.1.19
180         hermit-abi@0.3.9
181         hex@0.4.3
182         http-body-util@0.1.1
183         http-body@1.0.0
184         http@1.1.0
185         httparse@1.8.0
186         hyper-tls@0.6.0
187         hyper-util@0.1.3
188         hyper@1.3.1
189         ident_case@1.0.1
190         idna@0.3.0
191         idna@0.5.0
192         indexmap@2.2.6
193         inout@0.1.3
194         ipnet@2.9.0
195         itoa@1.0.11
196         js-sys@0.3.69
197         keyboard-types@0.7.0
198         ksni@0.2.2
199         lazy_static@1.4.0
200         libappindicator-sys@0.9.0
201         libappindicator@0.9.0
202         libc@0.2.153
203         libdbus-sys@0.2.5
204         libloading@0.7.4
205         libm@0.2.8
206         libmimalloc-sys@0.1.38
207         libredox@0.1.3
208         libxdo-sys@0.11.0
209         libxdo@0.6.0
210         linux-raw-sys@0.4.13
211         locale_config@0.3.0
212         lock_api@0.4.12
213         log@0.4.21
214         lrc-nom@0.3.0
215         malloc_buf@0.0.6
216         matchers@0.1.0
217         md5@0.7.0
218         memchr@2.7.2
219         memoffset@0.9.1
220         mimalloc@0.1.42
221         mime@0.3.17
222         minimal-lexical@0.2.1
223         miniz_oxide@0.7.2
224         mio@0.8.11
225         mpris@2.0.1
226         muda@0.13.1
227         native-tls@0.2.11
228         ncmapi2@0.1.13
229         nix@0.28.0
230         nom@7.1.3
231         nu-ansi-term@0.46.0
232         num-bigint-dig@0.8.4
233         num-conv@0.1.0
234         num-integer@0.1.46
235         num-iter@0.1.44
236         num-traits@0.2.18
237         num_cpus@1.16.0
238         objc-foundation@0.1.1
239         objc@0.2.7
240         objc_id@0.1.1
241         object@0.32.2
242         once_cell@1.19.0
243         opencc-rust@1.1.18
244         openssl-macros@0.1.1
245         openssl-probe@0.1.5
246         openssl-sys@0.9.102
247         openssl@0.10.64
248         option-ext@0.2.0
249         ordered-stream@0.2.0
250         overload@0.1.1
251         pango-sys@0.18.0
252         pango-sys@0.19.5
253         pango@0.18.3
254         pango@0.19.5
255         parking@2.2.0
256         parking_lot@0.12.2
257         parking_lot_core@0.9.10
258         pem-rfc7468@0.7.0
259         percent-encoding@2.3.1
260         phf@0.11.2
261         phf_generator@0.11.2
262         phf_macros@0.11.2
263         phf_shared@0.11.2
264         pin-project-internal@1.1.5
265         pin-project-lite@0.2.14
266         pin-project@1.1.5
267         pin-utils@0.1.0
268         piper@0.2.1
269         pkcs1@0.7.5
270         pkcs8@0.10.2
271         pkg-config@0.3.30
272         png@0.17.13
273         polling@3.7.0
274         pollster@0.3.0
275         powerfmt@0.2.0
276         ppv-lite86@0.2.17
277         proc-macro-crate@1.3.1
278         proc-macro-crate@2.0.0
279         proc-macro-crate@3.1.0
280         proc-macro-error-attr@1.0.4
281         proc-macro-error@1.0.4
282         proc-macro2@1.0.81
283         psl-types@2.0.11
284         ptr_meta@0.1.4
285         ptr_meta_derive@0.1.4
286         publicsuffix@2.2.3
287         qqmusic-rs@0.1.0
288         quote@0.3.15
289         quote@1.0.36
290         radium@0.7.0
291         rand@0.8.5
292         rand_chacha@0.3.1
293         rand_core@0.6.4
294         raw-window-handle@0.6.1
295         redox_syscall@0.5.1
296         redox_users@0.4.5
297         regex-automata@0.1.10
298         regex-automata@0.4.6
299         regex-syntax@0.6.29
300         regex-syntax@0.8.3
301         regex@1.10.4
302         rend@0.4.2
303         reqwest@0.12.4
304         rfd@0.14.1
305         rkyv@0.7.44
306         rkyv_derive@0.7.44
307         rsa@0.9.6
308         rust_decimal@1.35.0
309         rust_decimal_macros@1.34.2
310         rustc-demangle@0.1.23
311         rustc_version@0.4.0
312         rustix@0.38.34
313         rustls-pemfile@2.1.2
314         rustls-pki-types@1.5.0
315         rustversion@1.0.15
316         ryu@1.0.17
317         schannel@0.1.23
318         scopeguard@1.2.0
319         seahash@4.1.0
320         security-framework-sys@2.10.0
321         security-framework@2.10.0
322         semver@1.0.22
323         serde@1.0.203
324         serde_derive@1.0.203
325         serde_json@1.0.117
326         serde_repr@0.1.19
327         serde_spanned@0.6.6
328         serde_urlencoded@0.7.1
329         sha1@0.10.6
330         sharded-slab@0.1.7
331         signal-hook-registry@1.4.2
332         signature@2.2.0
333         simd-adler32@0.3.7
334         simdutf8@0.1.4
335         siphasher@0.3.11
336         slab@0.4.9
337         smallvec@1.13.2
338         socket2@0.5.7
339         sorensen@0.2.0
340         spin@0.5.2
341         spki@0.7.3
342         static_assertions@1.1.0
343         strsim@0.10.0
344         strsim@0.8.0
345         strum@0.26.2
346         strum_macros@0.26.2
347         subtle@2.5.0
348         syn@0.11.11
349         syn@1.0.109
350         syn@2.0.60
351         syn_derive@0.1.8
352         sync_wrapper@0.1.2
353         synom@0.11.3
354         sys-locale@0.3.1
355         system-configuration-sys@0.5.0
356         system-configuration@0.5.1
357         system-deps@6.2.2
358         tap@1.0.1
359         target-lexicon@0.12.14
360         temp-dir@0.1.13
361         tempfile@3.10.1
362         textwrap@0.11.0
363         thiserror-impl@1.0.59
364         thiserror@1.0.59
365         thread_local@1.1.8
366         time-core@0.1.2
367         time-macros@0.2.18
368         time@0.3.36
369         tinyvec@1.6.0
370         tinyvec_macros@0.1.1
371         tokio-macros@2.2.0
372         tokio-native-tls@0.3.1
373         tokio-util@0.7.10
374         tokio@1.37.0
375         toml@0.8.12
376         toml_datetime@0.6.6
377         toml_edit@0.19.15
378         toml_edit@0.20.7
379         toml_edit@0.21.1
380         toml_edit@0.22.13
381         tower-layer@0.3.2
382         tower-service@0.3.2
383         tower@0.4.13
384         tracing-attributes@0.1.27
385         tracing-core@0.1.32
386         tracing-journald@0.3.0
387         tracing-log@0.2.0
388         tracing-subscriber@0.3.18
389         tracing@0.1.40
390         tray-icon@0.13.4
391         try-lock@0.2.5
392         typenum@1.17.0
393         uds_windows@1.1.0
394         unicode-bidi@0.3.15
395         unicode-ident@1.0.12
396         unicode-normalization@0.1.23
397         unicode-segmentation@1.11.0
398         unicode-width@0.1.12
399         unicode-xid@0.0.4
400         url@2.5.0
401         urlencoding@2.1.3
402         uuid@1.8.0
403         valuable@0.1.0
404         vcpkg@0.2.15
405         vec_map@0.8.2
406         version-compare@0.2.0
407         version_check@0.9.4
408         vswhom-sys@0.1.2
409         vswhom@0.1.0
410         want@0.3.1
411         wasi@0.11.0+wasi-snapshot-preview1
412         wasm-bindgen-backend@0.2.92
413         wasm-bindgen-futures@0.4.42
414         wasm-bindgen-macro-support@0.2.92
415         wasm-bindgen-macro@0.2.92
416         wasm-bindgen-shared@0.2.92
417         wasm-bindgen@0.2.92
418         web-sys@0.3.69
419         winapi-i686-pc-windows-gnu@0.4.0
420         winapi-x86_64-pc-windows-gnu@0.4.0
421         winapi@0.3.9
422         windows-core@0.56.0
423         windows-implement@0.56.0
424         windows-interface@0.56.0
425         windows-result@0.1.1
426         windows-sys@0.48.0
427         windows-sys@0.52.0
428         windows-targets@0.48.5
429         windows-targets@0.52.5
430         windows@0.56.0
431         windows_aarch64_gnullvm@0.48.5
432         windows_aarch64_gnullvm@0.52.5
433         windows_aarch64_msvc@0.48.5
434         windows_aarch64_msvc@0.52.5
435         windows_exe_info@0.4.2
436         windows_i686_gnu@0.48.5
437         windows_i686_gnu@0.52.5
438         windows_i686_gnullvm@0.52.5
439         windows_i686_msvc@0.48.5
440         windows_i686_msvc@0.52.5
441         windows_x86_64_gnu@0.48.5
442         windows_x86_64_gnu@0.52.5
443         windows_x86_64_gnullvm@0.48.5
444         windows_x86_64_gnullvm@0.52.5
445         windows_x86_64_msvc@0.48.5
446         windows_x86_64_msvc@0.52.5
447         winnow@0.5.40
448         winnow@0.6.7
449         winreg@0.52.0
450         wyz@0.5.1
451         x11@2.21.0
452         xdg-home@1.1.0
453         xml-rs@0.8.20
454         zbus@4.1.2
455         zbus_macros@4.1.2
456         zbus_names@3.0.0
457         zerocopy-derive@0.7.32
458         zerocopy@0.7.32
459         zeroize@1.7.0
460         zvariant@4.0.2
461         zvariant_derive@4.0.2
462         zvariant_utils@1.1.0
465 PLOCALES="en_US zh_CN"
466 inherit cargo desktop gnome2-utils plocale xdg
468 DESCRIPTION="Simple On Screen lyrics Display for linux/unix"
469 HOMEPAGE="
470         https://waylyrics.github.io/waylyrics/waylyrics
471         https://github.com/waylyrics/waylyrics
474 if [[ "${PV}" == *9999* ]]; then
475         inherit git-r3
476         EGIT_REPO_URI="https://github.com/waylyrics/waylyrics.git"
477 else
478         SRC_URI="
479                 https://github.com/waylyrics/waylyrics/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
480                 ${CARGO_CRATE_URIS}
481         "
482         KEYWORDS="~amd64 ~loong"
485 LICENSE="MIT CC-BY-4.0"
486 # Dependent crate licenses
487 LICENSE+="
488         Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ ISC MIT
489         MPL-2.0 Unicode-DFS-2016 Unlicense
491 SLOT="0"
493 DEPEND="
494         dev-libs/glib:2
495         gui-libs/gtk:4
496         dev-libs/openssl:=
497         sys-apps/dbus
498         sys-devel/gettext
499         x11-libs/cairo
501 RDEPEND="${DEPEND}"
502 BDEPEND="
503         app-misc/jq
504         dev-libs/mimalloc
505         >=virtual/rust-1.73:*
508 src_compile() {
509         export WAYLYRICS_THEME_PRESETS_DIR="/usr/share/${PN}/themes"
510         cargo_src_compile --all-targets --all-features
513 src_install() {
514         cargo_src_install
516         doicon -s scalable "${S}/res/icons/hicolor/scalable/apps/io.github.waylyrics.Waylyrics.svg"
517         domenu "${S}/metainfo/io.github.waylyrics.Waylyrics.desktop"
519         insinto "/usr/share/glib-2.0/schemas"
520         doins "${S}/metainfo/io.github.waylyrics.Waylyrics.gschema.xml"
522         insinto "/usr/share/metainfo"
523         doins "${S}/metainfo/io.github.waylyrics.Waylyrics.metainfo.xml"
525         insinto "/usr/share/${PN}"
526         doins -r themes
528         cd "${S}/locales" || die
529         install_locale() {
530                 if [[ -f ${1}/LC_MESSAGES/waylyrics.po ]]; then
531                         local file=${1}/LC_MESSAGES/waylyrics.po
532                         msgfmt "${file}" -o "${file%.po}.mo" || die
533                         insinto /usr/share/locale/${1}/LC_MESSAGES
534                         doins "${file%.po}.mo"
535                 fi
536         }
537         plocale_for_each_locale install_locale
540 pkg_postinst() {
541         gnome2_schemas_update
542         xdg_pkg_postinst
545 pkg_postrm() {
546         gnome2_schemas_update
547         xdg_pkg_postrm