Ticket #44719: Portfile.7

File Portfile.7, 2.7 KB (added by macports@…, 10 years ago)

Cantera 2.1.2 on GitHub

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$
3
4PortSystem              1.0
5PortGroup               python 1.0
6PortGroup               github 1.0
7
8name                    cantera
9version                 2.1.2
10
11github.setup            Cantera cantera 2.1.2 v
12
13categories              science
14platforms               darwin
15maintainers             thomasfiala.de:macports openmaintainer
16license                 BSD
17
18description             Cantera software package
19long_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
24homepage                https://cantera.github.io/docs/sphinx/html/index.html
25
26checksums               rmd160  2695265cff75cb0777ad67e6da64abf34d43c1a1 \
27                        sha256  a268dddeff11dfe859d2e7d2cac9a300d85722d151134e3910a08d971d5703be
28
29depends_lib-append      port:py${python.version}-numpy \
30                        port:py${python.version}-cython
31
32depends_build-append    port:scons
33
34python.versions         27
35
36use_configure           no
37
38build.cmd               ${prefix}/bin/scons install
39build.target
40build.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
47destroot {
48    eval move [glob ${destroot}${prefix}/man/man1/*] ${destroot}${prefix}/share/man/man1/
49}
50
51notes "
52Cantera C++ demos are installed in:
53${prefix}/share/cantera/samples
54Cantera python demos are installed in:
55${python.pkgd}/cantera/examples
56Cantera data files are installed in:
57${prefix}/share/cantera/data
58
59Try the following in python to find the equilibrium composition
60of 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
67Don't forget to set the appropriate python interpreter using
68sudo port select python
69"
70
71variant 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
79variant old_python description {Install old Python interface} {
80    build.args-append   python_package='full'
81}
82
83default_variants    +sundials