# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 PortGroup python 1.0 github.setup Cantera cantera 2.2.0 v conflicts cantera-devel revision 2 subport cantera-devel { github.setup Cantera cantera 2.2.0b1 v conflicts cantera } categories science platforms darwin maintainers thomasfiala.de:macports openmaintainer license BSD description Cantera software package long_description Cantera is a suite of object-oriented software tools for \ problems involving chemical kinetics, thermodynamics, \ and/or transport processes. \ Fortran support is disabled by install using MacPorts homepage https://cantera.github.io/docs/sphinx/html/index.html checksums rmd160 67cd0391329ce5acfcbb52725aa74c2b13ccb0a1 \ sha256 d5f2d3e193e18ed8cb568f6a43ef1d1a41f910f01a349b71a1f5c36e2d918797 subport cantera-devel { checksums rmd160 dd1c69ed614942e7900bce4303ddee7b6216c5b6 \ sha256 25e6c3f2140bf8cc04c6559928dd4aa1bad0dc1a9cc437d3ea3f82ac1a54b393 } python.default_version 27 depends_lib-append port:py${python.version}-numpy \ port:py${python.version}-cython depends_build-append port:scons use_configure no build.cmd ${prefix}/bin/scons install build.target build.args prefix=${prefix} \ CC=${configure.cc} \ CXX=${configure.cxx} \ f90_interface=n \ python_prefix=${python.prefix} \ stage_dir=${destroot} destroot {} post-destroot { set bindir ${destroot}${prefix}/bin file attributes ${bindir}/ck2cti -permissions ugo+x file attributes ${bindir}/ctml_writer -permissions ugo+x file attributes ${bindir}/setup_cantera -permissions ugo+x } notes " Cantera C++ demos are installed in: ${prefix}/share/cantera/samples Cantera python demos are installed in: ${python.pkgd}/cantera/examples Cantera data files are installed in: ${prefix}/share/cantera/data Try the following in python to find the equilibrium composition of a stoichiometric methane/air mixture at 1000 K and 1 atm: >>> import cantera as ct >>> g = ct.Solution('gri30.xml') >>> g.TPX = 1000, ct.one_atm, 'CH4:1, O2:2, N2:8' >>> g.equilibrate('TP') >>> g() Don't forget to set the appropriate python interpreter using sudo port select python " variant sundials description {Build with sundials support (default)} { depends_lib-append port:sundials build.args-append use_sundials=y \ sundials_include=${prefix}/include \ sundials_libdir=${prefix}/lib } default_variants +sundials