diff options
| author | Ole Weidner | 2011-10-19 09:11:38 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-10-20 20:46:55 -0700 |
| commit | 81f8d7bed109c16108beafd0533b695e2779761d (patch) | |
| tree | 6c203a2ecc2cacf23daf5e99ed7cc21a00550e4c /Library/Formula | |
| parent | de84a6f8c19c144ea44b68e60c33acf830562812 (diff) | |
| download | homebrew-81f8d7bed109c16108beafd0533b695e2779761d.tar.bz2 | |
Revived & renamed previously defunct SAGA formula
After talking to Andre, the contributor of the originial (defunct) saga-cpp
Formula, we decided to re-create a formula for SAGA (The Simple API for Grid
Applications) following the proper SAGA namig scheme (saga-core instead of
saga-cpp). Another formual for saga-python will follow as soon as
http://faust.cct.lsu.edu/trac/saga/ticket/610 is fixed.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/saga-core.rb | 20 | ||||
| -rw-r--r-- | Library/Formula/saga-cpp.rb | 34 |
2 files changed, 20 insertions, 34 deletions
diff --git a/Library/Formula/saga-core.rb b/Library/Formula/saga-core.rb new file mode 100644 index 000000000..c5343f878 --- /dev/null +++ b/Library/Formula/saga-core.rb @@ -0,0 +1,20 @@ +require 'formula' + +class SagaCore < Formula + url 'http://download.saga.cct.lsu.edu/saga-core/saga-core-1.6.tgz' + head 'https://svn.cct.lsu.edu/repos/saga/core/trunk/', :using => :svn + homepage 'http://saga-project.org' + md5 'a5cda84bdae1f96646f39fda0aa7db73' + + depends_on 'boost' + depends_on 'postgresql' + + def install + args = ["--prefix=#{prefix}", + "--with-boost=#{HOMEBREW_PREFIX}", + "--with-postgresql=#{HOMEBREW_PREFIX}"] + + system "./configure", *args + system "make install" + end +end diff --git a/Library/Formula/saga-cpp.rb b/Library/Formula/saga-cpp.rb deleted file mode 100644 index 6b75822ab..000000000 --- a/Library/Formula/saga-cpp.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'formula' - -class SagaCpp < Formula - url 'http://static.saga.cct.lsu.edu/software/saga-core/saga-core-1.5.2.tgz' - head 'https://svn.cct.lsu.edu/repos/saga/core/trunk/', :using => :svn - homepage 'http://saga.cct.lsu.edu' - md5 'd018e17c03db7821f6e3ab30c281067d' - - depends_on 'boost' - depends_on 'sqlite' - depends_on 'xmlrpc-c' - - def install - # Don't depend on a Homebrew-built PostgreSQL; users can - # install the database however they like. - unless `/usr/bin/which pg_config`.size > 0 - opoo "PostgreSQL not found" - puts caveats - end - - system "./configure", "--prefix=#{prefix}", - "--with-boost=#{HOMEBREW_PREFIX}", - "--with-sqlite3=#{HOMEBREW_PREFIX}" - system "make install" - end - - def caveats - <<-EOS.undent - Saga will use PostgreSQL if it is installed. - You may want to install it first: - brew install postgresql - EOS - end -end |
