mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
67 lines
2.1 KiB
Ruby
67 lines
2.1 KiB
Ruby
cask "klayout" do
|
|
version "0.28.12"
|
|
|
|
on_catalina :or_older do
|
|
sha256 "b2bca1ad625f84be8d6eeba7cc4864c83dd09d01d4e413059c8cff130c825b3e"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Catalina-1-qt5Brew-RsysPhb39.dmg",
|
|
verified: "klayout.org/downloads/MacOS/"
|
|
|
|
livecheck do
|
|
url "https://www.klayout.de/build.html"
|
|
regex(/href=.*?HW[._-]klayout[._-](\d+(?:\.\d+)+)[._-]macOS[._-]Catalina.*?\.dmg/i)
|
|
end
|
|
end
|
|
on_big_sur do
|
|
sha256 "1c7b6e12ac722d718dfc1711dd4d05cfa0a7b97d60ad02f98cd15cbae22d7fb0"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-BigSur-1-qt5Brew-RsysPhb39.dmg",
|
|
verified: "klayout.org/downloads/MacOS/"
|
|
|
|
livecheck do
|
|
url "https://www.klayout.de/build.html"
|
|
regex(/href=.*?HW[._-]klayout[._-](\d+(?:\.\d+)+)[._-]macOS[._-]BigSur.*?\.dmg/i)
|
|
end
|
|
end
|
|
on_monterey do
|
|
sha256 "731abc251c398c70284bc75c1a197e1ac31e2ea2e5b5c9047d2a8c14754ea300"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Monterey-1-qt5Brew-RsysPhb39.dmg",
|
|
verified: "klayout.org/downloads/MacOS/"
|
|
|
|
livecheck do
|
|
url "https://www.klayout.de/build.html"
|
|
regex(/href=.*?HW[._-]klayout[._-](\d+(?:\.\d+)+)[._-]macOS[._-]Monterey.*?\.dmg/i)
|
|
end
|
|
end
|
|
on_ventura :or_newer do
|
|
sha256 "aa408835d859276ecb10d40cada1639eda8d0f10c5833121e6688bb0c1a04608"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Ventura-1-qt5Brew-RsysPhb39.dmg",
|
|
verified: "klayout.org/downloads/MacOS/"
|
|
|
|
livecheck do
|
|
url "https://www.klayout.de/build.html"
|
|
regex(/href=.*?HW[._-]klayout[._-](\d+(?:\.\d+)+)[._-]macOS[._-]Ventura.*?\.dmg/i)
|
|
end
|
|
end
|
|
|
|
name "KLayout"
|
|
desc "IC design layout viewer and editor"
|
|
homepage "https://www.klayout.de/"
|
|
|
|
depends_on macos: ">= :catalina"
|
|
|
|
suite "KLayout"
|
|
|
|
preflight do
|
|
# There is no sub-folder in the DMG; the root *is* the folder
|
|
FileUtils.mv(staged_path.children, staged_path.join("KLayout").tap(&:mkpath))
|
|
end
|
|
|
|
uninstall pkgutil: "klayout.de",
|
|
quit: "klayout.de"
|
|
|
|
zap trash: "~/.klayout"
|
|
end
|