Сравнение librsvg-2.40.21 с librsvg-2.56.3

/usr/portage/gnome-base/librsvg/librsvg-2.56.3.ebuild 2023-10-09 14:52:31.156368392 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5
GNOME2_EAUTORECONF="yes"
4
EAPI=8
5
PYTHON_COMPAT=( python3_{10..12} )
6 6

  
7
inherit gnome2 multilib-minimal vala
7
CRATES="
8
	adler-1.0.2
9
	aho-corasick-1.0.2
10
	android-tzdata-0.1.1
11
	android_system_properties-0.1.5
12
	anes-0.1.6
13
	anstream-0.3.2
14
	anstyle-1.0.1
15
	anstyle-parse-0.2.1
16
	anstyle-query-1.0.0
17
	anstyle-wincon-1.0.1
18
	anyhow-1.0.72
19
	approx-0.5.1
20
	assert_cmd-2.0.11
21
	atty-0.2.14
22
	autocfg-1.1.0
23
	base-x-0.2.11
24
	bit-set-0.5.3
25
	bit-vec-0.6.3
26
	bitflags-1.3.2
27
	bitflags-2.3.3
28
	block-0.1.6
29
	bstr-1.6.0
30
	bumpalo-3.13.0
31
	bytemuck-1.13.1
32
	byteorder-1.4.3
33
	cairo-rs-0.17.10
34
	cairo-sys-rs-0.17.10
35
	cast-0.3.0
36
	cc-1.0.79
37
	cfg-expr-0.15.3
38
	cfg-if-1.0.0
39
	chrono-0.4.26
40
	ciborium-0.2.1
41
	ciborium-io-0.2.1
42
	ciborium-ll-0.2.1
43
	clap-3.2.25
44
	clap-4.3.17
45
	clap_builder-4.3.17
46
	clap_complete-4.3.2
47
	clap_derive-4.3.12
48
	clap_lex-0.2.4
49
	clap_lex-0.5.0
50
	colorchoice-1.0.0
51
	const-cstr-0.3.0
52
	const_fn-0.4.9
53
	convert_case-0.4.0
54
	core-foundation-sys-0.8.4
55
	crc32fast-1.3.2
56
	criterion-0.4.0
57
	criterion-plot-0.5.0
58
	crossbeam-channel-0.5.8
59
	crossbeam-deque-0.8.3
60
	crossbeam-epoch-0.9.15
61
	crossbeam-utils-0.8.16
62
	cssparser-0.29.6
63
	cssparser-macros-0.6.1
64
	data-url-0.2.0
65
	derive_more-0.99.17
66
	difflib-0.4.0
67
	discard-1.0.4
68
	dlib-0.5.2
69
	doc-comment-0.3.3
70
	dtoa-1.0.9
71
	dtoa-short-0.3.4
72
	either-1.8.1
73
	encoding-0.2.33
74
	encoding-index-japanese-1.20141219.5
75
	encoding-index-korean-1.20141219.5
76
	encoding-index-simpchinese-1.20141219.5
77
	encoding-index-singlebyte-1.20141219.5
78
	encoding-index-tradchinese-1.20141219.5
79
	encoding_index_tests-0.1.4
80
	encoding_rs-0.8.32
81
	equivalent-1.0.1
82
	errno-0.3.1
83
	errno-dragonfly-0.1.2
84
	fastrand-2.0.0
85
	fdeflate-0.3.0
86
	flate2-1.0.26
87
	float-cmp-0.9.0
88
	fnv-1.0.7
89
	form_urlencoded-1.2.0
90
	futf-0.1.5
91
	futures-channel-0.3.28
92
	futures-core-0.3.28
93
	futures-executor-0.3.28
94
	futures-io-0.3.28
95
	futures-macro-0.3.28
96
	futures-task-0.3.28
97
	futures-util-0.3.28
98
	fxhash-0.2.1
99
	gdk-pixbuf-0.17.10
100
	gdk-pixbuf-sys-0.17.10
101
	getrandom-0.1.16
102
	getrandom-0.2.10
103
	gio-0.17.10
104
	gio-sys-0.17.10
105
	glib-0.17.10
106
	glib-macros-0.17.10
107
	glib-sys-0.17.10
108
	gobject-sys-0.17.10
109
	half-1.8.2
110
	hashbrown-0.12.3
111
	hashbrown-0.14.0
112
	heck-0.4.1
113
	hermit-abi-0.1.19
114
	hermit-abi-0.3.2
115
	iana-time-zone-0.1.57
116
	iana-time-zone-haiku-0.1.2
117
	idna-0.4.0
118
	indexmap-1.9.3
