Diff rustls-ffi-0.15.0 with a rustls-ffi-0.15.6

/usr/portage/net-libs/rustls-ffi/rustls-ffi-0.15.6.ebuild 2026-10-23 20:01:05.525158847 +0300
1
# Copyright 2022-2025 Gentoo Authors
1
# Copyright 2022-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
# May need to use cargo-ebuild to generate this list to get workspace crates.
7
CRATES="
8
	aho-corasick@1.1.3
9
	alloc-no-stdlib@2.0.4
10
	alloc-stdlib@0.2.2
11
	autocfg@1.4.0
12
	aws-lc-fips-sys@0.13.0
13
	aws-lc-rs@1.12.0
14
	aws-lc-sys@0.24.0
15
	bindgen@0.69.5
16
	bitflags@2.6.0
17
	brotli@7.0.0
18
	brotli-decompressor@4.0.1
19
	bytes@1.9.0
20
	cc@1.2.5
21
	cesu8@1.1.0
22
	cexpr@0.6.0
23
	cfg-if@1.0.0
24
	clang-sys@1.8.1
25
	cmake@0.1.52
26
	combine@4.6.7
27
	core-foundation@0.10.0
28
	core-foundation-sys@0.8.7
29
	dunce@1.0.5
30
	either@1.13.0
31
	errno@0.3.10
32
	fs_extra@1.3.0
33
	getrandom@0.2.15
34
	glob@0.3.1
35
	hashbrown@0.12.3
36
	home@0.5.11
37
	indexmap@1.9.3
38
	itertools@0.12.1
39
	jni@0.21.1
40
	jni-sys@0.3.0
41
	jobserver@0.1.32
42
	lazy_static@1.5.0
43
	lazycell@1.3.0
44
	libc@0.2.171
45
	libloading@0.8.6
46
	linux-raw-sys@0.4.14
47
	log@0.4.26
48
	memchr@2.7.4
49
	minimal-lexical@0.2.1
50
	nom@7.1.3
51
	nom8@0.2.0
52
	once_cell@1.20.2
53
	openssl-probe@0.1.5
54
	paste@1.0.15
55
	prettyplease@0.2.25
56
	proc-macro2@1.0.92
57
	quote@1.0.37
58
	regex@1.11.1
59
	regex-automata@0.4.9
60
	regex-syntax@0.8.5
61
	ring@0.17.8
62
	rustc-hash@1.1.0
63
	rustix@0.38.42
64
	rustls@0.23.25
65
	rustls-native-certs@0.8.1
66
	rustls-pki-types@1.11.0
67
	rustls-platform-verifier@0.5.1
68
	rustls-platform-verifier-android@0.1.1
69
	rustls-webpki@0.103.0
70
	rustversion@1.0.18
71
	same-file@1.0.6
72
	schannel@0.1.27
73
	security-framework@3.1.0
74
	security-framework-sys@2.13.0
75
	serde@1.0.219
76
	serde_derive@1.0.219
77
	serde_spanned@0.6.8
78
	shlex@1.3.0
79
	spin@0.9.8
80
	subtle@2.6.1
81
	syn@2.0.90
82
	thiserror@1.0.69
83
	thiserror-impl@1.0.69
84
	toml@0.6.0
85
	toml_datetime@0.5.1
86
	toml_edit@0.18.1
87
	unicode-ident@1.0.14
88
	untrusted@0.9.0
89
	walkdir@2.5.0
90
	wasi@0.11.0+wasi-snapshot-preview1
91
	webpki-root-certs@0.26.7
92
	which@4.4.2
93
	winapi-util@0.1.9
94
	windows-sys@0.45.0
95
	windows-sys@0.52.0
96
	windows-sys@0.59.0
97
	windows-targets@0.42.2
98
	windows-targets@0.52.6
99
	windows_aarch64_gnullvm@0.42.2
100
	windows_aarch64_gnullvm@0.52.6
101
	windows_aarch64_msvc@0.42.2
102
	windows_aarch64_msvc@0.52.6
103
	windows_i686_gnu@0.42.2
104
	windows_i686_gnu@0.52.6
105
	windows_i686_gnullvm@0.52.6
106
	windows_i686_msvc@0.42.2
107
	windows_i686_msvc@0.52.6
108
	windows_x86_64_gnu@0.42.2
109
	windows_x86_64_gnu@0.52.6
110
	windows_x86_64_gnullvm@0.42.2
111
	windows_x86_64_gnullvm@0.52.6
112
	windows_x86_64_msvc@0.42.2
113
	windows_x86_64_msvc@0.52.6
114
	zeroize@1.8.1
115
	zlib-rs@0.4.1
116
"
117 6
RUST_MULTILIB=1
118 7
RUST_MIN_VER="1.81"
119 8
inherit cargo flag-o-matic multilib-minimal rust-toolchain
120 9

  
121 10
DESCRIPTION="C-to-rustls bindings"
122 11
HOMEPAGE="https://github.com/rustls/rustls-ffi"
123
SRC_URI="https://github.com/rustls/rustls-ffi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
124
SRC_URI+=" ${CARGO_CRATE_URIS}"
12

  
13
if [[ ${PV} == 9999 ]]; then
14
	inherit git-r3
15
	EGIT_REPO_URI="https://github.com/rustls/rustls-ffi.git"
16
else
17
	SRC_URI="
18
		https://github.com/rustls/rustls-ffi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
19
		https://github.com/gentoo-crate-dist/rustls-ffi/releases/download/v${PV}/${P}-crates.tar.xz
20
	"
21
	KEYWORDS="~amd64"
22
fi
125 23

  
126 24
# Strictly speaking the core package is "|| ( Apache-2.0 MIT ISC )"
127 25
# but dependencies explicitly require at least one of each.
......
129 27
# For Ring (see its LICENSE)
130 28
LICENSE+=" ISC openssl SSLeay MIT"
131 29
SLOT="0/${PV%.*}"
132
KEYWORDS="~amd64"
133 30

  
134 31
BDEPEND="dev-util/cargo-c"
135 32

  
136 33
QA_FLAGS_IGNORED="usr/lib.*/librustls.*"
137 34

  
35
src_unpack() {
36
	if [[ ${PV} == 9999 ]]; then
37
		git-r3_src_unpack
38
		cargo_live_src_unpack
39
	else
40
		cargo_src_unpack
41
	fi
42
}
43

  
138 44
src_prepare() {
139 45
	default
140 46

  
141
	# Currently only used for development, we can skip this
142
	# and significantly reduce the number of required crates.
143
	# Produces a docgen binary that we may want to use in the future. Just API docs?
144
	rm -r tools || die
145
	sed '/    "tools"/d' -i Cargo.toml || die
146
	cargo_update_crates
47
	if ! [[ ${PV} == 9999 ]]; then # We already fetched all the crates...
48
		# Currently only used for development, we can skip this
49
		# and significantly reduce the number of required crates.
50
		# Produces a docgen binary that we may want to use in the future. Just API docs?
51
		rm -r tools || die
52
		sed '/    "tools"/d' -i Cargo.toml || die
53
		cargo_update_crates
54
	fi
147 55

  
148 56
	multilib_copy_sources
149 57
}
Thank you!