diff options
| author | Alin Popa | 2012-09-05 18:47:06 +0300 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-25 10:59:34 -0700 |
| commit | e5475d93e6ecbfd5371e424973473ca703b009fc (patch) | |
| tree | 5f2a6b4ed4aacb1af7c6e5719d21a78b239db520 /Library | |
| parent | 40ea27f79841fa5eb58700d883cef0fb79e4a61c (diff) | |
| download | homebrew-e5475d93e6ecbfd5371e424973473ca703b009fc.tar.bz2 | |
thrift: add language bindings
Closes #14746.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/thrift.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Library/Formula/thrift.rb b/Library/Formula/thrift.rb index a7da52697..ec8374e89 100644 --- a/Library/Formula/thrift.rb +++ b/Library/Formula/thrift.rb @@ -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" |
