From 78e8dcf852b892edd2670a5212811f05ef36b293 Mon Sep 17 00:00:00 2001 From: luckow Date: Sun, 14 Mar 2010 10:05:06 +0100 Subject: 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 * 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. --- Library/Formula/saga-cpp.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Library/Formula/saga-cpp.rb (limited to 'Library/Formula') 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 :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 -- cgit v1.2.3