41 lines
1.6 KiB
Ruby
41 lines
1.6 KiB
Ruby
class Citus < Formula
|
|
desc "PostgreSQL-based distributed RDBMS"
|
|
homepage "https://www.citusdata.com"
|
|
url "https://github.com/citusdata/citus/archive/v10.2.4.tar.gz"
|
|
sha256 "bfe62893ad8b571737b38e9b6bca35650fdf8f89ce9da3996d6634090c97db7e"
|
|
license "AGPL-3.0-only"
|
|
head "https://github.com/citusdata/citus.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "a473d61c192253889ece25d8805963fc0a06eed2a2f6ab2415a94d17c4036b01"
|
|
sha256 cellar: :any, arm64_big_sur: "8d9ff24d6d01e1a89056327cbc75aa13b983b4938894c568f784aaa612390b19"
|
|
sha256 cellar: :any, monterey: "e08b487cae176a7e2adf08a6c94a279aeaab5cf52908cc1fd6d23973fd3e5489"
|
|
sha256 cellar: :any, big_sur: "edabf4e6e3658330fa31a0bc13ee47a3bac5c87dd4713d0aaa49806ae66991d7"
|
|
sha256 cellar: :any, catalina: "93271095bc9abb5650f50da895b245978259483ef27194dab87022a9897d4211"
|
|
end
|
|
|
|
depends_on "lz4"
|
|
depends_on "postgresql"
|
|
depends_on "readline"
|
|
depends_on "zstd"
|
|
|
|
def install
|
|
ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin/"pg_config"
|
|
|
|
system "./configure"
|
|
|
|
# workaround for https://github.com/Homebrew/homebrew/issues/49948
|
|
system "make", "libpq=-L#{Formula["postgresql"].opt_lib} -lpq"
|
|
|
|
# Use stage directory to prevent installing to pg_config-defined dirs,
|
|
# which would not be within this package's Cellar.
|
|
mkdir "stage"
|
|
system "make", "install", "DESTDIR=#{buildpath}/stage"
|
|
|
|
bin.install Dir["stage/**/bin/*"]
|
|
lib.install Dir["stage/**/lib/*"]
|
|
include.install Dir["stage/**/include/*"]
|
|
(share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]
|
|
end
|
|
end
|