Ticket #37642: Portfile

File Portfile, 3.0 KB (added by mf2k (Frank Schima), 12 years ago)
Line 
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
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    py-scikits-bvp_solver
8version                 1.1
9categories-append       science
10license                 BSD
11platforms               darwin
12
13maintainers             macsforever2000 openmaintainer
14
15description             bvp_solver is a Python package for solving two-point boundary value problems.
16
17long_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
20homepage                http://packages.python.org/scikits.bvp_solver/
21master_sites            http://pypi.python.org/packages/source/s/scikits.bvp_solver/
22
23distname                scikits.bvp_solver-${version}
24
25# md5 checksum comes from the source site
26checksums               md5     894a566a3080ea6fe0e0b0c17fc628a7 \
27                        rmd160  903e53a0b4bf40d864abbdb83dc5d008a3e1c874 \
28                        sha256  3de71a39d97cdd61fea5693f7dd01b3820310d755f8e6669a3694b01eb787f1d
29
30# Only tested on python 2.7.
31python.versions         27
32
33if {$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}