diff options
| author | Adam Vandenberg | 2012-03-10 18:25:11 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-10 18:25:11 -0800 |
| commit | 2890320c1e3ecd7da45c68bfe7cdeb55c7cf7281 (patch) | |
| tree | 435bb8f5b8407975d8b50315c8297a9112087912 /Library | |
| parent | 59cfef53ab2c1cb63788810e706206950773e54a (diff) | |
| download | homebrew-2890320c1e3ecd7da45c68bfe7cdeb55c7cf7281.tar.bz2 | |
cantera: style nit-picks
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cantera.rb | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/Library/Formula/cantera.rb b/Library/Formula/cantera.rb index 24bbc2e94..2d6b59726 100644 --- a/Library/Formula/cantera.rb +++ b/Library/Formula/cantera.rb @@ -1,21 +1,20 @@ require 'formula' class Cantera < Formula - url 'http://cantera.googlecode.com/files/cantera-1.8.0-beta.tar.gz' homepage 'http://code.google.com/p/cantera/' + url 'http://cantera.googlecode.com/files/cantera-1.8.0-beta.tar.gz' md5 '53d923922535c64b7e6b9f07bbfcf866' head 'http://cantera.googlecode.com/svn/cantera18/trunk/' depends_on 'numpy' => :python - depends_on 'graphviz' # for the reaction flux diagrams + depends_on 'graphviz' + # fixes the Makefiles in Cantera/cxx/demos/ that have broken install commands def patches - # fixes the Makefiles in Cantera/cxx/demos/ that have broken install commands DATA end def install - if MacOS.prefer_64_bit? # There is probably a better way to do this, but this seems to work for my purposes: ENV['CFLAGS'] += " -arch x86_64" @@ -56,18 +55,18 @@ class Cantera < Formula system "make install" end - def caveats; <<-EOS -The license, demos, tutorials, data, etc. can be found in: - #{prefix} + def caveats; <<-EOS.undent + The license, demos, tutorials, data, etc. can be found in: + #{prefix} -Try the following in python to find the equilibrium composition of a -stoichiometric methane/air mixture at 1000 K and 1 atm: ->>> import Cantera ->>> g=Cantera.GRI30() ->>> g.set(X='CH4:1, O2:2, N2:8', T=1000, P=Cantera.OneAtm) ->>> g.equilibrate('TP') ->>> g -EOS + Try the following in python to find the equilibrium composition of a + stoichiometric methane/air mixture at 1000 K and 1 atm: + >>> import Cantera + >>> g=Cantera.GRI30() + >>> g.set(X='CH4:1, O2:2, N2:8', T=1000, P=Cantera.OneAtm) + >>> g.equilibrate('TP') + >>> g + EOS end end |
