Skip to content

Commit 6d8c0ef

Browse files
authored
Merge pull request #245698 from Homebrew/temporal_tables-pg18
temporal_tables: add `postgresql@18`, drop `postgresql@14`
2 parents f82af95 + 2f3f5f4 commit 6d8c0ef

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

Formula/t/temporal_tables.rb

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,34 @@ class TemporalTables < Formula
1414
no_autobump! because: :requires_manual_review
1515

1616
bottle do
17-
rebuild 1
18-
sha256 cellar: :any_skip_relocation, arm64_tahoe: "7e4984668a10eb856961e401946ff757db30dac450c9be086ad0edf94c3699a2"
19-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "bcc21d71656c35c2fce9354192edb11f0751ef87d0fd7fae94563f7ef93ed4d7"
20-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f741ff41281dbdcdc41cfcbc1004c0bc3d8b5ef190e69d501cfa107ce1fb0674"
21-
sha256 cellar: :any_skip_relocation, arm64_ventura: "f081f8897511dfd9356f81771d9f3c718394168d1c084d6b9dfd6bf77281e7cd"
22-
sha256 cellar: :any_skip_relocation, sonoma: "5e612eab3899197b94085261aba06aa6c7e7f7d367d23bf2afccbe834b95f644"
23-
sha256 cellar: :any_skip_relocation, ventura: "813aafead423b3172a1b94c0289b9e48a40e6d0c83752657aac4018cce9ad8d3"
24-
sha256 cellar: :any_skip_relocation, arm64_linux: "873358b516a1d0d4d702d5d67acc60ffc6e83f55b4962e717cecd331cd6da08a"
25-
sha256 cellar: :any_skip_relocation, x86_64_linux: "3fc466f8f161e0a625d123f989a6aeb91b8ef1bb29dd489c4ae55a967a46582f"
17+
rebuild 2
18+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "961c3574dee3785c6a4a2d5dfee3fc55c758b09b06df2dc106a6f20caf555c18"
19+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2be633c14e63c4523d088fd0caadba5c804d7b2d9683f6a78e56f3e5111596d1"
20+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f35985639da76876dd1f2a903d24d2339eab09eb9e2885a01227a78c5016cc5f"
21+
sha256 cellar: :any_skip_relocation, sonoma: "2a3a851746ab81698051d7d408bcb4ebb38948aa5135f49480a62e8ac42c1acb"
22+
sha256 cellar: :any_skip_relocation, arm64_linux: "4c361513b78e4984086bb63776a72ecb2d2b44fb4c086cffa269652eefecafc3"
23+
sha256 cellar: :any_skip_relocation, x86_64_linux: "41bcf18a2b6d4abee03cd3f87ddcceb820fee5410d2442ad1613075f7fc97c92"
2624
end
2725

28-
depends_on "postgresql@14" => [:build, :test]
2926
depends_on "postgresql@17" => [:build, :test]
27+
depends_on "postgresql@18" => [:build, :test]
3028

3129
def postgresqls
3230
deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("postgresql@") }
3331
end
3432

3533
def install
34+
odie "Too many postgresql dependencies!" if postgresqls.count > 2
35+
3636
postgresqls.each do |postgresql|
37-
system "make", "install", "PG_CONFIG=#{postgresql.opt_bin}/pg_config",
38-
"pkglibdir=#{lib/postgresql.name}",
39-
"datadir=#{share/postgresql.name}",
40-
"docdir=#{doc}"
41-
system "make", "clean"
37+
args = %W[
38+
PG_CONFIG=#{postgresql.opt_bin}/pg_config
39+
pkglibdir=#{lib/postgresql.name}
40+
datadir=#{share/postgresql.name}
41+
docdir=#{doc}
42+
]
43+
system "make", "install", *args
44+
system "make", "clean", *args
4245
end
4346
end
4447

0 commit comments

Comments
 (0)