# -*- 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 82755 2011-08-19 20:43:18Z robitaille@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-idlsave
version             0.9.7
maintainers         robitaille

categories-append   science
description         IDLSave - a python module to read IDL 'save' files
long_description    IDLSave is a pure Python module to import variables \
                    from IDL 'save' files (e.g. .sav) into Python, and does \
                    not require IDL to work. It has a very simple command-line \
                    interface, and converts all IDL variables to python types. \
                    Arrays are converted to Numpy arrays, and Structures are \
                    converted to Numpy record arrays.

platforms           darwin
license             MIT

homepage            http://astrofrog.github.com/idlsave/
master_sites        http://cloud.github.com/downloads/astrofrog/idlsave/
distname            IDLSave-${version}
checksums           md5  8364d1271231ec4b9e7fd75bc9c630a1 \
                    sha1  42bcc0957feacf3a1f7bcc915083c62a3bc71b15 \
                    rmd160  d55cd2f87c7842c36e87700050e88dff6d2e53f8

python.versions     25 26 27
python.default_version 27

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