homebrew-cask/Casks/scilab.rb

32 lines
1001 B
Ruby

cask "scilab" do
version "6.1.0"
sha256 "79f253ccf4cca5375b018f53b62d9dcdcc3a33b3a2a313fa06464eebc1b484df"
url "https://www.utc.fr/~mottelet/scilab/download/branch-#{version.major_minor}/scilab-branch-#{version.major_minor}-x86_64.dmg",
verified: "utc.fr/~mottelet/scilab/"
name "Scilab"
desc "Software for numerical computation"
homepage "https://www.scilab.org/"
livecheck do
url "https://www.scilab.org/download/"
strategy :header_match
end
depends_on macos: ">= :high_sierra"
app "scilab-branch-#{version.major_minor}.app"
binary "#{appdir}/scilab-branch-#{version.major_minor}.app/Contents/bin/scilab"
binary "#{appdir}/scilab-branch-#{version.major_minor}.app/Contents/bin/scilab-cli"
caveats do
depends_on_java "8"
<<~EOS
If prompted to install the legacy Java 6, use the enableJDK tool provided by the vendor to enable installed JDK to use with #{token}:
https://www.utc.fr/~mottelet/scilab_for_macOS.html
EOS
end
end