# $Id: Portfile 87906 2011-12-11 23:37:12Z ram@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-pyfftw3 version 0.2.2 set branch [join [lrange [split ${version} .] 0 1] .] categories python math platforms darwin supported_archs noarch license GPL 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} python.default_version 27 python.versions 26 27 checksums md5 0a98bbac3979abef4b87251530101331 \ sha1 5c059745036e524f7a9ec17ea2f75648255c30ea \ rmd160 406942ee80d3da75a8c59f96c48ec2e14fc7d602 if {${name} != ${subport}} { 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 } if {${name} == ${subport}} { livecheck.type regex livecheck.url ${homepage} livecheck.regex {Latest version is (\d+(?:\.\d+)*)} } else { livecheck.type none }