# -*- 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 105878 2013-05-09 05:34:02Z aronnax@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-pyfftw
version                 0.9.0
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               rmd160  553b1a622493520199310f52ab8071d8cb274c29 \
                        sha256  6b97a35dc9018e40b388963d5267e9a519820e69f2931e434e28ca66ba614dfb

python.versions         27 32 33

if {${subport} == ${name}} {
    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
}
