# -*- 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
# $Id: Portfile 106952 2013-06-12 14:14:33Z jmr@macports.org $

PortSystem          1.0
PortGroup python    1.0

name                py-aspects
version             1.3
platforms           darwin
maintainers         nomaintainer
description         Light-weight Approach to Aspect Oriented Programming in Python
long_description    ${description}
license             LGPL-2.1+

python.versions     25 26 27

homepage            http://www.cs.tut.fi/~ask/aspects/
master_sites        http://www.cs.tut.fi/~ask/aspects/
distname            python-aspects-${version}

checksums           rmd160  2366ad4fc39dc202c6b88f3d680eab2ae6bbf1e2 \
                    sha256  c012fadc798c3fa0f43b30193d7c0fddcbc0f003f3b51c80d4519112ee15d3ed

supported_archs     noarch

if {$subport != $name} {
    post-destroot   {
        xinstall -m 644 ${worksrcpath}/LICENSE.txt \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -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
    }

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   ${homepage}
    livecheck.regex aspects-(\[0-9\.\]+).tar.gz
}
