Сравнение libxml2-2.14.6 с libxml2-9999

/usr/portage/dev-libs/libxml2/libxml2-9999.ebuild 2025-11-06 18:18:08.141505557 +0300
9 9
PYTHON_REQ_USE="xml(+)"
10 10
inherit python-r1 meson-multilib
11 11

  
12
XSTS_HOME="https://www.w3.org/XML/2004/xml-schema-test-suite"
13
XSTS_NAME_1="xmlschema2002-01-16"
14
XSTS_NAME_2="xmlschema2004-01-14"
15
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
16
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
17
XMLCONF_TARBALL="xmlts20130923.tar.gz"
18

  
19 12
DESCRIPTION="XML C parser and toolkit"
20 13
HOMEPAGE="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
21 14
if [[ ${PV} == 9999 ]] ; then
......
23 16
	inherit git-r3
24 17
else
25 18
	inherit gnome.org
26
	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
19
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
27 20
fi
28 21

  
29
SRC_URI+="
30
	test? (
31
		${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
32
		${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2}
33
		https://www.w3.org/XML/Test/${XMLCONF_TARBALL}
34
	)
35
"
36 22
S="${WORKDIR}/${PN}-${PV%_rc*}"
37 23

  
38 24
LICENSE="MIT"
39 25
# see so_version = v_maj + v_min_compat for subslot
40 26
SLOT="2/16"
41
IUSE="icu +python readline static-libs test"
27
IUSE="doc icu python readline static-libs test"
42 28
RESTRICT="!test? ( test )"
43 29
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
44 30

  
......
50 36
	readline? ( sys-libs/readline:= )
51 37
"
52 38
DEPEND="${RDEPEND}"
53
BDEPEND="virtual/pkgconfig"
39
BDEPEND="
40
	virtual/pkgconfig
41
	doc? (
42
		app-text/docbook-xsl-stylesheets
43
		app-text/doxygen
44
		dev-libs/libxslt
45
	)
46
	python? ( app-text/doxygen )
47
"
54 48

  
55 49
MULTILIB_CHOST_TOOLS=(
56 50
	/usr/bin/xml2-config
57 51
)
58 52

  
59
PATCHES=(
60
	"${FILESDIR}"/libxml2-2.14.2-no-git.patch
61
)
62

  
63 53
src_unpack() {
64 54
	if [[ ${PV} == 9999 ]] ; then
65 55
		git-r3_src_unpack
66 56
	else
67
		local tarname=${P/_rc/-rc}.tar.xz
68

  
69
		# ${A} isn't used to avoid unpacking of test tarballs into ${WORKDIR},
70
		# as they are needed as tarballs in ${S}/xstc instead and not unpacked
71
		unpack ${tarname}
72

  
73
		if [[ -n ${PATCHSET_VERSION} ]] ; then
74
			unpack ${PN}-${PATCHSET_VERSION}.tar.xz
75
		fi
57
		default
76 58
	fi
77 59

  
78 60
	cd "${S}" || die
79

  
80
	if use test ; then
81
		cp "${DISTDIR}/${XSTS_TARBALL_1}" \
82
			"${DISTDIR}/${XSTS_TARBALL_2}" \
83
			"${S}"/xstc/ \
84
			|| die "Failed to install test tarballs"
85
		unpack ${XMLCONF_TARBALL}
86
	fi
87 61
}
88 62

  
89 63
src_prepare() {
......
97 71
		$(meson_feature icu)
98 72
		$(meson_native_use_feature readline)
99 73
		$(meson_native_use_feature readline history)
74
		-Ddocs=disabled
100 75
		-Dpython=enabled
76
		-Dschematron=enabled
101 77
	)
102 78
	mkdir "${BUILD_DIR}" || die
103 79
	pushd "${BUILD_DIR}" >/dev/null || die
......
109 85
	local emesonargs=(
110 86
		-Ddefault_library=$(multilib_native_usex static-libs both shared)
111 87
		$(meson_feature icu)
88
		$(meson_native_use_feature doc docs)
112 89
		$(meson_native_use_feature readline)
113 90
		$(meson_native_use_feature readline history)
114 91
		-Dpython=disabled
92
		-Dschematron=enabled
115 93

  
116 94
		# There has been a clean break with a soname bump.
117 95
		# It's time to deal with the breakage.
Спасибо!