73 lines
2.8 KiB
Ruby
73 lines
2.8 KiB
Ruby
class Monetdb < Formula
|
|
desc "Column-store database"
|
|
homepage "https://www.monetdb.org/"
|
|
url "https://www.monetdb.org/downloads/sources/Jul2021-SP1/MonetDB-11.41.11.tar.xz"
|
|
sha256 "2e81a98e06820dfaf56770af027e8da4a8dcc533d3599b9cc2b5a2e1efdc07af"
|
|
license "MPL-2.0"
|
|
head "https://dev.monetdb.org/hg/MonetDB", using: :hg
|
|
|
|
livecheck do
|
|
url "https://www.monetdb.org/downloads/sources/Latest/"
|
|
regex(/href=.*?MonetDB[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 arm64_monterey: "8bc5834738874ae3eff597b62da4a34666ada63521a830570c5b52670c706efa"
|
|
sha256 arm64_big_sur: "c3491e3822ad616ff62a23e7021602cbf0570b1bf4dd9a017aaa6f06d8e8f1e7"
|
|
sha256 monterey: "3c4655151f5defc6591f8de60e5abcdd1bf6a829ef6db47655c4bf5568116f02"
|
|
sha256 big_sur: "9b508ef49cdeca5aea1756bc7a31e84bf333aa05d1e4e17cb8b5b779c8641304"
|
|
sha256 catalina: "892532ddfa04ed8ab911227e8b1721d198b66281dd3614212d195d047474c41a"
|
|
sha256 x86_64_linux: "17e9eff85b2fe70e58bda46e6fa6a4c02ee8122cfa85707c6de985f948f8a579"
|
|
end
|
|
|
|
depends_on "bison" => :build # macOS bison is too old
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "python@3.10" => :build
|
|
depends_on "lz4"
|
|
depends_on "openssl@1.1"
|
|
depends_on "pcre"
|
|
depends_on "readline" # Compilation fails with libedit
|
|
depends_on "xz"
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args,
|
|
"-DRELEASE_VERSION=ON",
|
|
"-DASSERT=OFF",
|
|
"-DSTRICT=OFF",
|
|
"-DTESTING=OFF",
|
|
"-DFITS=OFF",
|
|
"-DGEOM=OFF",
|
|
"-DNETCDF=OFF",
|
|
"-DODBC=OFF",
|
|
"-DPY3INTEGRATION=OFF",
|
|
"-DRINTEGRATION=OFF",
|
|
"-DSHP=OFF",
|
|
"-DWITH_BZ2=ON",
|
|
"-DWITH_CMOCKA=OFF",
|
|
"-DWITH_CURL=ON",
|
|
"-DWITH_LZ4=ON",
|
|
"-DWITH_LZMA=ON",
|
|
"-DWITH_PCRE=ON",
|
|
"-DWITH_PROJ=OFF",
|
|
"-DWITH_SNAPPY=OFF",
|
|
"-DWITH_XML2=ON",
|
|
"-DWITH_ZLIB=ON",
|
|
"-DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix}",
|
|
"-DREADLINE_ROOT=#{Formula["readline"].opt_prefix}"
|
|
# remove reference to shims directory from compilation/linking info
|
|
inreplace "tools/mserver/monet_version.c", %r{"/[^ ]*/}, "\""
|
|
system "cmake", "--build", "."
|
|
system "cmake", "--build", ".", "--target", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
# assert_match "Usage", shell_output("#{bin}/mclient --help 2>&1")
|
|
system("#{bin}/monetdbd", "create", "#{testpath}/dbfarm")
|
|
assert_predicate testpath/"dbfarm", :exist?
|
|
end
|
|
end
|