2010-03-14 09:05:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SagaCpp < Formula
|
2010-11-03 08:42:30 +00:00
|
|
|
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
|
2010-03-14 09:05:06 +00:00
|
|
|
homepage 'http://saga.cct.lsu.edu'
|
2010-11-03 08:42:30 +00:00
|
|
|
md5 'd018e17c03db7821f6e3ab30c281067d'
|
2010-03-14 09:05:06 +00:00
|
|
|
|
|
|
|
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
|