# $Id: Portfile 51955 2009-06-07 10:04:10Z arthurk@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-numpy
version             1.3.0
categories          python
platforms           darwin
maintainers         ram openmaintainer
description         The core utilities for the scientific library scipy for Python
long_description    ${description}

homepage            http://numpy.scipy.org/
master_sites        sourceforge:numpy
distname            numpy-${version}

checksums           md5 3f7773ff0971a5ebb8591536d8ec7bd6 \
                    sha1 c04998a1fbf7d990c9a2b99a7b62486012c570ac \
                    rmd160 a75155d2014204e16c59857b92356353505c39b9

patchfiles          patch-g95_link.diff \
                    patch-f2py_setup.py.diff

depends_lib-append  port:fftw-3 \
                    port:py25-nose

post-patch {
  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/numpy/distutils/fcompiler/g95.py
  reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" ${worksrcpath}/numpy/f2py/setup.py
}

post-destroot {
  move ${destroot}${prefix}/bin/f2py ${destroot}${prefix}/bin/f2py${python.branch}
}

livecheck.distname  NumPy