119
	indexmap-2.0.0
120
	is-terminal-0.4.9
121
	itertools-0.10.5
122
	itoa-1.0.9
123
	js-sys-0.3.64
124
	language-tags-0.3.2
125
	lazy_static-1.4.0
126
	libc-0.2.147
127
	libloading-0.8.0
128
	libm-0.2.7
129
	linked-hash-map-0.5.6
130
	linux-raw-sys-0.4.3
131
	locale_config-0.3.0
132
	lock_api-0.4.10
133
	log-0.4.19
134
	lopdf-0.29.0
135
	mac-0.1.1
136
	malloc_buf-0.0.6
137
	markup5ever-0.11.0
138
	matches-0.1.10
139
	matrixmultiply-0.3.7
140
	memchr-2.5.0
141
	memoffset-0.9.0
142
	miniz_oxide-0.7.1
143
	nalgebra-0.32.3
144
	nalgebra-macros-0.2.1
145
	new_debug_unreachable-1.0.4
146
	nodrop-0.1.14
147
	normalize-line-endings-0.3.0
148
	num-complex-0.4.3
149
	num-integer-0.1.45
150
	num-rational-0.4.1
151
	num-traits-0.2.15
152
	num_cpus-1.16.0
153
	objc-0.2.7
154
	objc-foundation-0.1.1
155
	objc_id-0.1.1
156
	once_cell-1.18.0
157
	oorandom-11.1.3
158
	os_str_bytes-6.5.1
159
	pango-0.17.10
160
	pango-sys-0.17.10
161
	pangocairo-0.17.10
162
	pangocairo-sys-0.17.10
163
	parking_lot-0.12.1
164
	parking_lot_core-0.9.8
165
	paste-1.0.14
166
	percent-encoding-2.3.0
167
	phf-0.8.0
168
	phf-0.10.1
169
	phf_codegen-0.8.0
170
	phf_codegen-0.10.0
171
	phf_generator-0.8.0
172
	phf_generator-0.10.0
173
	phf_macros-0.10.0
174
	phf_shared-0.8.0
175
	phf_shared-0.10.0
176
	pin-project-lite-0.2.10
177
	pin-utils-0.1.0
178
	pkg-config-0.3.27
179
	plotters-0.3.5
180
	plotters-backend-0.3.5
181
	plotters-svg-0.3.5
182
	png-0.17.9
183
	pom-3.3.0
184
	ppv-lite86-0.2.17
185
	precomputed-hash-0.1.1
186
	predicates-2.1.5
187
	predicates-3.0.3
188
	predicates-core-1.0.6
189
	predicates-tree-1.0.9
190
	proc-macro-crate-1.3.1
191
	proc-macro-error-1.0.4
192
	proc-macro-error-attr-1.0.4
193
	proc-macro-hack-0.5.20+deprecated
194
	proc-macro2-1.0.66
195
	proptest-1.2.0
196
	quick-error-1.2.3
197
	quote-1.0.31
198
	rand-0.7.3
199
	rand-0.8.5
200
	rand_chacha-0.2.2
201
	rand_chacha-0.3.1
202
	rand_core-0.5.1
203
	rand_core-0.6.4
204
	rand_hc-0.2.0
205
	rand_pcg-0.2.1
206
	rand_xorshift-0.3.0
207
	rawpointer-0.2.1
208
	rayon-1.7.0
209
	rayon-core-1.11.0
210
	rctree-0.5.0
211
	redox_syscall-0.3.5
212
	regex-1.9.1
213
	regex-automata-0.3.3
214
	regex-syntax-0.6.29
215
	regex-syntax-0.7.4
216
	rgb-0.8.36
217
	rustc_version-0.2.3
218
	rustc_version-0.4.0
219
	rustix-0.38.4
220
	rusty-fork-0.3.0
221
	ryu-1.0.15
222
	safe_arch-0.7.1
223
	same-file-1.0.6
224
	scopeguard-1.2.0
225
	selectors-0.24.0
226
	semver-0.9.0
227
	semver-1.0.18
228
	semver-parser-0.7.0
229
	serde-1.0.173
230
	serde_derive-1.0.173
231
	serde_json-1.0.103
232
	serde_spanned-0.6.3
233
	servo_arc-0.2.0
234
	sha1-0.6.1
235
	sha1_smol-1.0.0
236
	simba-0.8.1
237
	simd-adler32-0.3.5
238
	siphasher-0.3.10
239
	slab-0.4.8
240
	smallvec-1.11.0
241
	stable_deref_trait-1.2.0
242
	standback-0.2.17
243
	stdweb-0.4.20
244
	stdweb-derive-0.5.3
