# $Id: Portfile 73013 2010-11-01 03:16:35Z ram@macports.org $

PortSystem    1.0
PortGroup     python26 1.0

name          py26-pyfftw3
version       0.2.1
set branch    [join [lrange [split ${version} .] 0 1] .]
categories    python math
platforms     darwin
maintainers   ram openmaintainer

description   Python bindings to FFTW3
long_description  Python bindings to the FFTW3 C-library for computing \
  discrete Fourier transforms.

homepage      https://launchpad.net/pyfftw
master_sites  http://launchpad.net/pyfftw/trunk/${version}/+download/
distname      PyFFTW3-${version}

checksums     md5     0066be45345591a6b4a97eb3779c7346 \
              sha1    581f5fa3c5e2b74cafab468eeb95d6bb4d7d4628 \
              rmd160  2d85e95b5347d938e833cceda8de2eeea480cff2

depends_lib-append  port:fftw-3 \
                    port:fftw-3-single \
                    port:fftw-3-long

patchfiles    patch-setup.py.diff

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

python.link_binaries no

universal_variant no

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {Latest version is (\d+(?:\.\d+)*)}
