Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/libxml2-python/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST libxml2-2.15.1.tar.xz 2004588 BLAKE2B 73c4d17adacda67d71c5a120c7de2324df1db35963cadbe18166dafe122e1f10dcab9d4fed0e128c077a5ca31432bfaf72f742c42680251660d397ab8bc3538b SHA512 429c7d0dc3cbcb8de1bf6eb588fb8025fee009c9b25e87c96ecc5de57cc12b558b0ab8141f333d73ca687109335f297c9f9776abbb9da9afc9d8e79041c86b7f
51 changes: 51 additions & 0 deletions dev-python/libxml2-python/libxml2-python-2.15.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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.1.tar.xz -> libxml2-2.15.1.tar.xz"
SLOT="2"
KEYWORDS="*"
IUSE="+icu +lzma readline static-libs"
RDEPEND="=dev-libs/libxml2-2.15.1:=[lzma?,icu?,readline?,static-libs?]

"
DEPEND="${RDEPEND}
app-doc/doxygen[dot]

"
S="${WORKDIR}/libxml2-2.15.1"
src_prepare() {
default
sed -e "/^dir_doc/ s/meson.project_name()$/\'${PF}\'/" -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