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

Last change on this file was 144233, checked in by dstrubbe@…, 19 months ago

py-qutip: Use compilers portgroup for Fortran variants. Remove "required" variant +scientific for ipython which no longer exists. Probably CFLAGS etc should be set to configure.cflags not configure.cc_archflags etc.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144233 2016-01-05 03:12:14Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6PortGroup               active_variants 1.1
7PortGroup               compilers 1.0
8
9name                    py-qutip
10version                 3.1.0
11categories-append       science
12platforms               darwin
13license                 BSD
14maintainers             nomaintainer
15
16description             Quantum Toolbox in Python
17long_description        QuTiP is open-source software for simulating the dynamics of open quantum systems.
18
19homepage                http://qutip.org/
20master_sites            http://qutip.org/downloads/${version}/
21distname                qutip-${version}
22worksrcdir              qutip-${version}
23
24checksums               rmd160  21af2936a32bf6443eb2b6d1d4075e8a85e355da \
25                        sha256  078399c9830c011ec189db222fcd45f71d2a135800874784d8386d67b4357402
26
27python.versions         27 34
28
29# py-scipy is not universal
30if {${name} ne ${subport}} {
31    compilers.choose    fc f77 f90
32    compilers.setup     require_fortran
33
34    depends_lib-append  port:py${python.version}-cython \
35                        port:py${python.version}-ipython \
36                        port:py${python.version}-matplotlib \
37                        port:py${python.version}-numpy \
38                        port:py${python.version}-scipy
39
40    require_active_variants py${python.version}-ipython "notebook parallel"
41    require_active_variants py${python.version}-matplotlib latex
42
43    use_parallel_build  no
44
45    python.add_archflags    no
46    universal_variant       no
47
48    build.args
49    build.post_args-append  --with-f90mc
50
51    # why only archflags?
52    build.env-append CFLAGS="${configure.cc_archflags}" \
53                     OBJCFLAGS="${configure.objc_archflags}" \
54                     CXXFLAGS="${configure.cxx_archflags}" \
55                     FFLAGS="${configure.f77_archflags}" \
56                     F90FLAGS="${configure.f90_archflags}" \
57                     FCFLAGS="${configure.fc_archflags}" \
58                     LDFLAGS="-undefined dynamic_lookup -bundle ${configure.ld_archflags}"
59
60    livecheck.type      none
61} else {
62    livecheck.type      regex
63    livecheck.url       ${homepage}
64    livecheck.regex     {qutip-([0-9\.]+)\.tar\.gz}
65}
66
Note: See TracBrowser for help on using the repository browser.