aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBen Bleything2011-02-23 21:06:24 -0800
committerAdam Vandenberg2011-06-16 06:45:18 -0700
commit959f6b31acc2b85f00fa326cf5044b8b5ca0d56c (patch)
tree5bcf50677b2c0e61924f07c480c13d3d0dade35a /Library/Formula
parentb7bec5a185b42347a3b9c2d466489be6c10e011c (diff)
downloadhomebrew-959f6b31acc2b85f00fa326cf5044b8b5ca0d56c.tar.bz2
librets 1.5.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/librets.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/librets.rb b/Library/Formula/librets.rb
new file mode 100644
index 000000000..ee80e9bf6
--- /dev/null
+++ b/Library/Formula/librets.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Librets < Formula
+ url 'http://www.crt.realtors.org/projects/rets/librets/files/librets-1.5.2.tar.gz'
+ homepage 'http://code.crt.realtors.org/projects/librets'
+ md5 '74bcea0eb11f3c66cde5dc3ecea05224'
+
+ depends_on 'boost'
+
+ def install
+ # Allow compilation against boost 1.46.0
+ inreplace "project/librets/src/RetsExceptionContext.cpp",
+ "#include <boost/filesystem/path.hpp>",
+ "#define BOOST_FILESYSTEM_VERSION 2\n#include <boost/filesystem/path.hpp>"
+
+ # Snow Leopard's SWIG is detected as too old,
+ # so disable language bindings.
+ system "./configure", "--disable-debug",
+ "--enable-shared_dependencies",
+ "--prefix=#{prefix}",
+ "--disable-dotnet",
+ "--disable-java",
+ "--disable-perl",
+ "--disable-php",
+ "--disable-python"
+ system "make install"
+ end
+end