-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibxml2-python-2.15.3.ebuild
More file actions
56 lines (50 loc) · 1.45 KB
/
libxml2-python-2.15.3.ebuild
File metadata and controls
56 lines (50 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit
EAPI=7
PYTHON_COMPAT=( python3+ )
inherit distutils-r1 meson
DESCRIPTION="Python binding of XML C parser and toolkit"
HOMEPAGE="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
SRC_URI="https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz -> libxml2-2.15.3.tar.xz"
SLOT="2"
KEYWORDS="*"
IUSE="+icu +lzma readline static-libs"
RDEPEND="=dev-libs/libxml2-2.15.3:=[lzma?,icu?,readline?,static-libs?]
!<dev-python/libxml2-python-2.15.0
"
DEPEND="${RDEPEND}
app-doc/doxygen
!<dev-python/libxml2-python-2.15.0
"
S="${WORKDIR}/libxml2-2.15.3"
src_prepare() {
default
sed -e "/^dir_doc/ s/meson.project_name()$/\'${PF}\'/" -i meson.build || die
# Permit to compile libxml2 on stage3 without git installed.
# Hack git command with echo in order to print an empty string.
sed -e 's|git|echo|g' -e 's|describe||g' -i meson.build || die
}
src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
-Ddocs=disabled
$(meson_feature icu)
$(meson_feature readline)
$(meson_feature readline history)
-Dpython=enabled
-Dschematron=enabled
-Dlegacy=disabled
)
meson_src_configure
export S="${S}/python"
distutils-r1_src_configure
}
src_compile() {
meson_src_compile
}
src_install() {
meson_src_install
# Remove files supplied by libxml2 library
rm -r "${ED}"/usr/{lib64,bin,include} || die
}
# vim: filetype=ebuild