# -*- 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 107428 2013-06-28 19:21:58Z ciserlohn@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-stfio
version             0.12.4
categories          python science
platforms           darwin
license             GPL-2
maintainers         gmx.de:christsc
description         Electrophysiology file support for Python
long_description    A Python module to read common electrophysiology file formats.
homepage            http://www.stimfit.org
master_sites        googlecode:stimfit
distname            stimfit-${version}

checksums           rmd160  042ef333806e960f5b18a911fe4a2ca96d9e4093 \
                    sha256  3ca98068941f0544fa869bdfc0aae3145ed811e76d237d361eef60f11dfadc0f

supported_archs     x86_64 i386

python.versions     25 26 27 31 32 33

if { ${subport} != ${name} } {
    depends_build   port:swig-python

    depends_lib     port:boost \
                    port:hdf5-18 \
                    port:py${python.version}-numpy

    configure.args  --disable-dependency-tracking \
                    --enable-module

    configure.python \
                    ${python.bin}

    use_configure   yes
    build.cmd       make
    build.target    
    destroot.cmd    make
    destroot.destdir \
                    DESTDIR=${destroot}

    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}
        xinstall -m 644 ${worksrcpath}/debian/copyright \
            ${worksrcpath}/COPYING ${docdir}
    }
}
