# -*- 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-codetools
version             4.0.0
revision            1
categories-append   devel
license             BSD
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer

description         Code analysis and execution tools

long_description    The codetools project includes packages that simplify \
                    meta-programming and help the programmer separate data from\
                    code in Python. This library contains classes that allow\
                    defining simple snippets, or blocks, of Python code,\
                    analyze variable dependencies in the code block, and use\
                    these dependencies to construct or restrict an execution\
                    graph. These (restricted) code blocks can then be executed\
                    in any namespace. However, this project also provides a\
                    Traits-event-enhanced namespace, called a context, which\
                    can be used in place of a vanilla namespace to allow\
                    actions to be performed whenever variables are assigned\
                    or retrieved from the namespace. This project is used as\
                    the foundation for the BlockCanvas project.

platforms           darwin
supported_archs     noarch
homepage            http://code.enthought.com/projects/code_tools/
master_sites        http://www.enthought.com/repo/ets/
distname            codetools-${version}

checksums           md5    8ee5861eff7bf521dfc2b540aa7001a1 \
                    sha1   d8b8fde76be70204c65843ed47bbb7ef7ff8d780 \
                    rmd160 2e616bbbb179cf0dbc8d6463d7762a76b7d37ca3

python.versions     27

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