Diff mercurial-6.9.1 with a mercurial-9999

/usr/portage/dev-vcs/mercurial/mercurial-9999.ebuild 2025-02-03 17:39:32.922667256 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
9 9
PYTHON_COMPAT=( python3_{10..13} )
10 10
PYTHON_REQ_USE="threads(+)"
11 11

  
12
CRATES="
13
	adler@1.0.2
14
	ahash@0.8.2
15
	aho-corasick@0.7.19
16
	android-tzdata@0.1.1
17
	android_system_properties@0.1.5
18
	atty@0.2.14
19
	autocfg@1.1.0
20
	bitflags@1.3.2
21
	bitflags@2.6.0
22
	bitmaps@2.1.0
23
	bitvec@1.0.1
24
	block-buffer@0.10.3
25
	block-buffer@0.9.0
26
	bstr@1.6.0
27
	bumpalo@3.11.1
28
	byteorder@1.4.3
29
	bytes-cast-derive@0.2.0
30
	bytes-cast@0.3.0
31
	cc@1.0.76
32
	cfg-if@1.0.0
33
	cfg_aliases@0.2.1
34
	chrono@0.4.34
35
	clap@4.0.24
36
	clap_derive@4.0.21
37
	clap_lex@0.3.0
38
	codespan-reporting@0.11.1
39
	console@0.15.8
40
	convert_case@0.4.0
41
	core-foundation-sys@0.8.3
42
	cpufeatures@0.2.5
43
	cpython@0.7.2
44
	crc32fast@1.3.2
45
	crossbeam-channel@0.5.6
46
	crossbeam-deque@0.8.2
47
	crossbeam-epoch@0.9.11
48
	crossbeam-utils@0.8.12
49
	crypto-common@0.1.6
50
	ctor@0.1.26
51
	ctrlc@3.4.5
52
	cxx-build@1.0.81
53
	cxx@1.0.81
54
	cxxbridge-flags@1.0.81
55
	cxxbridge-macro@1.0.81
56
	derive_more@0.99.17
57
	diff@0.1.13
58
	digest@0.10.5
59
	digest@0.9.0
60
	dirs-sys@0.4.1
61
	dirs@5.0.1
62
	dyn-clone@1.0.17
63
	either@1.8.0
64
	encode_unicode@0.3.6
65
	env_logger@0.9.3
66
	fastrand@1.8.0
67
	filetime@0.2.25
68
	flate2@1.0.24
69
	format-bytes-macros@0.4.0
70
	format-bytes@0.3.0
71
	funty@2.0.0
72
	generic-array@0.14.6
73
	getrandom@0.1.16
74
	getrandom@0.2.8
75
	hashbrown@0.12.3
76
	hashbrown@0.13.1
77
	heck@0.4.0
78
	hermit-abi@0.1.19
79
	hex@0.4.3
80
	home@0.5.4
81
	humantime@2.1.0
82
	iana-time-zone-haiku@0.1.1
83
	iana-time-zone@0.1.53
84
	im-rc@15.1.0
85
	indexmap@1.9.2
86
	indicatif@0.17.8
87
	instant@0.1.12
88
	itertools@0.10.5
89
	jobserver@0.1.25
90
	js-sys@0.3.60
91
	lazy_static@1.4.0
92
	libc@0.2.155
93
	libm@0.2.6
94
	libredox@0.1.3
95
	libz-sys@1.1.8
96
	link-cplusplus@1.0.7
97
	log@0.4.17
98
	logging_timer@1.1.0
99
	logging_timer_proc_macros@1.1.0
100
	memchr@2.5.0
101
	memmap2@0.5.8
102
	memoffset@0.6.5
103
	miniz_oxide@0.5.4
104
	nix@0.29.0
105
	nom8@0.2.0
106
	num-traits@0.2.15
107
	num_cpus@1.14.0
108
	number_prefix@0.4.0
109
	once_cell@1.16.0
110
	opaque-debug@0.3.0
111
	option-ext@0.2.0
112
	os_str_bytes@6.4.0
113
	output_vt100@0.1.3
114
	paste@1.0.9
115
	pkg-config@0.3.26
116
	portable-atomic@1.9.0
117
	ppv-lite86@0.2.17
118
	pretty_assertions@1.3.0
119
	proc-macro-error-attr@1.0.4
120
	proc-macro-error@1.0.4
121
	proc-macro2@1.0.47
122
	python3-sys@0.7.2
123
	quote@1.0.21
124
	radium@0.7.0
125
	rand@0.7.3
126
	rand@0.8.5
127
	rand_chacha@0.2.2
128
	rand_chacha@0.3.1
129
	rand_core@0.5.1
130
	rand_core@0.6.4
131
	rand_distr@0.4.3
132
	rand_hc@0.2.0
133
	rand_pcg@0.3.1
134
	rand_xoshiro@0.6.0
135
	rayon-core@1.11.0
136
	rayon@1.7.0
137
	redox_syscall@0.2.16
138
	redox_syscall@0.5.3
139
	redox_users@0.4.5
140
	regex-automata@0.3.9
141
	regex-syntax@0.6.28
142
	regex@1.7.0
143
	remove_dir_all@0.5.3
144
	rustc_version@0.4.0
145
	same-file@1.0.6
146
	scopeguard@1.1.0
147
	scratch@1.0.2
