1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
29 crossbeam-epoch@0.9.18
30 crossbeam-utils@0.8.20
49 plotters-backend@0.3.6
72 wasm-bindgen-backend@0.2.92
73 wasm-bindgen-macro-support@0.2.92
74 wasm-bindgen-macro@0.2.92
75 wasm-bindgen-shared@0.2.92
81 windows-targets@0.52.6
82 windows_aarch64_gnullvm@0.52.6
83 windows_aarch64_msvc@0.52.6
84 windows_i686_gnullvm@0.52.6
85 windows_i686_gnu@0.52.6
86 windows_i686_msvc@0.52.6
87 windows_x86_64_gnullvm@0.52.6
88 windows_x86_64_gnu@0.52.6
89 windows_x86_64_msvc@0.52.6
94 inherit cargo edo multilib-minimal rust-toolchain
96 DESCRIPTION="Dolby Vision metadata parsing and writing"
97 HOMEPAGE="https://github.com/quietvoid/dovi_tool/"
99 https://github.com/quietvoid/dovi_tool/archive/refs/tags/${P}.tar.gz
102 S=${WORKDIR}/dovi_tool-${P}/dolby_vision
105 LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016" # crates
106 SLOT="0/$(ver_cut 1)"
113 QA_FLAGS_IGNORED="usr/lib.*/${PN}.*"
118 multilib_copy_sources
122 multilib_src_configure() {
123 local -n cargoargs=${PN}_CARGOARGS_${ABI}
126 --prefix="${EPREFIX}/usr"
127 --libdir="${EPREFIX}/usr/$(get_libdir)"
128 --library-type=cdylib
129 --target="$(rust_abi)"
130 # cargo cbuild --help claims dev is default but (currently) seems
131 # to always use release unless --profile=dev is explicitly passed?
132 $(usex debug --profile=dev --release)
136 multilib-minimal_src_configure
140 multilib_src_compile() {
141 local -n cargoargs=${PN}_CARGOARGS_${ABI}
143 edo cargo cbuild "${cargoargs[@]}"
146 multilib-minimal_src_compile
149 src_test() { :; } # no tests, and must not run cargo_src_test
152 multilib_src_install() {
153 local -n cargoargs=${PN}_CARGOARGS_${ABI}
155 edo cargo cinstall --destdir="${D}" "${cargoargs[@]}"
158 multilib-minimal_src_install