Skip to content

Commit

Permalink
pgtap 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Feb 14, 2024
1 parent f93e8f5 commit bb02b4a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Formula/pgtap.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Pgtap < Formula
desc "PostgreSQL Unit Testing Suite"
homepage "https://pgtap.org"
url "https://github.com/theory/pgtap/archive/refs/tags/v1.3.1.tar.gz"
sha256 "d60cf90f0efb69c3deb20ac8ef8021811b24adc61b8bc0e16002304b0f94b536"
url "https://github.com/theory/pgtap/archive/refs/tags/v1.3.2.tar.gz"
sha256 "8441d541dae7ddfcda72585e70074f420978af78a211b9bc48d87bdfe892ce13"
license "PostgreSQL"

bottle do
Expand All @@ -24,15 +24,9 @@ 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 "src/pgtap.#{dlsuffix}", lib/neon_postgres.name/v

mkdir_p share/neon_postgres.name/v/"extension"
cp "pgtap.control", share/neon_postgres.name/v/"extension"
cp Dir["sql/pgtap--*.sql"], share/neon_postgres.name/v/"extension"
Expand Down

0 comments on commit bb02b4a

Please sign in to comment.