# -*- 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
PortGroup           select 1.0
PortGroup           github 1.0

github.setup        eliben pss 1.42 v
revision            0
name                py-pss

categories-append   devel
platforms           darwin
license             public-domain
supported_archs     noarch
maintainers         nomaintainer

description         pss is a tool for grepping through source code
long_description    ${description}

checksums           rmd160  232136ab0c1e664f6760689a00e0aeaae9c19247 \
                    sha256  5b7a70906b5dd4aa2466a0455961b66c39a3b9ca6b15d2f30a4f95aebb91b7fa \
                    size    41362

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            CHANGES ${destroot}${docdir}
    }

    depends_run     port:py-pss_select
    select.group    py-pss
    select.file     ${filespath}/py${python.version}-pss

    livecheck.type  none

    notes "
To make the Python ${python.branch} version of py-pss the one that is run\
when you execute the commands without a version suffix, e.g. 'pss', run:

port select --set ${select.group} [file tail ${select.file}]
"
}
