1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.4
12 android_system_properties@0.1.5
54 concurrent-queue@2.5.0
57 core-foundation-sys@0.8.7
60 crossbeam-utils@0.8.20
62 curl-sys@0.4.77+curl-8.10.1
71 enumflags2_derive@0.7.10
76 event-listener-strategy@0.5.2
85 foreign-types-shared@0.1.1
88 futures-channel@0.3.31
90 futures-executor@0.3.31
116 gstreamer-base-sys@0.23.3
117 gstreamer-base@0.23.3
118 gstreamer-play-sys@0.23.2
119 gstreamer-play@0.23.2
121 gstreamer-video-sys@0.23.3
122 gstreamer-video@0.23.3
135 iana-time-zone-haiku@0.1.2
136 iana-time-zone@0.1.61
137 icu_collections@1.5.0
139 icu_locid_transform@1.5.0
140 icu_locid_transform_data@1.5.0
142 icu_normalizer_data@1.5.0
144 icu_properties_data@1.5.0
146 icu_provider_macros@1.5.0
154 is_terminal_polyfill@1.70.1
163 libnghttp2-sys@0.1.10+1.61.0
181 objc-foundation@0.1.1
189 option-operations@0.5.0
195 percent-encoding@2.3.1
196 pin-project-internal@1.1.7
197 pin-project-lite@0.2.15
207 proc-macro-crate@3.2.0
211 qrcode-generator@4.1.9
232 signal-hook-registry@1.4.2
238 stable_deref_trait@1.2.0
239 static_assertions@1.1.0
243 target-lexicon@0.12.16
246 thiserror-impl@1.0.68
257 tracing-attributes@0.1.27
259 tracing-futures@0.2.5
266 unicode-normalization@0.1.24
274 version-compare@0.2.0
277 wasi@0.11.0+wasi-snapshot-preview1
278 wasm-bindgen-backend@0.2.95
279 wasm-bindgen-macro-support@0.2.95
280 wasm-bindgen-macro@0.2.95
281 wasm-bindgen-shared@0.2.95
283 winapi-i686-pc-windows-gnu@0.4.0
284 winapi-x86_64-pc-windows-gnu@0.4.0
290 windows-targets@0.48.5
291 windows-targets@0.52.6
292 windows_aarch64_gnullvm@0.48.5
293 windows_aarch64_gnullvm@0.52.6
294 windows_aarch64_msvc@0.48.5
295 windows_aarch64_msvc@0.52.6
296 windows_i686_gnu@0.48.5
297 windows_i686_gnu@0.52.6
298 windows_i686_gnullvm@0.52.6
299 windows_i686_msvc@0.48.5
300 windows_i686_msvc@0.52.6
301 windows_x86_64_gnu@0.48.5
302 windows_x86_64_gnu@0.52.6
303 windows_x86_64_gnullvm@0.48.5
304 windows_x86_64_gnullvm@0.52.6
305 windows_x86_64_msvc@0.48.5
306 windows_x86_64_msvc@0.52.6
316 zerocopy-derive@0.7.35
318 zerofrom-derive@0.1.4
320 zerovec-derive@0.10.3
323 zvariant_derive@4.2.0
328 NCM_API_COMMIT
='2af4140314eec93cb6fc0a5697a1e12bd34aeda2'
329 declare -A GIT_CRATES
=(
330 [netease-cloud-music-api
]="https://github.com/gmg137/netease-cloud-music-api;${NCM_API_COMMIT};netease-cloud-music-api-%commit%"
333 inherit cargo gnome2-utils meson optfeature xdg
335 DESCRIPTION
="netease cloud music player based on Rust & GTK for Linux"
336 HOMEPAGE
="https://github.com/gmg137/netease-cloud-music-gtk"
339 https://github.com/gmg137/netease-cloud-music-gtk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
344 # Dependent crate licenses
346 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT MPL-2.0
355 media-libs/gst-plugins-bad:1.0
356 media-libs/gst-plugins-base:1.0
357 media-libs/gst-plugins-good
358 media-libs/gst-plugins-ugly
359 media-libs/gstreamer:1.0
360 media-plugins/gst-plugins-libav
361 media-plugins/gst-plugins-soup
365 x11-libs/gdk-pixbuf:2
367 gui-libs/libadwaita:1
380 # cargo will try to update crates online despite
381 # cargo_gen_config set [patch] table in cargo config
382 # modify Cargo.toml with unpacked git crate (ncm-api)
383 #local ncm_api_git="git = \"https://github.com/gmg137/netease-cloud-music-api.git\", tag = \"${NCM_API_TAG}\""
384 local ncm_api_git
="git = \"https://gitee.com/gmg137/netease-cloud-music-api.git\", tag = \"${NCM_API_TAG}\""
385 local ncm_api_path
="path = \"${WORKDIR}/netease-cloud-music-api-${NCM_API_COMMIT}\""
387 sed -i -E "s#${ncm_api_git}#${ncm_api_path}#g" "${S}/Cargo.toml" || die
"ncm-api workaround failed"
394 -Dlocaledir=share
/locale
397 use debug || EMESON_BUILDTYPE
=release
402 optfeature
"osdlyrics integration" media-plugins
/osdlyrics
405 gnome2_schemas_update
406 gnome2_gdk_pixbuf_update
407 gnome2_giomodule_cache_update
412 gnome2_schemas_update
413 gnome2_giomodule_cache_update