81 lines
2.6 KiB
Ruby
81 lines
2.6 KiB
Ruby
cask "klayout" do
|
|
on_catalina :or_older do
|
|
version "0.28.12"
|
|
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
|
|
version "0.28.12"
|
|
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
|
|
version "0.28.15"
|
|
sha256 "fb2fe78a2d71822bf36031dec04e17444afded27a4c373628fa9e0197673ebd3"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Monterey-1-qt5Brew-RsysPhb311.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 do
|
|
version "0.28.15"
|
|
sha256 "6c72dcf8d757f688671c837d34c4a192340d7e07b7cda751d228f0db296ccd1c"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Ventura-1-qt5Brew-RsysPhb311.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
|
|
on_sonoma :or_newer do
|
|
version "0.28.15"
|
|
sha256 "6c72dcf8d757f688671c837d34c4a192340d7e07b7cda751d228f0db296ccd1c"
|
|
|
|
url "https://www.klayout.org/downloads/MacOS/HW-klayout-#{version}-macOS-Ventura-1-qt5Brew-RsysPhb311.dmg",
|
|
verified: "klayout.org/downloads/MacOS/"
|
|
|
|
livecheck do
|
|
url "https://www.klayout.de/build.html"
|
|
regex(/href=.*?HW[._-]klayout[._-](\d+(?:\.\d+)+)[._-]macOS[._-]Sonoma.*?\.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 quit: "klayout.de",
|
|
pkgutil: "klayout.de"
|
|
|
|
zap trash: "~/.klayout"
|
|
end
|