Skip to content

Commit

Permalink
git-cal: install correctly on Big Sur
Browse files Browse the repository at this point in the history
As discussed with #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.

Closes #67820.

Signed-off-by: chenrui <chenrui333@gmail.com>
  • Loading branch information
mitchblank authored and chenrui333 committed Dec 27, 2020
1 parent 48ea691 commit 73afb27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Formula/git-cal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ class GitCal < Formula
url "https://github.com/k4rthik/git-cal/archive/v0.9.1.tar.gz"
sha256 "783fa73197b349a51d90670480a750b063c97e5779a5231fe046315af0a946cd"
license "MIT"
revision 1
head "https://github.com/k4rthik/git-cal.git"

livecheck do
url :head
strategy :github_latest
end

bottle do
cellar :any_skip_relocation
rebuild 1
Expand All @@ -19,7 +25,7 @@ class GitCal < Formula
end

def install
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}", "INSTALLSITEMAN1DIR=#{man1}"
system "make"
system "make", "install"
end
Expand Down

0 comments on commit 73afb27

Please sign in to comment.