Skip to content

Commit

Permalink
Merge pull request #159678 from cho-m/temporal_tables-pg16
Browse files Browse the repository at this point in the history
temporal_tables: migrate to `postgresql@16`
  • Loading branch information
BrewTestBot authored Jan 11, 2024
2 parents f3b1179 + aafe123 commit 59ce724
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions Formula/t/temporal_tables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,33 @@ class TemporalTables < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3439256a09f6b5ba2cdb9e7db565caf62c26bd6c6d3ec3d8848b50ac4363fd84"
sha256 cellar: :any_skip_relocation, arm64_ventura: "188021cc902cebe9286202a66a1cbb3251c028733df5e81cdf9c16d40bb46b0e"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c77e85f0a99540b6f4ff3c22dc09f0682b7ade9cffeff1c2ec35017e2d0ee14c"
sha256 cellar: :any_skip_relocation, sonoma: "10f35710e7934b43481a4f551a422b6fe6539bbc1ffeb7d99289ff7fe89f1f83"
sha256 cellar: :any_skip_relocation, ventura: "1a1ef5ff8e73b0df8df1134e841b68be2a58575cbe8f688cac2d66ef173d6ba5"
sha256 cellar: :any_skip_relocation, monterey: "aa4a1fd509081672f14781805cd570d712954c73e5a4f3a434ca3198a5e59e76"
sha256 cellar: :any_skip_relocation, x86_64_linux: "35187d653f58864f5bc79d688246fb84e6daa88f33fd6a2fe5e4804aee449583"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "32ee060448c99dfcde71fa12cf00e928327eb870da4fb89ee5da2e9620c25c64"
sha256 cellar: :any_skip_relocation, arm64_ventura: "e419e0e1a6ea32600dd16f797c4b4cddae8c378ae275ae0d426cb74515d4150d"
sha256 cellar: :any_skip_relocation, arm64_monterey: "f9c7cb115fdea71ca9a7707c533a6389b01b3d0873af7abaf4c98d3cfb093cb7"
sha256 cellar: :any_skip_relocation, sonoma: "d5cd432d47f0b3235c1d3140bf0603eb36e09d3ec4a9470087579f4d13fae760"
sha256 cellar: :any_skip_relocation, ventura: "83c9f4b1cf56d8aa988bc74fe6ee8134e78a3523e12275ddacde691928995f90"
sha256 cellar: :any_skip_relocation, monterey: "305e2c5302756ded35110287b104e635c4a8930897a9b696006987bd2ba9342f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2fbf23af17784bccfed9a768e3e09625b47723ff7ae38d076dc99867ec881ea5"
end

depends_on "postgresql@14"
depends_on "postgresql@16"

def postgresql
Formula["postgresql@14"]
Formula["postgresql@16"]
end

def install
ENV["PG_CONFIG"] = postgresql.opt_bin/"pg_config"

# 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"

stage_path = File.join("stage", HOMEBREW_PREFIX)
lib.install (buildpath/stage_path/"lib").children
share.install (buildpath/stage_path/"share").children
system "make", "install", "PG_CONFIG=#{postgresql.opt_libexec}/bin/pg_config",
"pkglibdir=#{lib/postgresql.name}",
"datadir=#{share/postgresql.name}",
"docdir=#{doc}"
end

test do
pg_ctl = postgresql.opt_bin/"pg_ctl"
psql = postgresql.opt_bin/"psql"
ENV["LC_ALL"] = "C"
pg_ctl = postgresql.opt_libexec/"bin/pg_ctl"
psql = postgresql.opt_libexec/"bin/psql"
port = free_port

system pg_ctl, "initdb", "-D", testpath/"test"
Expand Down

0 comments on commit 59ce724

Please sign in to comment.