Skip to content

Commit

Permalink
check_postgres: install correctly on Big Sur
Browse files Browse the repository at this point in the history
As discussed with Homebrew#66370 (comment)
Big Sur's system perl changed how "PREFIX=" is treated as an install
destination.  The more explicit way to control MakeMaker is to set
INSTALL_BASE instead, which should result in consistent behavior
between different OS/X versions.
  • Loading branch information
mitchblank committed Dec 27, 2020
1 parent ab7f8bf commit ff5d744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/check_postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class CheckPostgres < Formula
url "https://bucardo.org/downloads/check_postgres-2.25.0.tar.gz"
sha256 "11b52f86c44d6cc26e9a4129e67c2589071dbe1b8ac1f8895761517491c6e44b"
license "BSD-2-Clause"
revision 1
head "https://github.com/bucardo/check_postgres.git"

livecheck do
Expand All @@ -21,7 +22,7 @@ class CheckPostgres < Formula
depends_on "postgresql"

def install
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}", "INSTALLSITEMAN1DIR=#{man1}"
system "make", "install"
mv bin/"check_postgres.pl", bin/"check_postgres"
inreplace [bin/"check_postgres", man1/"check_postgres.1p"], "check_postgres.pl", "check_postgres"
Expand Down

0 comments on commit ff5d744

Please sign in to comment.