cask "racket" do arch arm: "aarch64", intel: "x86_64" version "8.15" sha256 arm: "586e0cc855cfe540ef2ec8273409679fc434de7bea8c651a38abb79fc56a7c5f", intel: "b4b3987c64b23a74d1851082b6529776e4ebe11d6c94294fc0bc56e36cd62330" url "https://mirror.racket-lang.org/installers/#{version}/racket-#{version}-#{arch}-macosx-cs.dmg" name "Racket" desc "Modern programming language in the Lisp/Scheme family" homepage "https://racket-lang.org/" livecheck do url "https://download.racket-lang.org/all-versions.html" regex(/racket[._-]v?(\d+(?:\.\d+)+)/i) end suite "Racket v#{version}" binary "#{appdir}/Racket v#{version}/bin/drracket" binary "#{appdir}/Racket v#{version}/bin/gracket" binary "#{appdir}/Racket v#{version}/bin/gracket-text" binary "#{appdir}/Racket v#{version}/bin/mred" binary "#{appdir}/Racket v#{version}/bin/mred-text" binary "#{appdir}/Racket v#{version}/bin/mzc" binary "#{appdir}/Racket v#{version}/bin/mzpp" binary "#{appdir}/Racket v#{version}/bin/mzscheme" binary "#{appdir}/Racket v#{version}/bin/mztext" binary "#{appdir}/Racket v#{version}/bin/pdf-slatex" binary "#{appdir}/Racket v#{version}/bin/plt-games" binary "#{appdir}/Racket v#{version}/bin/plt-help" binary "#{appdir}/Racket v#{version}/bin/plt-r5rs" binary "#{appdir}/Racket v#{version}/bin/plt-r6rs" binary "#{appdir}/Racket v#{version}/bin/plt-web-server" binary "#{appdir}/Racket v#{version}/bin/racket" binary "#{appdir}/Racket v#{version}/bin/raco" binary "#{appdir}/Racket v#{version}/bin/scribble" binary "#{appdir}/Racket v#{version}/bin/setup-plt" binary "#{appdir}/Racket v#{version}/bin/slatex" binary "#{appdir}/Racket v#{version}/bin/slideshow" binary "#{appdir}/Racket v#{version}/bin/swindle" manpage "#{appdir}/Racket v#{version}/man/man1/drracket.1" manpage "#{appdir}/Racket v#{version}/man/man1/gracket.1" manpage "#{appdir}/Racket v#{version}/man/man1/mred.1" manpage "#{appdir}/Racket v#{version}/man/man1/mzc.1" manpage "#{appdir}/Racket v#{version}/man/man1/mzscheme.1" manpage "#{appdir}/Racket v#{version}/man/man1/plt-help.1" manpage "#{appdir}/Racket v#{version}/man/man1/racket.1" manpage "#{appdir}/Racket v#{version}/man/man1/raco.1" manpage "#{appdir}/Racket v#{version}/man/man1/setup-plt.1" zap trash: [ "~/Library/Caches/Racket", "~/Library/Preferences/org.racket-lang.DrRacket.plist", "~/Library/Preferences/org.racket-lang.prefs.rktd", "~/Library/Preferences/PLT-autosave-toc-save.rktd", "~/Library/Preferences/PLT-autosave-toc.rktd", "~/Library/Racket", "~/Library/Saved Application State/org.racket-lang.DrRacket.savedState", "~/Library/Saved Application State/org.racket-lang.DrRacketBC.savedState", "~/Library/Saved Application State/org.racket-lang.GRacket3m.savedState", "~/Library/Saved Application State/org.racket-lang.PLT Games.savedState", "~/Library/Saved Application State/org.racket-lang.Slideshow.savedState", ] end