245
	stdweb-internal-macros-0.2.9
246
	stdweb-internal-runtime-0.1.5
247
	string_cache-0.8.7
248
	string_cache_codegen-0.5.2
249
	strsim-0.10.0
250
	syn-1.0.109
251
	syn-2.0.26
252
	system-deps-6.1.1
253
	target-lexicon-0.12.10
254
	tempfile-3.7.0
255
	tendril-0.4.3
256
	termtree-0.4.1
257
	textwrap-0.16.0
258
	thiserror-1.0.43
259
	thiserror-impl-1.0.43
260
	time-0.2.27
261
	time-macros-0.1.1
262
	time-macros-impl-0.1.2
263
	tinytemplate-1.2.1
264
	tinyvec-1.6.0
265
	tinyvec_macros-0.1.1
266
	toml-0.7.6
267
	toml_datetime-0.6.3
268
	toml_edit-0.19.14
269
	typenum-1.16.0
270
	unarray-0.1.4
271
	unicode-bidi-0.3.13
272
	unicode-ident-1.0.11
273
	unicode-normalization-0.1.22
274
	url-2.4.0
275
	utf-8-0.7.6
276
	utf8parse-0.2.1
277
	version-compare-0.1.1
278
	version_check-0.9.4
279
	wait-timeout-0.2.0
280
	walkdir-2.3.3
281
	wasi-0.9.0+wasi-snapshot-preview1
282
	wasi-0.11.0+wasi-snapshot-preview1
283
	wasm-bindgen-0.2.87
284
	wasm-bindgen-backend-0.2.87
285
	wasm-bindgen-macro-0.2.87
286
	wasm-bindgen-macro-support-0.2.87
287
	wasm-bindgen-shared-0.2.87
288
	web-sys-0.3.64
289
	weezl-0.1.7
290
	wide-0.7.11
291
	winapi-0.3.9
292
	winapi-i686-pc-windows-gnu-0.4.0
293
	winapi-util-0.1.5
294
	winapi-x86_64-pc-windows-gnu-0.4.0
295
	windows-0.48.0
296
	windows-sys-0.48.0
297
	windows-targets-0.48.1
298
	windows_aarch64_gnullvm-0.48.0
299
	windows_aarch64_msvc-0.48.0
300
	windows_i686_gnu-0.48.0
301
	windows_i686_msvc-0.48.0
302
	windows_x86_64_gnu-0.48.0
303
	windows_x86_64_gnullvm-0.48.0
304
	windows_x86_64_msvc-0.48.0
305
	winnow-0.5.0
306
	xml5ever-0.17.0
307
	yeslogic-fontconfig-sys-4.0.1
308
"
309

  
310
inherit cargo gnome2 multilib-minimal python-any-r1 rust-toolchain vala
8 311

  
9 312
DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
10
HOMEPAGE="https://wiki.gnome.org/Projects/LibRsvg"
313
HOMEPAGE="https://wiki.gnome.org/Projects/LibRsvg https://gitlab.gnome.org/GNOME/librsvg"
314
SRC_URI+=" $(cargo_crate_uris ${CRATES})"
315

  
316
LICENSE="Apache-2.0 BSD CC0-1.0 LGPL-2.1+ ISC MIT MPL-2.0 Unicode-DFS-2016"
11 317

  
12
LICENSE="LGPL-2+"
13 318
SLOT="2"
14
KEYWORDS="~alpha arm hppa ~ia64 ~loong ~mips ppc ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
319
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86"
15 320

  
16
IUSE="+introspection tools +vala"
17
REQUIRED_USE="vala? ( introspection )"
321
IUSE="gtk-doc +introspection +vala"
322
REQUIRED_USE="
323
	gtk-doc? ( introspection )
324
	vala? ( introspection )
325
"
18 326

  
19 327
RDEPEND="
20
	>=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
21
	>=dev-libs/libcroco-0.6.8-r1[${MULTILIB_USEDEP}]
328
	>=x11-libs/cairo-1.16.0[glib,svg(+),${MULTILIB_USEDEP}]
329
	>=media-libs/freetype-2.9:2[${MULTILIB_USEDEP}]
330
	>=x11-libs/gdk-pixbuf-2.20:2[introspection?,${MULTILIB_USEDEP}]
331
	>=dev-libs/glib-2.50.0:2[${MULTILIB_USEDEP}]
332
	>=media-libs/harfbuzz-2.0.0:=[${MULTILIB_USEDEP}]
22 333
	>=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
23
	>=x11-libs/cairo-1.12.14-r4[${MULTILIB_USEDEP}]
24
	>=x11-libs/gdk-pixbuf-2.30.7:2[introspection?,${MULTILIB_USEDEP}]
