Сравнение stgit-1.5 с stgit-2.3.1

/usr/portage/dev-vcs/stgit/stgit-2.3.1.ebuild 2023-10-09 14:52:31.024368389 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
# Auto-Generated by cargo-ebuild 0.5.4
5

  
4 6
EAPI=8
5 7

  
6
PYTHON_COMPAT=( python3_{9..11} )
8
CRATES="
9
	adler-1.0.2
10
	ahash-0.8.3
11
	anstream-0.3.2
12
	anstyle-1.0.1
13
	anstyle-parse-0.2.1
14
	anstyle-query-1.0.0
15
	anstyle-wincon-1.0.1
16
	anyhow-1.0.72
17
	arc-swap-1.6.0
18
	autocfg-1.1.0
19
	bitflags-1.3.2
20
	bitflags-2.3.3
21
	bstr-1.6.0
22
	btoi-0.4.3
23
	bzip2-rs-0.1.2
24
	cc-1.0.79
25
	cfg-if-1.0.0
26
	clap-4.3.19
27
	clap_builder-4.3.19
28
	clap_lex-0.5.0
29
	clru-0.6.1
30
	colorchoice-1.0.0
31
	crc32fast-1.3.2
32
	ctrlc-3.4.0
33
	curl-0.4.44
34
	curl-sys-0.4.64+curl-8.2.0
35
	dunce-1.0.4
36
	encoding_rs-0.8.32
37
	equivalent-1.0.1
38
	errno-0.3.1
39
	errno-dragonfly-0.1.2
40
	fastrand-2.0.0
41
	filetime-0.2.21
42
	flate2-1.0.26
43
	form_urlencoded-1.2.0
44
	getrandom-0.2.10
45
	gix-0.50.1
46
	gix-actor-0.24.1
47
	gix-attributes-0.16.0
48
	gix-bitmap-0.2.6
49
	gix-chunk-0.4.4
50
	gix-command-0.2.8
51
	gix-commitgraph-0.18.1
52
	gix-config-0.26.1
53
	gix-config-value-0.12.5
54
	gix-credentials-0.17.1
55
	gix-date-0.7.1
56
	gix-diff-0.33.1
57
	gix-discover-0.22.1
58
	gix-features-0.32.1
59
	gix-filter-0.2.0
60
	gix-fs-0.4.1
61
	gix-glob-0.10.1
62
	gix-hash-0.11.4
63
	gix-hashtable-0.2.4
64
	gix-ignore-0.5.1
65
	gix-index-0.21.1
66
	gix-lock-7.0.2
67
	gix-mailmap-0.16.1
68
	gix-negotiate-0.5.1
69
	gix-object-0.33.1
70
	gix-odb-0.50.1
71
	gix-pack-0.40.2
72
	gix-packetline-blocking-0.16.4
73
	gix-path-0.8.4
74
	gix-prompt-0.5.4
75
	gix-quote-0.4.6
76
	gix-ref-0.33.2
77
	gix-refspec-0.14.1
78
	gix-revision-0.18.1
79
	gix-revwalk-0.4.1
80
	gix-sec-0.8.4
81
	gix-tempfile-7.0.2
82
	gix-trace-0.1.3
83
	gix-traverse-0.30.1
84
	gix-url-0.21.1
85
	gix-utils-0.1.5
86
	gix-validate-0.7.7
87
	gix-worktree-0.23.0
88
	hashbrown-0.12.3
89
	hashbrown-0.14.0
90
	hermit-abi-0.3.2
91
	hex-0.4.3
92
	home-0.5.5
93
	idna-0.4.0
94
	imara-diff-0.1.5
95
	indexmap-2.0.0
96
	io-close-0.3.7
97
	io-lifetimes-1.0.11
98
	is-terminal-0.4.9
99
	itoa-1.0.9
100
	kstring-2.0.0
101
	libc-0.2.147
102
	libz-sys-1.1.10
103
	linux-raw-sys-0.3.8
104
	linux-raw-sys-0.4.3
105
	lock_api-0.4.10
106
	log-0.4.19
107
	memchr-2.5.0
108
	memmap2-0.7.1
109
	minimal-lexical-0.2.1
110
	miniz_oxide-0.7.1
111
	nix-0.26.2
112
	nom-7.1.3
113
	num-traits-0.2.16
114
	num_threads-0.1.6
115
	once_cell-1.18.0
116
	openssl-probe-0.1.5
117
	openssl-sys-0.9.90
118
	parking_lot-0.12.1
119
	parking_lot_core-0.9.8
120
	percent-encoding-2.3.0
121
	pkg-config-0.3.27
122
	proc-macro2-1.0.66
123
	prodash-25.0.1
124
	quote-1.0.32
125
	redox_syscall-0.2.16
126
	redox_syscall-0.3.5
127
	regex-automata-0.3.3
128
	rustix-0.37.23
129
	rustix-0.38.4
130
	ryu-1.0.15
131
	same-file-1.0.6
132
	schannel-0.1.22
133
	scopeguard-1.2.0
134
	serde-1.0.175
135
	serde_derive-1.0.175
136
	serde_json-1.0.103
137
	sha1_smol-1.0.0
138
	signal-hook-0.3.17
139
	signal-hook-registry-1.4.1
140
	smallvec-1.11.0
141
	socket2-0.4.9
142
	static_assertions-1.1.0
143
	strsim-0.10.0
