source: trunk/dports/python/py-scipy/Portfile @ 32324

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

py-scipy/py25-scipy: add no_gnuplot variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 32324 2007-12-24 20:14:54Z ram@macports.org $
2
3PortSystem 1.0
4PortGroup  python24 1.0
5
6name                    py-scipy
7version                 0.6.0
8revision                2
9categories              python
10platforms               darwin
11maintainers             ram openmaintainer
12description             An opensource library of scientific tools for Python
13long_description        ${description}
14
15homepage                http://www.scipy.org/
16master_sites            sourceforge:scipy
17distname                scipy-${version}
18
19checksums               md5 417adf3bfe03f4c23c9fb265018e545c \
20                        sha1 65eff3e245f59b2af9adc70fad11daa40f0ba3e0 \
21                        rmd160 391f2067f7dcc133e7e8622df93a2a0cd5ebbe5b
22
23depends_lib-append      lib:gnuplot:gnuplot \
24                        port:py-numpy
25
26worksrcdir              ${distname}
27
28build.env               CCFLAGS="-I${prefix}/include -L${prefix}/lib"
29
30variant g95 conflicts gcc42 gcc43 description "Use g95 as fortran compiler" {
31  depends_lib-append    port:g95
32  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/g95 --f90exec ${prefix}/bin/g95"
33  build.cmd-append      ${fc_options}
34  destroot.cmd-append   ${fc_options}
35}
36
37variant gcc42 conflicts g95 gcc43 description "Use gfortran as fortran compiler" {
38  depends_lib-append    port:gcc42
39  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2"
40  build.cmd-append      ${fc_options}
41  destroot.cmd-append   ${fc_options}
42}
43
44variant gcc43 conflicts g95 gcc42 description "Use gfortran as fortran compiler" {
45  depends_lib-append    port:gcc43
46  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
47  build.cmd-append      ${fc_options}
48  destroot.cmd-append   ${fc_options}
49}
50
51variant no_gnuplot description "Don't depend on GNUPlot" {
52  depends_lib-delete    lib:gnuplot:gnuplot
53}
54
55if { ![variant_isset g95] && ![variant_isset gcc42] && ![variant_isset gcc43] } {
56  default_variants      +g95
57}
Note: See TracBrowser for help on using the repository browser.