Ticket #47887: Portfile

File Portfile, 2.7 KB (added by macports@…, 9 years ago)

Portfile cantera-devel

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-devel
9version                 2.2.0b1
10
11github.setup            Cantera cantera 2.2.0b1 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                        cantera-devel represents the latest beta version of \
24                        cantera.
25
26homepage                https://cantera.github.io/docs/sphinx/html/index.html
27
28checksums               rmd160  dd1c69ed614942e7900bce4303ddee7b6216c5b6 \
29                        sha256  25e6c3f2140bf8cc04c6559928dd4aa1bad0dc1a9cc437d3ea3f82ac1a54b393
30
31conflicts               cantera
32
33depends_lib-append      port:py${python.version}-numpy \
34                        port:py${python.version}-cython
35
36depends_build-append    port:scons
37
38python.versions         27
39
40use_configure           no
41
42build.cmd               ${prefix}/bin/scons install
43build.target
44build.args              prefix=${prefix} \
45                        CC=${configure.cc} \
46                        CXX=${configure.cxx} \
47                        f90_interface=n \
48                        python_prefix=${python.prefix} \
49                        stage_dir=${destroot}
50
51destroot                {}
52
53notes "
54Cantera C++ demos are installed in:
55${prefix}/share/cantera/samples
56Cantera python demos are installed in:
57${python.pkgd}/cantera/examples
58Cantera data files are installed in:
59${prefix}/share/cantera/data
60
61Try the following in python to find the equilibrium composition
62of a stoichiometric methane/air mixture at 1000 K and 1 atm:
63>>> import cantera as ct
64>>> g = ct.Solution('gri30.xml')
65>>> g.TPX = 1000, ct.one_atm, 'CH4:1, O2:2, N2:8'
66>>> g.equilibrate('TP')
67>>> g()
68
69Don't forget to set the appropriate python interpreter using
70sudo port select python
71"
72
73variant sundials description {Build with sundials support (default)} {
74    depends_lib-append      port:sundials
75
76    build.args-append       use_sundials=y \
77                            sundials_include=${prefix}/include \
78                            sundials_libdir=${prefix}/lib
79}
80
81default_variants    +sundials