thrift: add language bindings

Closes #14746.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Alin Popa authored and Adam Vandenberg committed 2012-09-25 10:59:34 -07:00
1 parent 40ea27f798
commit e5475d93e6
1 file changed
+15 -7
+15 -7
View File
@@ -7,6 +7,12 @@ class Thrift < Formula
head 'http://svn.apache.org/repos/asf/thrift/trunk'
option "with-haskell", "Install Haskell binding"
option "with-erlang", "Install Erlang binding"
option "with-java", "Install Java binding"
option "with-perl", "Install Perl binding"
option "with-php", "Install Php binding"
depends_on 'boost'
def install
@@ -17,19 +23,21 @@ class Thrift < Formula
system "./bootstrap.sh" if build.head?
exclusions = ["--without-python", "--without-ruby"]
exclusions << "--without-haskell" unless build.include? "with-haskell"
exclusions << "--without-java" unless build.include? "with-java"
exclusions << "--without-perl" unless build.include? "with-perl"
exclusions << "--without-php" unless build.include? "with-php"
exclusions << "--without-erlang" unless build.include? "with-erlang"
# Language bindings try to install outside of Homebrew's prefix, so
# omit them here. For ruby you can install the gem, and for Python
# you can use pip or easy_install.
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--libdir=#{lib}",
"--without-haskell",
"--without-java",
"--without-python",
"--without-ruby",
"--without-perl",
"--without-php",
"--without-erlang"
*exclusions
ENV.j1
system "make"
system "make install"