homebrew-cask/Casks/g/gtkwave.rb

31 lines
929 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cask "gtkwave" do
version "3.3.107"
sha256 "0024fa80f4566bc053d705200263c7e7d72f2ae111bf670dc6af90403540d3c7"
url "https://downloads.sourceforge.net/gtkwave/gtkwave-#{version}-osx-app/gtkwave.zip"
name "GTKWave"
desc "GTK+ based wave viewer"
homepage "https://gtkwave.sourceforge.net/"
livecheck do
url :url
regex(%r{url=.*?/gtkwave[._-]v?(\d+(?:\.\d+)+)[._-]osx[._-]app/}i)
end
app "gtkwave.app"
binary "#{appdir}/gtkwave.app/Contents/Resources/bin/gtkwave", target: "gtkwave"
zap trash: [
"~/Library/Application Support/CrashReporter/gtkwave-bin_*.plist",
"~/Library/Preferences/com.geda.gtkwave.plist",
"~/Library/Saved Application State/com.geda.gtkwave.savedState",
]
caveats <<~EOS
You may need to install Perls Switch module to run #{token}s command line
tool, e.g. using `cpan install Switch`
https://ughe.github.io/2018/11/06/gtkwave-osx
EOS
end