Skip to content

Commit 40f5bf4

Browse files
committed
temporal_tables: add postgresql@18, drop postgresql@14
1 parent 4b2efa8 commit 40f5bf4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Formula/t/temporal_tables.rb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,25 @@ class TemporalTables < Formula
2525
sha256 cellar: :any_skip_relocation, x86_64_linux: "3fc466f8f161e0a625d123f989a6aeb91b8ef1bb29dd489c4ae55a967a46582f"
2626
end
2727

28-
depends_on "postgresql@14" => [:build, :test]
2928
depends_on "postgresql@17" => [:build, :test]
29+
depends_on "postgresql@18" => [:build, :test]
3030

3131
def postgresqls
3232
deps.map(&:to_formula).sort_by(&:version).filter { |f| f.name.start_with?("postgresql@") }
3333
end
3434

3535
def install
36+
odie "Too many postgresql dependencies!" if postgresqls.count > 2
37+
3638
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"
39+
args = %W[
40+
PG_CONFIG=#{postgresql.opt_bin}/pg_config
41+
pkglibdir=#{lib/postgresql.name}
42+
datadir=#{share/postgresql.name}
43+
docdir=#{doc}
44+
]
45+
system "make", "install", *args
46+
system "make", "clean", *args
4247
end
4348
end
4449

0 commit comments

Comments
 (0)