# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem	        1.0
PortGroup	        python 1.0

name                py-traits
version             4.2.0
categories-append   devel
license             BSD {PSF ZPL}
maintainers         gmail.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            https://github.com/enthought/traits
master_sites        http://www.enthought.com/repo/ets/
distname            traits-${version}

checksums           rmd160  1c6204a98ff71e2449f878124deaca80c646d22b \
                    sha256  ca90fe98f0cf33db8fec0d696cfe624e690907a6f70b9ec42081e51dddd420f5

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

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