# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 119892 2014-05-09 15:39:35Z aronnax@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-pyfftw
version                 0.9.2
categories              python math
platforms               darwin
maintainers             aronnax openmaintainer
license                 GPL-3
description             pythonic python wrapper around FFTW
long_description \
    A pythonic wrapper around FFTW, the FFT library, presenting a unified \
    interface for all the supported transforms.

distname                pyFFTW-${version}
homepage                http://hgomersall.github.com/pyFFTW/
master_sites            http://pypi.python.org/packages/source/p/pyFFTW/
checksums               md5     34fcbc68afb8ebe5f040a02a8d20d565 \
                        rmd160  eef009d9f09a7c0778eefc72f342bb52f5789ba9 \
                        sha256  f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074

python.versions         27 32 33 34

if {${name} eq ${subport}} {
    livecheck.type      regex
    livecheck.url       {http://pypi.python.org/pypi?:action=doap&name=pyFFTW}
    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
} else {
    depends_lib-append  port:py${python.version}-numpy \
                        port:fftw-3 \
                        port:fftw-3-single \
                        port:fftw-3-long

    livecheck.type      none
}
