app-admin/awscli: Bump to 1.37.9
[gentoo/gentoo.git] / media-libs / libdovi / libdovi-3.3.1-r1.ebuild
blob0131e18bb74d84d14e547fefabc577aeb0ac419b
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 CRATES="
7         aho-corasick@1.1.3
8         anes@0.1.6
9         anstyle@1.0.8
10         anyhow@1.0.86
11         autocfg@1.3.0
12         bitstream-io@2.5.0
13         bitvec@1.0.1
14         bitvec_helpers@3.1.5
15         bumpalo@3.16.0
16         cast@0.3.0
17         cfg-if@1.0.0
18         ciborium-io@0.2.2
19         ciborium-ll@0.2.2
20         ciborium@0.2.2
21         clap@4.5.13
22         clap_builder@4.5.13
23         clap_lex@0.7.2
24         crc-catalog@2.4.0
25         crc@3.2.1
26         criterion-plot@0.5.0
27         criterion@0.5.1
28         crossbeam-deque@0.8.5
29         crossbeam-epoch@0.9.18
30         crossbeam-utils@0.8.20
31         crunchy@0.2.2
32         either@1.13.0
33         equivalent@1.0.1
34         funty@2.0.0
35         half@2.4.1
36         hashbrown@0.14.5
37         hermit-abi@0.3.9
38         indexmap@2.3.0
39         is-terminal@0.4.12
40         itertools@0.10.5
41         itoa@1.0.11
42         js-sys@0.3.69
43         libc@0.2.155
44         log@0.4.22
45         memchr@2.7.4
46         num-traits@0.2.19
47         once_cell@1.19.0
48         oorandom@11.1.4
49         plotters-backend@0.3.6
50         plotters-svg@0.3.6
51         plotters@0.3.6
52         proc-macro2@1.0.86
53         quote@1.0.36
54         radium@0.7.0
55         rayon-core@1.12.1
56         rayon@1.10.0
57         regex-automata@0.4.7
58         regex-syntax@0.8.4
59         regex@1.10.6
60         roxmltree@0.20.0
61         ryu@1.0.18
62         same-file@1.0.6
63         serde@1.0.204
64         serde_derive@1.0.204
65         serde_json@1.0.122
66         syn@2.0.72
67         tap@1.0.1
68         tinytemplate@1.2.1
69         tinyvec@1.8.0
70         unicode-ident@1.0.12
71         walkdir@2.5.0
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
76         wasm-bindgen@0.2.92
77         web-sys@0.3.69
78         winapi-util@0.1.9
79         windows-sys@0.52.0
80         windows-sys@0.59.0
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
90         wyz@0.5.1
92 RUST_MULTILIB=1
94 inherit cargo edo multilib-minimal rust-toolchain
96 DESCRIPTION="Dolby Vision metadata parsing and writing"
97 HOMEPAGE="https://github.com/quietvoid/dovi_tool/"
98 SRC_URI="
99         https://github.com/quietvoid/dovi_tool/archive/refs/tags/${P}.tar.gz
100         ${CARGO_CRATE_URIS}
102 S=${WORKDIR}/dovi_tool-${P}/dolby_vision
104 LICENSE="MIT"
105 LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016" # crates
106 SLOT="0/$(ver_cut 1)"
107 KEYWORDS="amd64"
109 BDEPEND="
110         dev-util/cargo-c
113 QA_FLAGS_IGNORED="usr/lib.*/${PN}.*"
115 src_prepare() {
116         default
118         multilib_copy_sources
121 src_configure() {
122         multilib_src_configure() {
123                 local -n cargoargs=${PN}_CARGOARGS_${ABI}
125                 cargoargs=(
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)
133                 )
134         }
136         multilib-minimal_src_configure
139 src_compile() {
140         multilib_src_compile() {
141                 local -n cargoargs=${PN}_CARGOARGS_${ABI}
143                 edo cargo cbuild "${cargoargs[@]}"
144         }
146         multilib-minimal_src_compile
149 src_test() { :; } # no tests, and must not run cargo_src_test
151 src_install() {
152         multilib_src_install() {
153                 local -n cargoargs=${PN}_CARGOARGS_${ABI}
155                 edo cargo cinstall --destdir="${D}" "${cargoargs[@]}"
156         }
158         multilib-minimal_src_install