# -*- 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 121661 2014-07-03 17:50:11Z mf2k@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     26
python.version      26

maintainers         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  c7ccece50f8d20f5fac44ac1bf8dc0d8a85aa0f9 \
                    sha256  6ad6949dc7eea744a30fba77a968dd5910f545220e58bcc813b9df5c793e318a

distname            lxml-${version}

if {${name} eq ${subport}} {

    revision            100

    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}"
}
