We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a836456 + 3643ba3 commit f26eca7Copy full SHA for f26eca7
Formula/g/ghc.rb
@@ -7,12 +7,13 @@ class Ghc < Formula
7
head "https://gitlab.haskell.org/ghc/ghc.git", branch: "master"
8
9
livecheck do
10
- url "https://www.haskell.org/ghc/download.html"
11
- regex(/href=.*?download[._-]ghc[._-][^"' >]+?\.html[^>]*?>\s*?v?(\d+(?:\.\d+)+)\s*?</i)
+ url "https://www.haskell.org/ghc/"
+ regex(/href=.*?download[_-]ghc[_-]v?(\d+(?:[._]\d+)+)\.html/i)
12
+ strategy :page_match do |page, regex|
13
+ page.scan(regex).map { |match| match[0].tr("_", ".") }
14
+ end
15
end
16
- no_autobump! because: :requires_manual_review
-
17
bottle do
18
rebuild 1
19
sha256 cellar: :any, arm64_sequoia: "91d82d69656f28ec22846128f6d28205b8f99f8a7abcce0406c309c394cef384"
0 commit comments