Skip to content

Commit

Permalink
morpheus: Refactor install method
Browse files Browse the repository at this point in the history
  • Loading branch information
jdieg0 committed Mar 18, 2024
1 parent c660ed5 commit a2f4dc7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Formula/morpheus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ class Morpheus < Formula
uses_from_macos "zlib"

def install
args = std_cmake_args
args = []
args << "-G Ninja"
args << "-DMORPHEUS_RELEASE_BUNDLE=ON" if OS.mac?

# SBML import currently disabled by default due to libSBML build errors with some macOS SDKs
args << "-DMORPHEUS_SBML=OFF" if OS.mac? && build.without?("sbml")
if OS.mac?
args << "-DMORPHEUS_RELEASE_BUNDLE=ON"

# SBML import currently disabled by default due to libSBML build errors with some macOS SDKs
args << "-DMORPHEUS_SBML=OFF" if build.without? "sbml"
end

system "cmake", *args, "."
system "ninja", "install"
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

if OS.mac?
bin.write_exec_script "#{prefix}/Morpheus.app/Contents/MacOS/morpheus"
Expand Down Expand Up @@ -78,7 +82,7 @@ def caveats
Or add Morpheus to your Applications folder with:
ln -sf #{prefix}/Morpheus.app /Applications
ln -sf #{opt_prefix}/Morpheus.app /Applications
For more information about this release, visit: https://morpheus.gitlab.io/download/latest/
EOS
Expand Down

0 comments on commit a2f4dc7

Please sign in to comment.