forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhdfview.rb
29 lines (23 loc) · 787 Bytes
/
hdfview.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cask "hdfview" do
version "3.3.1"
sha256 "0fc8c0c1abc24a63cf6d8fb46885766dc45e54240589d60ed358ae70a5cd3e04"
url "https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/hdfview-#{version}/bin/HDFView-#{version}-macos11_64.tar.gz"
name "HDFView"
desc "Tool for browsing and editing HDF files"
homepage "https://www.hdfgroup.org/downloads/hdfview/"
livecheck do
url :homepage
regex(/href=.*?HDFView[._-]v?(\d+(?:\.\d+)+)[._-]macos[^"' >]*?\.(?:t|zip)/i)
end
depends_on macos: ">= :el_capitan"
container nested: "HDFView-#{version}.dmg"
app "HDFView.app"
zap trash: [
"~/.hdfview*",
"~/Library/Preferences/HDFView.hdfgroup.org.plist",
"~/Library/Saved Application State/hdf.view.savedState",
]
caveats do
requires_rosetta
end
end