Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / s / smlnj.rb
blob4f9703625dca3ab2e274bce600006ffa60d8fecf
1 cask "smlnj" do
2   version "110.99.7"
3   sha256 "bfc26ca54fbf59fb13af871390e1965d3ff95de4ee74d61f4488ba72bb4cdd4b"
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