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