1 | # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-scikits-bvp_solver |
---|
8 | version 1.1 |
---|
9 | categories-append science |
---|
10 | license BSD |
---|
11 | platforms darwin |
---|
12 | |
---|
13 | maintainers macsforever2000 openmaintainer |
---|
14 | |
---|
15 | description bvp_solver is a Python package for solving two-point boundary value problems. |
---|
16 | |
---|
17 | long_description scikits.bvp_solver is a python package for solving two point boundary value \ |
---|
18 | problems which is based on a modified version of the BVP_SOLVER Fortran package. |
---|
19 | |
---|
20 | homepage http://packages.python.org/scikits.bvp_solver/ |
---|
21 | master_sites http://pypi.python.org/packages/source/s/scikits.bvp_solver/ |
---|
22 | |
---|
23 | distname scikits.bvp_solver-${version} |
---|
24 | |
---|
25 | # md5 checksum comes from the source site |
---|
26 | checksums md5 894a566a3080ea6fe0e0b0c17fc628a7 \ |
---|
27 | rmd160 903e53a0b4bf40d864abbdb83dc5d008a3e1c874 \ |
---|
28 | sha256 3de71a39d97cdd61fea5693f7dd01b3820310d755f8e6669a3694b01eb787f1d |
---|
29 | |
---|
30 | # Only tested on python 2.7. |
---|
31 | python.versions 27 |
---|
32 | |
---|
33 | if {$subport != $name} { |
---|
34 | depends_lib-append port:py${python.version}-numpy |
---|
35 | |
---|
36 | variant gcc45 conflicts gcc46 gcc47 gcc48 description {Use the gcc45 compiler (enables fortran code)} { |
---|
37 | depends_lib-append port:gcc45 |
---|
38 | configure.compiler macports-gcc-4.5 |
---|
39 | configure.f90 ${prefix}/bin/gfortran-mp-4.5 |
---|
40 | } |
---|
41 | |
---|
42 | variant gcc46 conflicts gcc45 gcc47 gcc48 description {Use the gcc46 compiler (enables fortran code)} { |
---|
43 | depends_lib-append port:gcc46 |
---|
44 | configure.compiler macports-gcc-4.6 |
---|
45 | configure.f90 ${prefix}/bin/gfortran-mp-4.6 |
---|
46 | } |
---|
47 | |
---|
48 | variant gcc47 conflicts gcc45 gcc46 gcc48 description {Use the gcc47 compiler (enables fortran code)} { |
---|
49 | depends_lib-append port:gcc47 |
---|
50 | configure.compiler macports-gcc-4.7 |
---|
51 | configure.fc ${prefix}/bin/gfortran-mp-4.7 |
---|
52 | configure.f77 ${prefix}/bin/gfortran-mp-4.7 |
---|
53 | configure.f90 ${prefix}/bin/gfortran-mp-4.7 |
---|
54 | } |
---|
55 | |
---|
56 | variant gcc48 conflicts gcc45 gcc46 gcc47 description {Use the gcc48 compiler (enables fortran code)} { |
---|
57 | depends_lib-append port:gcc48 |
---|
58 | configure.compiler macports-gcc-4.8 |
---|
59 | configure.f90 ${prefix}/bin/gfortran-mp-4.8 |
---|
60 | } |
---|
61 | |
---|
62 | if {![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} { |
---|
63 | default_variants +gcc45 |
---|
64 | } |
---|
65 | |
---|
66 | # build.args config_fc \ |
---|
67 | # --fcompiler=${configure.f90} |
---|
68 | # --noarch |
---|
69 | |
---|
70 | build.env-append CC=${configure.cc} \ |
---|
71 | F90=${configure.f90} |
---|
72 | |
---|
73 | livecheck.type none |
---|
74 | } else { |
---|
75 | livecheck.type regex |
---|
76 | livecheck.url ${master_sites} |
---|
77 | livecheck.regex "bvp_solver-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|
78 | } |
---|