Created
August 31, 2012 10:33
-
-
Save wataru420/3551284 to your computer and use it in GitHub Desktop.
Homebrew用のthrift-0.8.0-finagleのformula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
class Thriftfinagle < Formula | |
homepage 'https://github.com/benjyw/thrift-0.8.0-finagle' | |
version '0.8.0' | |
url 'https://github.com/benjyw/thrift-0.8.0-finagle/tarball/master' | |
sha1 'd5d87bc8b658c81b5095b701512085017f58564e' | |
depends_on 'boost' | |
def install | |
# No reason for this step is known. On Lion at least the pkg.m4 doesn't | |
# even exist. Turns out that it isn't needed on Lion either. Possibly it | |
# isn't needed anymore at all but I can't test that. | |
cp "#{MacOS::X11.share}/aclocal/pkg.m4", "aclocal" if MACOS_VERSION < 10.7 | |
system "./bootstrap.sh" if ARGV.build_head? | |
system "./configure","--help" | |
system "./configure", "--disable-debug", | |
"--prefix=#{prefix}", | |
"--libdir=#{lib}", | |
"--without-haskell", | |
"--without-java", | |
"--without-python", | |
"--without-ruby", | |
"--without-perl", | |
"--without-php", | |
"--without-erlang" | |
ENV.j1 | |
system "cmake" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment