Skip to content

Commit

Permalink
plpgsql_check 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 22, 2023
1 parent db6e4e3 commit 6e2f77a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/plpgsql_check.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class PlpgsqlCheck < Formula
desc "Plpgsql linter"
homepage "https://github.com/okbob/plpgsql_check"
url "https://github.com/okbob/plpgsql_check/archive/refs/tags/v2.7.0.tar.gz"
sha256 "c3871b3ce5165a0a90df636e71f23a9dc9ef33032575b81fb5a73406f228c6b1"
url "https://github.com/okbob/plpgsql_check/archive/refs/tags/v2.7.1.tar.gz"
sha256 "7af35b8e015ff8014b148a227ec2bb29737ce734c8bc0c4bea9f5970a733ec82"
license "PostgreSQL"

bottle do
Expand All @@ -24,14 +24,11 @@ def pg_versions

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 "plpgsql_check.#{dlsuffix}", lib/neon_postgres.name/v
mv "plpgsql_check.#{neon_postgres.dlsuffix(v)}", lib/neon_postgres.name/v

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

0 comments on commit 6e2f77a

Please sign in to comment.