# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

set _name           cssselect
set _n              [string index ${_name} 0]

name                py-${_name}
version             1.0.3
categories-append   devel
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         cssselect parses CSS3 Selectors and translates \
                    them to XPath 1.0
long_description    cssselect parses CSS3 Selectors and translates \
                    them to XPath 1.0 expressions. Such expressions \
                    can be used in lxml or another XPath engine to \
                    find the matching elements in an XML or HTML \
                    document.

homepage            https://pypi.python.org/pypi/cssselect

master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  a950b4c4eae5302a5dd45f402a463c4c0449c254 \
                    sha256  066d8bc5229af09617e24b3ca4d52f1f9092d9e061931f4184cd572885c23204

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    post-destroot {
        xinstall -m 644 -W ${worksrcpath} \
            AUTHORS CHANGES LICENSE README.rst \
                ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
} else {
    livecheck.type  pypi
}