# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python26 1.0 name py26-libxml2 version 2.6.21 categories python textproc platforms darwin maintainers mcalhoun openmaintainer description Python bindings for libxml2 long_description ${description} homepage http://xmlsoft.org/python.html master_sites ftp://xmlsoft.org/libxml2/python/ distname libxml2-python-${version} checksums md5 229dd2b3d110a77defeeaa73af83f7f3 \ sha1 2d395e8a5e9accd68f4e78ac2391431ef884e9d5 \ rmd160 d4973576c33e0e65c4fc41b31ee3df5f803abfad patchfiles patch-setup.py.diff depends_lib-append port:libxml2 \ port:zlib build.env LDFLAGS=-L${prefix}/lib post-patch { reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py } post-destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} README TODO \ ${destroot}${docdir} } livecheck.check regex livecheck.url ftp://xmlsoft.org/libxml2/python/ livecheck.regex {python-(\d+(?:\.\d+)*)}