Skip to content

Commit

Permalink
subversion: fix MacOS references.
Browse files Browse the repository at this point in the history
Needed after Homebrew/brew#16306.

Co-authored-by: Bo Anderson <[email protected]>
  • Loading branch information
MikeMcQuaid and Bo98 committed Dec 13, 2023
1 parent a88ad12 commit e4ee5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/s/subversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def install
]

# preserve compatibility with macOS 12.0–12.2
args.unshift "--enable-sqlite-compatibility-version=3.36.0" if MacOS.version == :monterey
args.unshift "--enable-sqlite-compatibility-version=3.36.0" if OS.mac? && MacOS.version == :monterey

inreplace "Makefile.in",
"toolsdir = @bindir@/svn-tools",
Expand All @@ -196,7 +196,7 @@ def install
perl_core = Pathname.new(perl_archlib)/"CORE"
perl_extern_h = perl_core/"EXTERN.h"

unless perl_extern_h.exist?
if OS.mac? && !perl_extern_h.exist?
# No EXTERN.h, maybe it's system perl
perl_version = Utils.safe_popen_read(perl.to_s, "--version")[/v(\d+\.\d+)(?:\.\d+)?/, 1]
perl_core = MacOS.sdk_path/"System/Library/Perl"/perl_version/"darwin-thread-multi-2level/CORE"
Expand Down

0 comments on commit e4ee5d0

Please sign in to comment.