From 2890320c1e3ecd7da45c68bfe7cdeb55c7cf7281 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 10 Mar 2012 18:25:11 -0800 Subject: cantera: style nit-picks --- Library/Formula/cantera.rb | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3