# -*- 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-pyquery
version             2.0.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         A jQuery-like library for Python
long_description    Pyquery allows you to make jQuery queries on XML \
                    documents.

homepage            https://github.com/gawel/pyquery

checksums           rmd160  dc1d118cff0217c399899c9ba5940ea812fee7f9 \
                    sha256  963e8d4e90262ff6d8dec072ea97285dc374a2f69cad7776f4082abcf6a1d8ae \
                    size    45210

python.versions     310 311 312

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-lxml \
                    port:py${python.version}-cssselect

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