hdf5: update livecheck

master
Sam Ford 2021-04-02 16:49:53 -04:00 committed by GitHub
parent b5b63e49a9
commit a8833b7eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -6,9 +6,12 @@ class Hdf5 < Formula
license "BSD-3-Clause"
revision 1
# This regex isn't matching filenames within href attributes (as we normally
# do on HTML pages) because this page uses JavaScript to handle the download
# buttons and the HTML doesn't contain the related URLs.
livecheck do
url "https://www.hdfgroup.org/downloads/hdf5/"
regex(/Newsletter for HDF5[._-]v?(.*?) Release/i)
url "https://www.hdfgroup.org/downloads/hdf5/source-code/"
regex(/>\s*hdf5[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do