diff options
| author | luckow | 2010-03-14 10:05:06 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-07 21:26:00 -0700 |
| commit | 78e8dcf852b892edd2670a5212811f05ef36b293 (patch) | |
| tree | 4e39a164571c1e3530c2767c50591cb900f6640c /Library | |
| parent | efd11dafe99f5cf692925c3353f8052866794e8c (diff) | |
| download | homebrew-78e8dcf852b892edd2670a5212811f05ef36b293.tar.bz2 | |
New formula: saga-cpp
SAGA is an API that provides the basic functionality required to build
distributed applications, tools and frameworks so as to be independent of the
details of the underlying infrastructure.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Don't depend directly on PostgreSQl, so the user can use a non-Homebrew
version of the database. But warn if we can't find a pg-config.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/saga-cpp.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/saga-cpp.rb b/Library/Formula/saga-cpp.rb new file mode 100644 index 000000000..8df91ec06 --- /dev/null +++ b/Library/Formula/saga-cpp.rb @@ -0,0 +1,37 @@ +require 'formula' + +class SagaCpp <Formula + url 'http://downloads.sourceforge.net/project/saga/SAGA%20C%2B%2B%20Implementation/1.4.1/saga-cpp-1.4.1.src.tar.gz' + head 'https://svn.cct.lsu.edu/repos/saga/trunk/', :using => :svn + homepage 'http://saga.cct.lsu.edu' + md5 'b05c76761f79d64df1af834986e095a8' + + depends_on 'boost' + depends_on 'sqlite' + depends_on 'xmlrpc-c' + + aka :saga + + 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-postgresql=#{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 |