25
	>=x11-libs/pango-1.38.0[${MULTILIB_USEDEP}]
334
	>=x11-libs/pango-1.48.11[${MULTILIB_USEDEP}]
335

  
26 336
	introspection? ( >=dev-libs/gobject-introspection-0.10.8:= )
27
	tools? ( >=x11-libs/gtk+-3.10.0:3 )
28 337
"
29 338
DEPEND="${RDEPEND}"
30 339
BDEPEND="
31
	dev-libs/gobject-introspection-common
32
	dev-libs/vala-common
33
	dev-util/glib-utils
34
	>=dev-util/gtk-doc-am-1.13
35
	virtual/pkgconfig
340
	>=virtual/rust-1.65.0[${MULTILIB_USEDEP}]
36 341
	x11-libs/gdk-pixbuf
342
	${PYTHON_DEPS}
343
	$(python_gen_any_dep 'dev-python/docutils[${PYTHON_USEDEP}]')
344
	gtk-doc? ( dev-util/gi-docgen )
345
	virtual/pkgconfig
37 346
	vala? ( $(vala_depend) )
347

  
348
	dev-libs/gobject-introspection-common
349
	dev-libs/vala-common
38 350
"
39
# >=gtk-doc-am-1.13, gobject-introspection-common, vala-common needed by eautoreconf
351
# dev-libs/gobject-introspection-common, dev-libs/vala-common needed by eautoreconf
40 352

  
41 353
QA_FLAGS_IGNORED="
42 354
	usr/bin/rsvg-convert
43 355
	usr/lib.*/librsvg.*
44 356
"
45 357

  
46
RESTRICT="test" # Lots of issues due to freetype changes and more; ever since newer tests got backported into 2.40.19
47

  
48
PATCHES=(
49
	# https://bugzilla.gnome.org/show_bug.cgi?id=653323
50
	"${FILESDIR}/${PN}-2.40.12-gtk-optional.patch"
51
)
52

  
53 358
src_prepare() {
54
	use vala && vala_src_prepare
359
	use vala && vala_setup
55 360
	gnome2_src_prepare
56 361
}
57 362

  
58 363
multilib_src_configure() {
59 364
	local myconf=(
60 365
		--disable-static
61
		--disable-tools  # only useful for librsvg developers
366
		--disable-debug
367
		$(multilib_native_use_enable gtk-doc)
62 368
		$(multilib_native_use_enable introspection)
63
		$(multilib_native_use_with tools gtk3)
64 369
		$(multilib_native_use_enable vala)
65 370
		--enable-pixbuf-loader
66 371
	)
67 372

  
68
	# -Bsymbolic is not supported by the Darwin toolchain
69
	[[ ${CHOST} == *-darwin* ]] && myconf+=( --disable-Bsymbolic )
373
	if ! multilib_is_native_abi; then
374
		myconf+=(
375
			# Set the rust target, which can differ from CHOST
376
			RUST_TARGET="$(rust_abi)"
377
			# RUST_TARGET is only honored if cross_compiling, but non-native ABIs aren't cross as
378
			# far as C parts and configure auto-detection are concerned as CHOST equals CBUILD
379
			cross_compiling=yes
380
		)
381
	fi
70 382

  
71
	ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
383
	ECONF_SOURCE=${S} \
384
	gnome2_src_configure "${myconf[@]}"
72 385

  
73 386
	if multilib_is_native_abi; then
74 387
		ln -s "${S}"/doc/html doc/html || die
......
76 389
}
77 390

  
78 391
multilib_src_compile() {
79
	# causes segfault if set, see bug #411765
80
	unset __GL_NO_DSO_FINALIZER
81 392
	gnome2_src_compile
82 393
}
83 394

  
......
85 396
	gnome2_src_install
86 397
}
87 398

  
399
multilib_src_install_all() {
400
	find "${ED}" -name '*.la' -delete || die
401

  
402
	if use gtk-doc; then
403
		mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
404
		mv "${ED}"/usr/share/doc/Rsvg-2.0 "${ED}"/usr/share/gtk-doc/html/ || die
405
	fi
406
}
407

  
88 408
pkg_postinst() {
89
	# causes segfault if set, see bug 375615
90
	unset __GL_NO_DSO_FINALIZER
91 409
	multilib_foreach_abi gnome2_pkg_postinst
92 410
}
93 411

  
94 412
pkg_postrm() {
95
	# causes segfault if set, see bug 375615
96
	unset __GL_NO_DSO_FINALIZER
97 413
	multilib_foreach_abi gnome2_pkg_postrm
98 414
}
Спасибо!