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
@@ -1,2 +1,3 @@
DIST libxml2-2.15.1.tar.xz 2004588 BLAKE2B 73c4d17adacda67d71c5a120c7de2324df1db35963cadbe18166dafe122e1f10dcab9d4fed0e128c077a5ca31432bfaf72f742c42680251660d397ab8bc3538b SHA512 429c7d0dc3cbcb8de1bf6eb588fb8025fee009c9b25e87c96ecc5de57cc12b558b0ab8141f333d73ca687109335f297c9f9776abbb9da9afc9d8e79041c86b7f
DIST libxml2-2.15.2.tar.xz 3148720 BLAKE2B e8adec751b6c8c8fd8358bee0c33159813601f6306b318314ffbf85324fa3ebeee2e838608a7fe365ffe4b82c4700f328fc27ae9a75cd7ed67cf256067542c2e SHA512 35f18fee772e63e8ea6220e5f5435ef5aabb5692a4519a993ec9640576d08fa45d5097280add5c5ffb5c280359d05eeecab0df24cce0b7ec35eef102d607b0b8
DIST libxml2-2.15.3.tar.xz 3152452 BLAKE2B 2ff478b46a40957386cd1ed0627bfc0f2433f47e786f20db3942304c90289adaeb1d9c3f12665df312b86cfac42f8e4dbc18e965bf90018f93c230b9b862df66 SHA512 6f7f1aabd012454553e851bd1ee548fbd14d21c576f2b2ab9eeedab3dfba51392083f74b34f060e9b538baeea212cdb462b8669c214c711771fb9a897fdc1c60
56 changes: 56 additions & 0 deletions dev-python/libxml2-python/libxml2-python-2.15.3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,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