148
	self_cell@1.0.0
149
	semver@1.0.14
150
	serde@1.0.152
151
	serde_derive@1.0.152
152
	serde_spanned@0.6.1
153
	sha-1@0.10.0
154
	sha-1@0.9.8
155
	shellexpand@3.1.0
156
	sized-chunks@0.6.5
157
	stable_deref_trait@1.2.0
158
	static_assertions@1.1.0
159
	strsim@0.10.0
160
	syn@1.0.109
161
	tap@1.0.1
162
	tempfile@3.3.0
163
	termcolor@1.1.3
164
	thiserror-impl@1.0.39
165
	thiserror@1.0.39
166
	thread_local@1.1.4
167
	toml@0.6.0
168
	toml_datetime@0.5.1
169
	toml_edit@0.18.1
170
	twox-hash@1.6.3
171
	typenum@1.15.0
172
	unicode-ident@1.0.5
173
	unicode-width@0.1.10
174
	uuid@1.11.0
175
	vcpkg@0.2.15
176
	vcsgraph@0.2.0
177
	version_check@0.9.4
178
	wasi@0.11.0+wasi-snapshot-preview1
179
	wasi@0.9.0+wasi-snapshot-preview1
180
	wasm-bindgen-backend@0.2.83
181
	wasm-bindgen-macro-support@0.2.83
182
	wasm-bindgen-macro@0.2.83
183
	wasm-bindgen-shared@0.2.83
184
	wasm-bindgen@0.2.83
185
	web-sys@0.3.60
186
	which@4.3.0
187
	whoami@1.4.0
188
	winapi-i686-pc-windows-gnu@0.4.0
189
	winapi-util@0.1.5
190
	winapi-x86_64-pc-windows-gnu@0.4.0
191
	winapi@0.3.9
192
	windows-sys@0.48.0
193
	windows-sys@0.52.0
194
	windows-sys@0.59.0
195
	windows-targets@0.48.5
196
	windows-targets@0.52.6
197
	windows_aarch64_gnullvm@0.48.5
198
	windows_aarch64_gnullvm@0.52.6
199
	windows_aarch64_msvc@0.48.5
200
	windows_aarch64_msvc@0.52.6
201
	windows_i686_gnu@0.48.5
202
	windows_i686_gnu@0.52.6
203
	windows_i686_gnullvm@0.52.6
204
	windows_i686_msvc@0.48.5
205
	windows_i686_msvc@0.52.6
206
	windows_x86_64_gnu@0.48.5
207
	windows_x86_64_gnu@0.52.6
208
	windows_x86_64_gnullvm@0.48.5
209
	windows_x86_64_gnullvm@0.52.6
210
	windows_x86_64_msvc@0.48.5
211
	windows_x86_64_msvc@0.52.6
212
	wyz@0.5.1
213
	yansi@0.5.1
214
	zstd-safe@6.0.4+zstd.1.5.4
215
	zstd-sys@2.0.7+zstd.1.5.4
216
	zstd@0.12.3+zstd.1.5.2
217
"
218

  
219 12
# for stdsimd
220 13
RUST_MAX_VER=1.77.1
221 14

  
222
inherit bash-completion-r1 cargo elisp-common distutils-r1 flag-o-matic multiprocessing
15
inherit bash-completion-r1 cargo elisp-common distutils-r1 mercurial flag-o-matic multiprocessing
223 16

  
224 17
DESCRIPTION="Scalable distributed SCM"
225 18
HOMEPAGE="https://www.mercurial-scm.org/"
226
SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz
227
	rust? ( ${CARGO_CRATE_URIS} )"
19
EHG_REPO_URI="https://www.mercurial-scm.org/repo/hg"
228 20

  
229
LICENSE="GPL-2+
230
	rust? (
231
		Apache-2.0 BSD MIT MPL-2.0 MPL-2.0 PYTHON Unicode-DFS-2016
232
		 )"
21
LICENSE="GPL-2+"
233 22
SLOT="0"
234
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
235 23
IUSE="+chg emacs gpg test tk rust"
236 24

  
237
BDEPEND="rust? ( ${RUST_DEPEND} )"
25
BDEPEND="
26
	dev-python/docutils[${PYTHON_USEDEP}]
27
	rust? ( ${RUST_DEPEND} )"
28

  
238 29
RDEPEND="
239 30
	app-misc/ca-certificates
240 31
	gpg? ( app-crypt/gnupg )
......
244 35
	test? (
245 36
		app-arch/unzip
246 37
		dev-python/pygments[${PYTHON_USEDEP}]
247
	)"
38
		)"
248 39

  
249 40
SITEFILE="70${PN}-gentoo.el"
250 41

  
......
255 46
}
256 47

  
257 48
src_unpack() {
258
	default_src_unpack
49
	mercurial_src_unpack
259 50
	if use rust; then
260 51
		local S="${S}/rust/hg-cpython"
261
		cargo_src_unpack
52
		cargo_live_src_unpack
262 53
	else
263 54
		# Needed because distutils-r1 install under cargo_env if cargo is inherited
264 55
		cargo_gen_config
......
300 91

  
301 92
python_compile_all() {
302 93
	rm -r contrib/win32 || die
94
	emake doc
303 95
	if use chg; then
304 96
		emake -C contrib/chg
305 97
	fi
Thank you!