Skip to content

Commit

Permalink
prefix: revision bump for Postgres 17
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 23, 2024
1 parent c5a93b8 commit cfdf159
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Formula/prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Prefix < Formula
url "https://github.com/dimitri/prefix/archive/refs/tags/v1.2.10.tar.gz"
sha256 "4342f251432a5f6fb05b8597139d3ccde8dcf87e8ca1498e7ee931ca057a8575"
license "PostgreSQL"
revision 1

bottle do
root_url "https://ghcr.io/v2/bayandin/tap"
Expand All @@ -24,19 +25,16 @@ def neon_postgres
end

def pg_versions
neon_postgres.pg_versions
neon_postgres.pg_versions(with: "v17")
end

def install
pg_versions.each do |v|
# Ref https://github.com/postgres/postgres/commit/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a
dlsuffix = (OS.linux? || "v14 v15".include?(v)) ? "so" : "dylib"

system "make", "clean", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config"
system "make", "PG_CONFIG=#{neon_postgres.pg_bin_for(v)}/pg_config"

mkdir_p lib/neon_postgres.name/v
mv "prefix.#{dlsuffix}", lib/neon_postgres.name/v
mv "prefix.#{neon_postgres.dlsuffix(v)}", lib/neon_postgres.name/v

mkdir_p share/neon_postgres.name/v/"extension"
cp "prefix.control", share/neon_postgres.name/v/"extension"
Expand Down

0 comments on commit cfdf159

Please sign in to comment.