PageRenderTime 61ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/saga-cpp.rb

https://github.com/lautis/homebrew
Ruby | 34 lines | 27 code | 5 blank | 2 comment | 1 complexity | fa411b45283c9f6be9c96efcf48c8454 MD5 | raw file
  1. require 'formula'
  2. class SagaCpp <Formula
  3. url 'http://downloads.sourceforge.net/project/saga/SAGA%20C%2B%2B%20Implementation/1.4.1/saga-cpp-1.4.1.src.tar.gz'
  4. head 'https://svn.cct.lsu.edu/repos/saga/trunk/', :using => :svn
  5. homepage 'http://saga.cct.lsu.edu'
  6. md5 'b05c76761f79d64df1af834986e095a8'
  7. depends_on 'boost'
  8. depends_on 'sqlite'
  9. depends_on 'xmlrpc-c'
  10. def install
  11. # Don't depend on a Homebrew-built PostgreSQL; users can
  12. # install the database however they like.
  13. unless `/usr/bin/which pg_config`.size > 0
  14. opoo "PostgreSQL not found"
  15. puts caveats
  16. end
  17. system "./configure", "--prefix=#{prefix}",
  18. "--with-boost=#{HOMEBREW_PREFIX}",
  19. "--with-sqlite3=#{HOMEBREW_PREFIX}"
  20. system "make install"
  21. end
  22. def caveats
  23. <<-EOS.undent
  24. Saga will use PostgreSQL if it is installed.
  25. You may want to install it first:
  26. brew install postgresql
  27. EOS
  28. end
  29. end