# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-lxml
version             3.2.1
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     24 25 26 27 31 32 33

maintainers         akitada gmail.com:dbraband openmaintainer

description         Powerful and Pythonic XML processing library

long_description    lxml is a Pythonic binding for the libxml2 and \
                    libxslt libraries.  It is unique in that it \
                    combines the speed and feature completeness of \
                    these libraries with the simplicity of a native \
                    Python API, mostly compatible but superior to \
                    the well-known ElementTree API.

homepage            http://lxml.de/
master_sites        http://pypi.python.org/packages/source/l/lxml/

checksums           rmd160  42f1dcb0bc50ad1d988f57a0514abcb914e7d182 \
                    sha256  fc4924366cd0751f9cde17c2bc52e13df8b04246d4eaf6b09a496262c9ebbf6a

distname            lxml-${version}

if {$subport != $name} {
    depends_build-append \
                        port:py${python.version}-setuptools

    depends_lib-append  port:zlib \
                        port:libxml2 \
                        port:libxslt

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "lxml-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
