cask "gams" do arch arm: "_arm64" version "54.5.0" sha256 arm: "f7dc5ecc2f91ffae0e04bd5e7944ecb2d5ded241dcaf1c7e1e095a515daacb1a", intel: "9e7ff81efa4cb6ed9caa214ba704001bd245a1c6bac1c3d18761e13b2b39452a" url "https://d37drm4t2jghv5.cloudfront.net/distributions/#{version}/macosx#{arch}/GAMS#{version}.pkg" name "GAMS" desc "General Algebraic Modeling System" homepage "https://www.gams.com/" livecheck do url "https://www.gams.com/download/" regex(/GAMS\s*Release\s*v?(\d+(?:\.\d+)+)[ <"]/i) end depends_on :macos pkg "GAMS#{version}.pkg", choices: [ { "choiceIdentifier" => "GAMS", "choiceAttribute" => "selected", "attributeSetting" => 1, }, { "choiceIdentifier" => "GAMS-Studio", "choiceAttribute" => "selected", "attributeSetting" => 1, }, { "choiceIdentifier" => "GAMS-Shell-Profile-Updater", "choiceAttribute" => "selected", "attributeSetting" => 0, }, ] uninstall script: { executable: "/Library/Frameworks/GAMS.framework/Resources/uninstall.sh", input: "y", sudo: true, } # No zap stanza required caveats do license "https://gams.com/GAMS_EULA.pdf" path_environment_variable "/Library/Frameworks/GAMS.framework/Resources" end end