From eea4f8511532f4c048d903811b66794c88a09aac Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Sun, 15 Dec 2024 10:59:19 +0000 Subject: [PATCH] pg_cron 1.6.5 --- Formula/pg_cron.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Formula/pg_cron.rb b/Formula/pg_cron.rb index 73d5d5b..5ba2835 100644 --- a/Formula/pg_cron.rb +++ b/Formula/pg_cron.rb @@ -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 @@ -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"