# -*- 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-whoosh
python.rootname     Whoosh
version             2.7.4
revision            0
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Fast pure-Python indexing and search library
long_description    \
    Whoosh is a fast, featureful full-text indexing and searching library \
    implemented in pure Python. Programmers can use it to easily add search \
    functionality to their applications and websites. Every part of how \
    Whoosh works can be extended or replaced to meet your needs exactly.

homepage            https://bitbucket.org/mchaput/whoosh/wiki/Home
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  f60b9fe6277f4b9a7aa48e3c7df2d6fff6390a36 \
                    sha256  7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83 \
                    size    968741

python.versions     27 36 37 38 39

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

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

    livecheck.type  none
}

subport py35-whoosh {
    # remove 2021-12-10
    replaced_by py36-whoosh
    PortGroup obsolete 1.0
}
