Ticket #44719: Portfile.6

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

Version bumb 2.1.2

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