144
	syn-2.0.27
145
	tar-0.4.39
146
	tempfile-3.7.0
147
	termcolor-1.2.0
148
	terminal_size-0.2.6
149
	thiserror-1.0.44
150
	thiserror-impl-1.0.44
151
	time-0.3.23
152
	time-core-0.1.1
153
	time-macros-0.2.10
154
	tinyvec-1.6.0
155
	tinyvec_macros-0.1.1
156
	unicode-bidi-0.3.13
157
	unicode-bom-2.0.2
158
	unicode-ident-1.0.11
159
	unicode-normalization-0.1.22
160
	url-2.4.0
161
	utf8parse-0.2.1
162
	vcpkg-0.2.15
163
	version_check-0.9.4
164
	walkdir-2.3.3
165
	wasi-0.11.0+wasi-snapshot-preview1
166
	winapi-0.3.9
167
	winapi-i686-pc-windows-gnu-0.4.0
168
	winapi-util-0.1.5
169
	winapi-x86_64-pc-windows-gnu-0.4.0
170
	windows-0.48.0
171
	windows-sys-0.48.0
172
	windows-targets-0.48.1
173
	windows_aarch64_gnullvm-0.48.0
174
	windows_aarch64_msvc-0.48.0
175
	windows_i686_gnu-0.48.0
176
	windows_i686_msvc-0.48.0
177
	windows_x86_64_gnu-0.48.0
178
	windows_x86_64_gnullvm-0.48.0
179
	windows_x86_64_msvc-0.48.0
180
	xattr-0.2.3
181
"
7 182

  
8
inherit bash-completion-r1 distutils-r1
183
inherit cargo flag-o-matic
9 184

  
10 185
DESCRIPTION="Manage a stack of patches using GIT as a backend"
11 186
HOMEPAGE="https://stacked-git.github.io"
12
UPSTREAM_VER=
13
[[ -n ${UPSTREAM_VER} ]] && \
14
	UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
15

  
16
SRC_URI="https://github.com/stacked-git/stgit/archive/v${PV}.tar.gz -> ${P}.tar.gz
17
	${UPSTREAM_PATCHSET_URI}"
18

  
19
LICENSE="GPL-2"
20
SLOT="0"
21
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
187
SRC_URI="${CARGO_CRATE_URIS}"
188
SRC_URI+=" https://github.com/stacked-git/stgit/releases/download/v${PV}/${P}.tar.gz"
189
RESTRICT="mirror"
190
# License set may be more restrictive as OR is not respected
191
# use cargo-license for a more accurate license picture
192
LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 GPL-2 MIT MIT-0 Unicode-DFS-2016 Unlicense ZLIB"
193
SLOT="0/2"
194
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
22 195
IUSE="doc"
23 196

  
24
RDEPEND=">=dev-vcs/git-1.6.3.3"
197
DEPEND="doc? ( app-text/asciidoc )"
198
RDEPEND=""
25 199

  
26
# NOTE: It seems to be quite important which asciidoc version to use.
27
# So keep an eye on it for the future.
28
DEPEND="${RDEPEND}
29
	doc? (
30
		app-text/asciidoc
31
		app-text/xmlto
32
		dev-lang/perl
33
	)"
34

  
35
pkg_setup() {
36
	if ! use doc; then
37
		echo
38
		ewarn "Manpages will not be built and installed."
39
		ewarn "Enable the 'doc' useflag, if you want them."
40
		echo
41
	fi
42
}
200
# rust does not use *FLAGS from make.conf, silence portage warning
201
# update with proper path to binaries this crate installs, omit leading /
202
QA_FLAGS_IGNORED="usr/bin/stg"
43 203

  
44
python_prepare_all() {
45
	# Upstream's patchset
46
	[[ -n ${UPSTREAM_VER} ]] && \
47
		eapply "${WORKDIR}"/patches-upstream
48

  
49
	# this will be a noop, as we are working with a tarball,
50
	# but throws git errors --> just get rid of it
51
	echo "version=\"${PV}\"" > "${S}"/stgit/builtin_version.py
52

  
53
	distutils-r1_python_prepare_all
204
src_configure() {
205
	filter-lto #bug 897692
54 206
}
55 207

  
56 208
src_compile() {
57
	distutils-r1_src_compile
58

  
59
	# bug 526468
60
	if use doc; then
61
		emake htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
62
			mandir="${EPREFIX}/usr/share/man/" \
63
			doc
64
	fi
209
	cargo_src_compile
210
	emake completion
211
	emake contrib
212
	use doc && emake doc
65 213
}
66 214

  
67 215
src_install() {
216
	cargo_src_install
217
	emake DESTDIR="${D}" prefix="/usr" install-completion
218
	emake DESTDIR="${D}" prefix="/usr" install-contrib
68 219
	if use doc; then
69
		emake DESTDIR="${D}" \
70
			htmldir="${EPREFIX}/usr/share/doc/${PF}/html/" \
71
			mandir="${EPREFIX}/usr/share/man/" \
72
			install-doc install-html
220
		emake DESTDIR="${D}" prefix="/usr" install-man
221
		emake DESTDIR="${D}" prefix="/usr" \
222
			htmldir="/usr/share/doc/${PF}"  \
223
			install-html
73 224
	fi
74

  
75
	distutils-r1_src_install
76

  
77
	newbashcomp completion/stgit.bash 'stg'
78 225
}
Спасибо!