# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 67144 2010-04-30 05:28:32Z dh@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-numpy
version             1.4.1
categories          python
platforms           darwin
maintainers         dh 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 5c7b5349dc3161763f7f366ceb96516b \
                    sha1 ec6078aa09acbcca3d90f9f36353fc83e7e1daa0 \
                    rmd160 a0bbebd1138ffc93517095e3c06459cd9744a9d6

patchfiles          patch-f2py_setup.py.diff

depends_lib-append  port:fftw-3 \
                    port:py-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 {
  if {${os.platform} == "darwin" && ${os.major} < 10} {
    move ${destroot}${prefix}/bin/f2py ${destroot}${prefix}/bin/f2py${python.branch}
  }
}

livecheck.distname  NumPy
