Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_cron 1.6.5 #215

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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