# -*- 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-aspects
version             1.3
revision            0
platforms           darwin
maintainers         nomaintainer
description         Light-weight Approach to Aspect Oriented Programming in Python
long_description    ${description}
license             LGPL-2.1+

python.versions     27

homepage            https://pypi.org/project/python-aspects/
master_sites        macports_distfiles
distname            python-aspects-${version}
livecheck.type      none

checksums           rmd160  2366ad4fc39dc202c6b88f3d680eab2ae6bbf1e2 \
                    sha256  c012fadc798c3fa0f43b30193d7c0fddcbc0f003f3b51c80d4519112ee15d3ed \
                    size    24485

supported_archs     noarch

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -m 0644 ${worksrcpath}/LICENSE.txt \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath}/examples httpget_example.py \
            timeout_advice.py timeout_example.py tracer_advice.py \
            tracer_example.py typecheck_advice.py typecheck_example.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
