Skip to content

Commit

Permalink
Throw error about Sonoma 14 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ajm-asiaa committed Oct 27, 2023
1 parent 2d80178 commit fce2bdd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/carta-casacore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class CartaCasacore < Formula
end

def install

if MacOS.version == 14
odie ("Homebrew CARTA currently does not support macOS Sonoma. Please use the macOS Electron version of CARTA which is compatible with Sonoma.")
end

resource("casadata").stage do
mkdir_p "#{share}/casacore/data"
cp_r "ephemerides", "#{share}/casacore/data"
Expand Down
5 changes: 5 additions & 0 deletions Formula/carta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class Carta < Formula
end

def install

if MacOS.version == 14
odie ("Homebrew CARTA currently does not support macOS Sonoma. Please use the macOS Electron version of CARTA which is compatible with Sonoma.")
end

# Building the carta-backend
system "git", "submodule", "update", "--recursive", "--init"
ENV["OPENSSL_ROOT_DIR"] = "$(brew --prefix openssl)"
Expand Down

0 comments on commit fce2bdd

Please sign in to comment.