# -*- 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 89526 2012-02-01 17:31:32Z macsforever2000@macports.org $

PortSystem	1.0
PortGroup	python 1.0

name                py-traits
version             3.6.0
categories-append   devel
maintainers         vcn.com:jjstickel openmaintainer
description         The Enthought traits package
long_description    A trait is a type definition that can be used for normal\
    Python object attributes, giving the attributes\
    some additional characteristics.
platforms           darwin
homepage            http://code.enthought.com/projects/traits/
master_sites        http://www.enthought.com/repo/ets/
distname            Traits-${version}

checksums           md5     f20092b1de7c470f61cc95ff4f2090e2 \
                    sha1    7a068371c400bed3aae727575ed18b00188a629a \
                    rmd160  43a83ca0006ec854974cd705ebbc2d7dd80361a1

# Build fails on python 2.4 due to "from __future__ import absolute_import"
python.versions        25 26 27
python.default_version 25

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute
    depends_lib-append      port:py${python.version}-numpy \
                            port:py${python.version}-enthoughtbase
}
