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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | name cantera |
---|
9 | version 2.1.2 |
---|
10 | |
---|
11 | github.setup Cantera cantera 2.1.2 v |
---|
12 | |
---|
13 | categories science |
---|
14 | platforms darwin |
---|
15 | maintainers thomasfiala.de:macports openmaintainer |
---|
16 | license BSD |
---|
17 | |
---|
18 | description Cantera software package |
---|
19 | long_description Cantera is a suite of object-oriented software tools for \ |
---|
20 | problems involving chemical kinetics, thermodynamics, \ |
---|
21 | and/or transport processes. \ |
---|
22 | Fortran support is disabled by install using MacPorts |
---|
23 | |
---|
24 | homepage https://cantera.github.io/docs/sphinx/html/index.html |
---|
25 | |
---|
26 | checksums rmd160 2695265cff75cb0777ad67e6da64abf34d43c1a1 \ |
---|
27 | sha256 a268dddeff11dfe859d2e7d2cac9a300d85722d151134e3910a08d971d5703be |
---|
28 | |
---|
29 | depends_lib-append port:py${python.version}-numpy \ |
---|
30 | port:py${python.version}-cython |
---|
31 | |
---|
32 | depends_build-append port:scons |
---|
33 | |
---|
34 | python.versions 27 |
---|
35 | |
---|
36 | use_configure no |
---|
37 | |
---|
38 | build.cmd ${prefix}/bin/scons install |
---|
39 | build.target |
---|
40 | build.args prefix=${prefix} \ |
---|
41 | CC=${configure.cc} \ |
---|
42 | CXX=${configure.cxx} \ |
---|
43 | f90_interface=n \ |
---|
44 | python_prefix=${python.prefix} \ |
---|
45 | stage_dir=${destroot} |
---|
46 | |
---|
47 | destroot { |
---|
48 | eval move [glob ${destroot}${prefix}/man/man1/*] ${destroot}${prefix}/share/man/man1/ |
---|
49 | } |
---|
50 | |
---|
51 | notes " |
---|
52 | Cantera C++ demos are installed in: |
---|
53 | ${prefix}/share/cantera/samples |
---|
54 | Cantera python demos are installed in: |
---|
55 | ${python.pkgd}/cantera/examples |
---|
56 | Cantera data files are installed in: |
---|
57 | ${prefix}/share/cantera/data |
---|
58 | |
---|
59 | Try the following in python to find the equilibrium composition |
---|
60 | of a stoichiometric methane/air mixture at 1000 K and 1 atm: |
---|
61 | >>> import cantera as ct |
---|
62 | >>> g = ct.Solution('gri30.xml') |
---|
63 | >>> g.TPX = 1000, ct.one_atm, 'CH4:1, O2:2, N2:8' |
---|
64 | >>> g.equilibrate('TP') |
---|
65 | >>> g() |
---|
66 | |
---|
67 | Don't forget to set the appropriate python interpreter using |
---|
68 | sudo port select python |
---|
69 | " |
---|
70 | |
---|
71 | variant sundials description {Build with sundials support (default)} { |
---|
72 | depends_lib-append port:sundials |
---|
73 | |
---|
74 | build.args-append use_sundials=y \ |
---|
75 | sundials_include=${prefix}/include \ |
---|
76 | sundials_libdir=${prefix}/lib |
---|
77 | } |
---|
78 | |
---|
79 | variant old_python description {Install old Python interface} { |
---|
80 | build.args-append python_package='full' |
---|
81 | } |
---|
82 | |
---|
83 | default_variants +sundials |
---|