source: trunk/dports/python/py-numpy/Portfile @ 33719

Last change on this file since 33719 was 33719, checked in by ram@…, 12 years ago

py-numpy/py25-numpy: apply patch to fix f2py error when compiling a
Fortran module block, closes #14171

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 33719 2008-02-04 00:58:16Z ram@macports.org $
2
3PortSystem              1.0
4PortGroup               python24 1.0
5
6name                    py-numpy
7version                 1.0.4
8revision                7
9categories              python
10platforms               darwin
11maintainers             ram openmaintainer
12description             The core utilities for the scientific library scipy for Python
13long_description        ${description}
14
15homepage                http://numpy.scipy.org/
16master_sites            sourceforge:numpy
17distname                numpy-${version}
18
19checksums               md5 8f011e9d7697da570efaac61c51725e0 \
20                        sha1 9a1f09358c3310cf990eecd06dc2eb54aec78321 \
21                        rmd160 8ac192ad3f36a94a45c26e0c4028fdbb744881f5
22
23patchfiles              patch-g95_link.diff \
24                        patch-f2py_rules.py.diff
25
26depends_lib-append      port:fftw-3
27
28post-patch {
29  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/numpy/distutils/fcompiler/g95.py
30}
31
32variant g95 conflicts gcc42 description "Use g95 as fortran compiler" {
33  depends_lib-append    port:g95
34  build.cmd-append      "config_fc --fcompiler g95 --f77exec ${prefix}/bin/g95 --f90exec ${prefix}/bin/g95"
35}
36
37variant gcc42 conflicts g95 description "Use gfortran-mp-4.2 as fortran compiler" {
38  depends_lib-append    port:gcc42
39  build.cmd-append      "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2"
40}
41
42if { ![variant_isset g95] && ![variant_isset gcc42] } {
43  default_variants      +g95
44}
Note: See TracBrowser for help on using the repository browser.