# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 125816 2014-09-27 01:37:53Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-scikits-audiolab
version             0.11.0
maintainers         nomaintainer

categories-append   science audio
license             LGPL-2.1+
description         Audiolab is a python toolbox to read/write audio files from numpy arrays
long_description    ${description}. \
                    It gives SciPy the equivalent of Matlab wavread, wavwrite, etc... as well \
                    as soundsc on the supported platforms. Audiolab supports all format supported \
                    by libsndfile, including wav, aiff, ircam files, and flac

platforms           darwin

homepage            http://scikits.appspot.com/audiolab
master_sites        https://pypi.python.org/packages/source/s/scikits.audiolab/
distname            scikits.audiolab-${version}

checksums           md5     f93f17211c7763d8631e0d10f37471b0 \
                    sha1    c646429d44b9824aa0d78e11ff22172f93e0a0f1 \
                    rmd160  3f86eb15b9c30256a6793b6943f74a5e28a4c23a

python.versions     26

if {$subport ne $name} {
    depends_lib-append  port:libsndfile \
                        port:py${python.version}-numpy \
                        port:py${python.version}-scikits-module

    post-destroot {
        # scikits/__init__.py is provided by scikits-module
        file delete ${destroot}${python.pkgd}/scikits/__init__.py
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     <i>version (.*)</i>
}
