Ticket #33625: Portfile-py27-pymc

File Portfile-py27-pymc, 3.4 KB (added by Russell-Jones-OxPhys (Russell Jones), 13 years ago)

Portfile for py27-pymc with gcc46 variant added

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           python27 1.0
6
7name                py27-pymc
8version             2.0
9maintainers         mnick
10license             BSD
11
12description         Bayesian statistical models and fitting algorithms for python
13long_description    PyMC is a python module that implements Bayesian statistical models \
14                    and fitting algorithms, including Markov chain Monte Carlo. \
15                    Its flexibility makes it applicable to a large suite of problems as well \
16                    as easily extensible. Along with core sampling functionality, \
17                    PyMC includes methods for summarizing output, plotting, goodness-of-fit and \
18                    convergence diagnostics.
19
20platforms           darwin
21
22homepage            http://code.google.com/p/pymc/
23master_sites        googlecode:pymc
24distname            pymc-${version}
25use_zip             yes
26
27checksums           md5     fc24deb12a72903832c450a913264603 \
28                    sha1    228843d16be02dc6f26f2bdfffc8846801f1d8ee \
29                    rmd160  6e7775cad5aa185b190e89b0d6a4fed48adf335a \
30                    patch-pymc-gibbsit.f.diff \
31                    rmd160  96a706272098226213490a33963e81d916cd3fe3 \
32                    sha256  fe277471542bacf6f9a59c2ec6f8a20e17b0614850436b3d7cfb301e37691613 \
33                    pymc-2.0.zip \
34                    rmd160  6e7775cad5aa185b190e89b0d6a4fed48adf335a \
35                    sha256  8f06d7be2bc74e25243dfe85f652e6a7bbc1617513c7ce720f3cd38c32002cdc
36
37patchfiles-append   patch-pymc-gibbsit.f.diff
38depends_lib-append  port:py27-numpy
39python.add_archflags no
40
41variant gcc42 description {create Fortran wrappers using gcc42} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
42    depends_lib-append    port:gcc42
43    set fc                ${prefix}/bin/gfortran-mp-4.2
44    build.env-append      F77=${fc} F90=${fc}
45}
46
47variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc42 gcc44 gcc45 gcc46 g95 {
48    depends_lib-append    port:gcc43
49    set fc                ${prefix}/bin/gfortran-mp-4.3
50    build.env-append      F77=${fc} F90=${fc}
51}
52
53variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc42 gcc43 gcc45 gcc46 g95 {
54    depends_lib-append    port:gcc44
55    set fc                ${prefix}/bin/gfortran-mp-4.4
56    build.env-append      F77=${fc} F90=${fc}
57}
58
59variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc42 gcc43 gcc44 gcc46 g95 {
60    depends_lib-append    port:gcc45
61    set fc                ${prefix}/bin/gfortran-mp-4.5
62    build.env-append      F77=${fc} F90=${fc}
63}
64
65variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc42 gcc43 gcc44 gcc45 g95 {
66    depends_lib-append    port:gcc46
67    set fc                ${prefix}/bin/gfortran-mp-4.6
68    build.env-append      F77=${fc} F90=${fc}
69}
70
71
72variant g95 description {create Fortran wrappers using f95} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 {
73    depends_lib-append    port:g95
74    set fc                ${prefix}/bin/g95
75    build.env-append      F77=${fc} F90=${fc}
76}
77
78if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset g95]  && ![variant_isset gcc46]} {
79           default_variants +gcc44
80}
81
82livecheck.regex         <a href=\"http://pymc.googlecode.com/files/pymc-(\[\\d\.\]+)${extract.suffix}