70 lines
2.6 KiB
Ruby
70 lines
2.6 KiB
Ruby
class Monetdb < Formula
|
|
desc "Column-store database"
|
|
homepage "https://www.monetdb.org/"
|
|
url "https://www.monetdb.org/downloads/sources/Oct2020-SP4/MonetDB-11.39.15.tar.xz"
|
|
sha256 "f3795433da9ff2ba214a6a0ff00ae1197cf7e98f986ea6beb737f44d4f4da37c"
|
|
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
|
|
sha256 arm64_big_sur: "cf175e1fec554fb4c32e522944345f4c0c8c0ca0a00b63611067f4b690b6a856"
|
|
sha256 big_sur: "74fe68947d4312c8128c0af45063c7869c7fc34ed3d958fa67fd9f7f6d55b6ca"
|
|
sha256 catalina: "62320905785805bda26d66f52701105e15ef6f170c9314ef5caaeb52c81584fb"
|
|
sha256 mojave: "cd86d4ee097ba4308e5b16d5c403a56b48a05d5601f401cef08e0102956724dd"
|
|
end
|
|
|
|
depends_on "bison" => :build # macOS bison is too old
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "python@3.9" => :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
|