1 # Copyright 2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.12.1
12 android_system_properties@0.1.5
49 concurrent-queue@2.4.0
52 core-foundation-sys@0.8.6
55 crossbeam-utils@0.8.16
57 curl-sys@0.4.70+curl-8.5.0
65 enumflags2_derive@0.7.8
69 event-listener-strategy@0.4.0
79 foreign-types-shared@0.1.1
82 futures-channel@0.3.29
84 futures-executor@0.3.29
110 gstreamer-base-sys@0.21.1
111 gstreamer-base@0.21.2
112 gstreamer-play-sys@0.21.0
113 gstreamer-play@0.21.2
115 gstreamer-video-sys@0.21.2
116 gstreamer-video@0.21.2
129 iana-time-zone-haiku@0.1.2
130 iana-time-zone@0.1.58
146 libnghttp2-sys@0.1.8+1.55.1
164 objc-foundation@0.1.1
172 option-operations@0.5.0
178 percent-encoding@2.3.1
179 pin-project-internal@1.1.3
180 pin-project-lite@0.2.13
191 proc-macro-crate@1.3.1
192 proc-macro-crate@2.0.1
193 proc-macro-error-attr@1.0.4
194 proc-macro-error@1.0.4
198 qrcode-generator@4.1.9
220 signal-hook-registry@1.4.1
226 static_assertions@1.1.0
230 target-lexicon@0.12.12
234 thiserror-impl@1.0.50
245 tracing-attributes@0.1.27
247 tracing-futures@0.2.5
253 unicode-normalization@0.1.22
258 version-compare@0.1.1
261 wasi@0.11.0+wasi-snapshot-preview1
262 wasm-bindgen-backend@0.2.89
263 wasm-bindgen-macro-support@0.2.89
264 wasm-bindgen-macro@0.2.89
265 wasm-bindgen-shared@0.2.89
267 winapi-i686-pc-windows-gnu@0.4.0
269 winapi-x86_64-pc-windows-gnu@0.4.0
274 windows-targets@0.48.5
275 windows-targets@0.52.0
276 windows_aarch64_gnullvm@0.48.5
277 windows_aarch64_gnullvm@0.52.0
278 windows_aarch64_msvc@0.48.5
279 windows_aarch64_msvc@0.52.0
280 windows_i686_gnu@0.48.5
281 windows_i686_gnu@0.52.0
282 windows_i686_msvc@0.48.5
283 windows_i686_msvc@0.52.0
284 windows_x86_64_gnu@0.48.5
285 windows_x86_64_gnu@0.52.0
286 windows_x86_64_gnullvm@0.48.5
287 windows_x86_64_gnullvm@0.52.0
288 windows_x86_64_msvc@0.48.5
289 windows_x86_64_msvc@0.52.0
296 zvariant_derive@3.15.0
301 NCM_API_COMMIT
='ac6b43d8dcdf2454b4538ac508ecf1df043896ad'
302 declare -A GIT_CRATES
=(
303 [netease-cloud-music-api
]="https://github.com/gmg137/netease-cloud-music-api;${NCM_API_COMMIT};netease-cloud-music-api-%commit%"
307 inherit cargo gnome2-utils meson optfeature xdg
309 DESCRIPTION
="netease cloud music player based on Rust & GTK for Linux"
310 HOMEPAGE
="https://github.com/gmg137/netease-cloud-music-gtk"
312 if [[ ${PV} == *_p
* ]]; then
314 SRC_URI
="https://github.com/gmg137/netease-cloud-music-gtk/archive/${P_COMMIT}.tar.gz -> ${P}.tar.gz"
315 S
="${WORKDIR}/${PN}-${P_COMMIT}"
317 SRC_URI
="https://github.com/gmg137/netease-cloud-music-gtk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
320 SRC_URI
+=" ${CARGO_CRATE_URIS} "
323 # Dependent crate licenses
325 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ MIT
335 media-libs/gst-plugins-bad:1.0
336 media-libs/gst-plugins-base:1.0
337 media-libs/gst-plugins-good
338 media-libs/gst-plugins-ugly
339 media-libs/gstreamer:1.0
340 media-plugins/gst-plugins-libav
341 media-plugins/gst-plugins-soup
345 x11-libs/gdk-pixbuf:2
347 gui-libs/libadwaita:1
353 BDEPEND
="virtual/rust"
360 # cargo will try to update crates online despite
361 # cargo_gen_config set [patch] table in cargo config
362 # modify Cargo.toml with unpacked git crate (ncm-api)
363 local ncm_api_git
="git = \"https://github.com/gmg137/netease-cloud-music-api.git\", tag = \"${NCM_API_TAG}\""
364 local ncm_api_path
="path = \"${WORKDIR}/netease-cloud-music-api-${NCM_API_COMMIT}\""
366 sed -i -E "s#${ncm_api_git}#${ncm_api_path}#g" "${S}/Cargo.toml" || die
"ncm-api workaround failed"
373 -Dlocaledir=share
/locale
376 use debug || EMESON_BUILDTYPE
=release
381 optfeature
"osdlyrics integration" media-plugins
/osdlyrics
384 gnome2_schemas_update
385 gnome2_gdk_pixbuf_update
386 gnome2_giomodule_cache_update
391 gnome2_schemas_update
392 gnome2_giomodule_cache_update