homebrew-core/Formula/zorba.rb
2016-04-11 13:35:01 +01:00

43 lines
1.3 KiB
Ruby

class Zorba < Formula
desc "NoSQL query processor"
homepage "http://www.zorba.io/"
url "https://github.com/28msec/zorba/archive/3.1.tar.gz"
sha256 "a27e8160aca5d3aa5a6525b930da7edde44f8824dd4fba39aaef3b9af2717b74"
bottle do
sha256 "d5c6bc104cb0e199f0fb9e42ec63429106d03d2361a445569991014bb1e30404" => :el_capitan
sha256 "8e7ca99bc9c625ed596d47b4130532045f82a64c6430633092daf1b00f8fc37d" => :yosemite
sha256 "8866796808b7328b118f65d8edb112cf65296b63bda55b07dbd1225cfb4291fc" => :mavericks
end
option "with-big-integer", "Use 64 bit precision instead of arbitrary precision for performance"
option "with-ssl-verification", "Enable SSL peer certificate verification"
depends_on :macos => :mavericks
depends_on "cmake" => :build
depends_on "flex"
depends_on "icu4c"
depends_on "xerces-c"
conflicts_with "xqilla", :because => "Both supply xqc.h"
needs :cxx11
def install
ENV.cxx11
args = std_cmake_args
args << "-DZORBA_VERIFY_PEER_SSL_CERTIFICATE=ON" if build.with? "ssl-verification"
args << "-DZORBA_WITH_BIG_INTEGER=ON" if build.with? "big-integer"
mkdir "build" do
system "cmake", "..", *args
system "make", "install"
end
end
test do
assert_equal shell_output("#{bin}/zorba -q 1+1").strip,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n2"
end
end