set branch [join [lrange [split ${version} .] 0 1] .]
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 0a98bbac3979abef4b87251530101331 \
sha1 5c059745036e524f7a9ec17ea2f75648255c30ea \
rmd160 406942ee80d3da75a8c59f96c48ec2e14fc7d602
if {${name} ne ${subport}} {
depends_lib-append port:fftw-3 \
patchfiles patch-setup.py.diff
reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/setup.py
if {${name} eq ${subport}} {
livecheck.url ${homepage}
livecheck.regex {Latest version is (\d+(?:\.\d+)*)}