64 lines
1.6 KiB
Ruby
64 lines
1.6 KiB
Ruby
class Thrift < Formula
|
|
desc "Framework for scalable cross-language services development"
|
|
homepage "https://thrift.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.13.0/thrift-0.13.0.tar.gz"
|
|
sha256 "7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "3a6dccee60ca25d75f99245cc46a7d84351c87c654b77837c3370c5247c80c49" => :catalina
|
|
sha256 "385c454b28a354be187de75d67c0133bca17cd1341f1e1abd10cba368e29a80d" => :mojave
|
|
sha256 "cb82d3f651ae5cb00a37713a050127a746358320e579d2fe55e08c4b9cd139bd" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/apache/thrift.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
end
|
|
|
|
depends_on "bison" => :build
|
|
depends_on "boost"
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
system "./bootstrap.sh" unless build.stable?
|
|
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-tests
|
|
--prefix=#{prefix}
|
|
--libdir=#{lib}
|
|
--with-openssl=#{Formula["openssl@1.1"].opt_prefix}
|
|
--without-erlang
|
|
--without-haskell
|
|
--without-java
|
|
--without-perl
|
|
--without-php
|
|
--without-php_extension
|
|
--without-python
|
|
--without-ruby
|
|
--without-swift
|
|
]
|
|
|
|
ENV.cxx11 if ENV.compiler == :clang
|
|
|
|
# Don't install extensions to /usr:
|
|
ENV["PY_PREFIX"] = prefix
|
|
ENV["PHP_PREFIX"] = prefix
|
|
ENV["JAVA_PREFIX"] = buildpath
|
|
|
|
system "./configure", *args
|
|
ENV.deparallelize
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/thrift", "--version"
|
|
end
|
|
end
|