# $Id: Portfile,v 1.4 2006/04/22 16:19:05 rhwood Exp $

PortSystem 1.0
PortGroup python24 1.0

name                    py-libxml2
version		2.6.23
categories              python textproc
platforms               darwin
maintainers             michaelm@opendarwin.org
description             Python bindings for libxml2
long_description        ${description}

homepage                http://xmlsoft.org/
master_sites            gnome:sources/libxml2/2.6/ ftp://xmlsoft.org/
distname                libxml2-${version}
checksums               md5 e98018a6b562f1fa454e705dde2269de
use_bzip2               yes

dist_subdir             libxml2

depends_lib-append      port:libxml2 \
                          port:zlib

extract.post_args       "| tar -xf - ${distname}/python ${distname}/doc/libxml2-api.xml"

worksrcdir              ${distname}/python

build.env               CFLAGS="-I${prefix}/include/libxml2" \
                          LDFLAGS=-L${prefix}/lib

post-destroot {
        xinstall -m 644 -W ${worksrcpath} README TODO \
          ${destroot}${prefix}/share/doc/${name}
}
