homebrew-core/Formula/thrift.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

37 lines
1.2 KiB
Ruby

require 'formula'
class Thrift <Formula
homepage 'http://incubator.apache.org/thrift/'
url 'http://apache.dataphone.se/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz'
version '0.2.0'
md5 '9958c57c402c02171ba0bcc96183505c'
head 'http://svn.apache.org/repos/asf/incubator/thrift/trunk'
depends_on 'boost'
def install
cp "/usr/X11/share/aclocal/pkg.m4", "aclocal"
system "./bootstrap.sh" if version == 'HEAD'
system "./configure","--disable-debug","--without-java",
"--prefix=#{prefix}","--libdir=#{lib}",
# rationale: this can be installed with easy_install
# and when you do that, it installs properly, we
# can't install it properly without leaving Homebrew's prefix
"--without-py",
# again, use gem
"--without-ruby",
"--without-perl"
system "make"
system "make install"
end
def caveats; <<-EOS.undent
Some bindings were not installed. You may like to do the following:
gem install thrift
easy_install thrift
Perl bindings are a mystery someone should solve.
EOS
end
end