[125605] trunk/dports/science
mf2k at macports.org
mf2k at macports.org
Mon Sep 22 12:25:31 PDT 2014
Revision: 125605
https://trac.macports.org/changeset/125605
Author: mf2k at macports.org
Date: 2014-09-22 12:25:31 -0700 (Mon, 22 Sep 2014)
Log Message:
-----------
cantera: New port. (#44719)
Added Paths:
-----------
trunk/dports/science/cantera/
trunk/dports/science/cantera/Portfile
Added: trunk/dports/science/cantera/Portfile
===================================================================
--- trunk/dports/science/cantera/Portfile (rev 0)
+++ trunk/dports/science/cantera/Portfile 2014-09-22 19:25:31 UTC (rev 125605)
@@ -0,0 +1,81 @@
+# -*- 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 python 1.0
+
+name cantera
+version 2.1.2
+
+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
+
+master_sites sourceforge:project/cantera/cantera/${version}
+checksums rmd160 39cded4062438402580dc0dd88b6385fac55efe3 \
+ sha256 910ef1cff2be7b618abb3eb4a24636b2acd35419935790932489f7216a54a57b
+
+depends_lib-append port:py${python.version}-numpy \
+ port:py${python.version}-cython
+
+depends_build-append port:scons
+
+python.versions 27
+
+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 {
+ eval move [glob ${destroot}${prefix}/man/man1/*] ${destroot}${prefix}/share/man/man1/
+}
+
+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
+}
+
+variant old_python description {Install old Python interface} {
+ build.args-append python_package='full'
+}
+
+default_variants +sundials
Property changes on: trunk/dports/science/cantera/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140922/32e2d4d2/attachment.html>
More information about the macports-changes
mailing list