source: trunk/dports/python/py-pymc/Portfile

Last change on this file was 144694, checked in by dstrubbe@…, 21 months ago

py-pymc: Use compilers portgroup for Fortran variants rather than the obsolete recipe. Also, it allows a simple way to enforce the same Fortran compiler was used for numpy, as was reported to be necessary to avoid a test failure (ticket #49747). Maintainer timeout, ticket #50230.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8;  mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144694 2016-01-15 18:56:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           github 1.0
7PortGroup           compilers 1.0
8
9github.setup        pymc-devs pymc 2.3.6 v
10name                py-pymc
11maintainers         hum openmaintainer
12license             {AFL-3 BSD}
13
14description         Bayesian statistical models and fitting algorithms for python
15long_description    PyMC is a python module that implements Bayesian statistical models \
16                    and fitting algorithms, including Markov chain Monte Carlo. \
17                    Its flexibility makes it applicable to a large suite of problems as well \
18                    as easily extensible. Along with core sampling functionality, \
19                    PyMC includes methods for summarizing output, plotting, goodness-of-fit and \
20                    convergence diagnostics.
21
22platforms           darwin
23
24python.versions     26 27 33 34
25
26if {${name} ne ${subport}} {
27    depends_lib-append  port:py${python.version}-numpy
28    compilers.enforce_fortran  port:py${python.version}-numpy
29
30    checksums       rmd160  b4eac13ae502bb3e8ec3f314deb73750edcb6a8a \
31                    sha256  9c33a3430e8d55dbe0beaa79394e866f9115c4ec84615e24dabc154334538a6a
32
33    compilers.choose   fc f77 f90
34    compilers.setup    require_fortran -dragonegg
35
36    if {[gcc_variant_isset]} {
37        build.cmd "${build.cmd} config_fc --fcompiler gfortran"
38    } elseif {[variant_isset g95]} {
39        build.cmd "${build.cmd} config_fc --fcompiler g95"
40    }
41
42    # Insert my own archflags, so I can edit LDFLAGS
43    python.add_archflags no
44
45    if {[variant_exists universal] && [variant_isset universal]} {
46        build.env-append CFLAGS="${configure.universal_cflags}" \
47                        OBJCFLAGS="${configure.universal_cflags}" \
48                        CXXFLAGS="${configure.universal_cxxflags}" \
49                        LDFLAGS="-undefined dynamic_lookup -bundle ${configure.universal_ldflags}"
50    } else {
51        build.env-append CFLAGS="${configure.cc_archflags}" \
52                        OBJCFLAGS="${configure.objc_archflags}" \
53                        CXXFLAGS="${configure.cxx_archflags}" \
54                        FFLAGS="${configure.f77_archflags}" \
55                        F90FLAGS="${configure.f90_archflags}" \
56                        FCFLAGS="${configure.fc_archflags}" \
57                        LDFLAGS="-undefined dynamic_lookup -bundle ${configure.ld_archflags}"
58    }
59
60    livecheck.type          none
61}
Note: See TracBrowser for help on using the repository browser.