# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# Please keep the version of the libxml2 and py-libxml2 ports the same.
categories-append textproc
maintainers mcalhoun openmaintainer
description Python bindings for libxml2
long_description ${description}
homepage http://xmlsoft.org/python.html
master_sites http://www.xmlsoft.org/sources/ \
ftp://gd.tuwien.ac.at/pub/libxml/ \
ftp://xmlsoft.org/libxml2/
distname libxml2-${version}
checksums rmd160 969b4ed8782f455fd4a6ca1c1b4ffa7651090070 \
sha256 5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
if {${name} ne ${subport}} {
depends_lib-append port:libxml2
worksrcdir ${worksrcdir}/python
reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
patchfiles patch-setup.py.diff
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} README TODO \
livecheck.url http://www.xmlsoft.org/news.html
livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}