# $Id: Portfile 63803 2010-02-15 19:06:21Z ram@macports.org $

PortSystem    1.0
PortGroup     python26 1.0

name          py26-pyfftw3
version       0.2
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/${branch}/+download/
distname      PyFFTW3-${version}

checksums     md5 41abaf57bc86bf57e069c95e78292092 \
              sha1 b59c9e44e8c2b9558ed026d1484d4a09c2bbdbe7 \
              rmd160 927c37576830df24ad1107efd007c3a1f9b784f2

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+)*)}
