# -*- 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

name                py-cssselect
version             1.1.0
revision            0

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    ${description}. Such expressions can be used in \
                    lxml or another XPath engine to find the matching \
                    elements in an XML or HTML document.

homepage            https://github.com/scrapy/cssselect
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  7d4898327b6d291a669bd82d1d6e568dfb0c5c64 \
                    sha256  f95f8dedd925fd8f54edb3d2dfb44c190d9d18512377d3c1e2388d16126879bc \
                    size    22718

python.versions     27 35 36 37 38

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

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} \
            AUTHORS CHANGES LICENSE README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}