homebrew-cask/Casks/l/liclipse.rb

29 lines
1015 B
Ruby

cask "liclipse" do
version "11.0.0,am6uf9d2fyj6mpv"
sha256 "a1a22a4cc279fd29b1b5c1fdb0b528d8c70c1e0167368f272da966286505264e"
url "https://www.mediafire.com/file/#{version.csv.second}/liclipse_#{version.csv.first}_macosx.cocoa.x86_64.tar.gz",
verified: "mediafire.com/file/"
name "LiClipse"
desc "Lightweight editors, theming and usability improvements for Eclipse"
homepage "https://www.liclipse.com/"
livecheck do
url "https://www.liclipse.com/download.html"
regex(%r{href=.*?/([0-9a-z]+)/liclipse[._-]v?(\d+(?:\.\d+)+)_macosx\.cocoa\.x86_64\.t}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[1]},#{match[0]}" }
end
end
app "LiClipse_x86_64/LiClipse.app"
app "LiClipse_x86_64/LiClipseJre19.app"
zap trash: [
"~/.liclipse",
"~/Documents/LiClipse Workspace",
"~/Library/Preferences/com.brainwy.liclipse.rcp.product.plist",
"~/Library/Saved Application State/com.brainwy.liclipse.rcp.product.savedState",
]
end