Skip to content

Commit

Permalink
pg_cron 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 15, 2024
1 parent 73b422b commit eea4f85
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Formula/pg_cron.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class PgCron < Formula
desc "Run periodic jobs in PostgreSQL"
homepage "https://github.com/citusdata/pg_cron"
url "https://github.com/citusdata/pg_cron/archive/refs/tags/v1.6.4.tar.gz"
sha256 "52d1850ee7beb85a4cb7185731ef4e5a90d1de216709d8988324b0d02e76af61"
url "https://github.com/citusdata/pg_cron/archive/refs/tags/v1.6.5.tar.gz"
sha256 "0118080f995fec67e25e58d44c66953e7b2bf5a47bb0602fd2ad147ea646d808"
license "PostgreSQL"

bottle do
Expand All @@ -19,20 +19,17 @@ 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"

ENV["PG_CONFIG"] = neon_postgres.pg_bin_for(v)/"pg_config"
system "make", "clean"
system "make"

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

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

0 comments on commit eea4f85

Please sign in to comment.