# -*- 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-nibabel
version                 2.0.0
categories              python
platforms               darwin
license                 MIT
maintainers             nomaintainer
description             Access a cacophony of neuro-imaging file formats

long_description        Nibabel provides read and write access to some common medical and \
    neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2), GIFTI, NIfTI1, MINC, \
    MGH and ECAT as well as PAR/REC. We can read and write Freesurfer geometry, and read \
    Freesurfer morphometry and annotation files. There is some very limited support for \
    DICOM. NiBabel is the successor of PyNIfTI.

homepage                http://nipy.org/nibabel
master_sites            pypi:n/nibabel/
distname                nibabel-${version}

checksums               rmd160  b4d284328e2e9cb8f177bbfb73db45f4cfb76405 \
                        sha256  a2a4baedb490c6d0878b1950b569650cfa2ce65c24da4741817ca4069771103c

python.versions         27 34 35 36

if {${name} ne ${subport}} {
    depends_lib         port:py${python.version}-numpy

    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
    }

    livecheck.type      none
} else {
    livecheck.url       https://pypi.python.org/pypi/nibabel
    livecheck.regex     nibabel-(\[0-9.\]+)${extract.suffix}
}