excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / smlnj.rb
blob7166faefdd2fbfabe069e7398f1a2f6ed73faa18
1 cask "smlnj" do
2   version "110.99.6.1"
3   sha256 "f3ea9e876934c29b62a1880170f64fb2cf7adaf47ad77968a9d463be41f3e546"
5   url "http://smlnj.cs.uchicago.edu/dist/working/#{version}/smlnj-amd64-#{version}.pkg",
6       verified: "smlnj.cs.uchicago.edu/"
7   name "Standard ML of New Jersey"
8   desc "Compiler for the Standard ML '97 programming language"
9   homepage "https://www.smlnj.org/"
11   livecheck do
12     url :homepage
13     regex(%r{href=.*?/smlnj-amd64-(\d+(?:\.\d+)*)\.pkg}i)
14   end
16   pkg "smlnj-amd64-#{version}.pkg"
18   uninstall pkgutil: "org.smlnj.amd64.pkg"
20   zap delete: "/usr/local/smlnj"
22   caveats do
23     path_environment_variable "/usr/local/smlnj/bin"
24   end
25 end