# -*- 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-yapsy
python.rootname     Yapsy
version             1.12.2
revision            0

platforms           darwin
supported_archs     noarch
license             BSD
maintainers         {phas.ubc.ca:jfcaron @jfcaron3} openmaintainer

description         Yet Another Plugin SYstem
long_description    Yapsy’s main purpose is to offer a way to easily \
                    design a plugin system in Python, and motivated by \
                    the fact that many other Python plugin system are \
                    either too complicated for a basic use or depend \
                    on a lot of libraries.

homepage            http://yapsy.sourceforge.net
master_sites        pypi:Y/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  ece6c729726ebfcc4b98ad4980b0dc33b87280d4 \
                    sha256  d8113d9f9c74eacf65b4663c9c037d278c9cb273b5eee5f0e1803baeedb23f8b \
                    size    83986

python.versions     27 35 36 37

if {${subport} ne ${name}} {
    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} LICENSE.txt \
           CHANGELOG.txt README.txt ${destroot}${docdir}
    }

    test.run        yes

    livecheck.type  none
}
