Skip to content

Commit 9e34374

Browse files
authored
Merge pull request Homebrew#251905 from Homebrew/catb-formulae-update-livecheck
catb.org formulae: update livecheck
2 parents 6d25463 + 3546567 commit 9e34374

File tree

8 files changed

+49
-14
lines changed

8 files changed

+49
-14
lines changed

Formula/a/ascii.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ class Ascii < Formula
55
sha256 "ed2fdc973e1b87da2af83050e560e731b0f3bf5f6b4fd9babc9f60bb2b992443"
66
license "BSD-2-Clause"
77

8+
# The homepage links to the `stable` tarball but it can take longer than the
9+
# ten second livecheck timeout, so we check the Git tags as a workaround.
810
livecheck do
9-
url :homepage
10-
regex(/ascii[._-]v?(\d+(?:\.\d+)+)/i)
11+
url :head
12+
regex(/^v?(\d+(?:[.-]\d+)+)$/i)
13+
strategy :git do |tags, regex|
14+
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
15+
end
1116
end
1217

1318
bottle do

Formula/c/cvs-fast-export.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ class CvsFastExport < Formula
55
sha256 "841c60d9af70ca260fec572f2ef08ed523314f6cacfda40bb44dacb9dbcda841"
66
license "GPL-2.0-or-later"
77

8+
# The homepage links to the `stable` tarball but it can take longer than the
9+
# ten second livecheck timeout, so we check the Git tags as a workaround.
810
livecheck do
9-
url :homepage
10-
regex(/href=.*?cvs-fast-export[._-]v?(\d+(?:\.\d+)+)\.t/i)
11+
url :head
12+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1113
end
1214

1315
bottle do

Formula/d/deheader.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ class Deheader < Formula
77
sha256 "553fd064a0e46ff5a88efd121e68d7613c5ffa405d1e7f775ce03111eae30882"
88
license "BSD-2-Clause"
99

10+
# The homepage links to the `stable` tarball but it can take longer than the
11+
# ten second livecheck timeout, so we check the Git tags as a workaround.
1012
livecheck do
11-
url :homepage
12-
regex(/href=.*?deheader[._-]v?(\d+(?:\.\d+)+)\.t/i)
13+
url :head
14+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1315
end
1416

1517
no_autobump! because: :requires_manual_review

Formula/o/open-adventure.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ class OpenAdventure < Formula
88
license "BSD-2-Clause"
99
head "https://gitlab.com/esr/open-adventure.git", branch: "master"
1010

11+
# The homepage links to the `stable` tarball but it can take longer than the
12+
# ten second livecheck timeout, so we check the Git tags as a workaround.
1113
livecheck do
12-
url :homepage
13-
regex(/href=.*?advent[._-]v?(\d+(?:\.\d+)+)\.t/i)
14+
url :head
15+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1416
end
1517

1618
bottle do

Formula/s/showkey.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ class Showkey < Formula
66
license "MIT"
77
head "https://gitlab.com/esr/showkey.git", branch: "master"
88

9+
# The homepage links to the `stable` tarball but it can take longer than the
10+
# ten second livecheck timeout, so we check the Git tags as a workaround.
911
livecheck do
10-
url :homepage
11-
regex(/showkey[._-]v?(\d+(?:\.\d+)+)/i)
12+
url :head
13+
regex(/^v?(\d+(?:[.-]\d+)+)$/i)
14+
strategy :git do |tags, regex|
15+
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
16+
end
1217
end
1318

1419
bottle do

Formula/s/ski.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ class Ski < Formula
77
sha256 "aaff38e0f6a2c789f2c1281871ecc4d3f4e9b14f938a6d3bf914b4285bbdb748"
88
license "BSD-2-Clause"
99

10+
# The homepage links to the `stable` tarball but it can take longer than the
11+
# ten second livecheck timeout, so we check the Git tags as a workaround.
12+
livecheck do
13+
url :head
14+
regex(/^v?(\d+(?:[.-]\d+)+)$/i)
15+
strategy :git do |tags, regex|
16+
tags.filter_map { |tag| tag[regex, 1]&.tr("-", ".") }
17+
end
18+
end
19+
1020
bottle do
1121
sha256 cellar: :any_skip_relocation, all: "14141d2ba391efd4932d5c119c2429abb66f8ef243bc0b22fcf9b71f717be9aa"
1222
end

Formula/s/src.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ class Src < Formula
55
sha256 "5dc9302b161582149dbc191a0eeee43142b96386a542c870d56ac9fddb995d25"
66
license "BSD-2-Clause"
77

8+
# The homepage links to the `stable` tarball but it can take longer than the
9+
# ten second livecheck timeout, so we check the Git tags as a workaround.
810
livecheck do
9-
url :homepage
10-
regex(/href=.*?src[._-]v?(\d+(?:\.\d+)+)\.t/i)
11+
url :head
12+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1113
end
1214

1315
bottle do

Formula/w/wumpus.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ class Wumpus < Formula
55
sha256 "aa059e163b4f516580b83931ae29fbd5796302e854da283b85cc7fc887677d7c"
66
license "BSD-2-Clause"
77

8+
# The homepage links to the `stable` tarball but it can take longer than the
9+
# ten second livecheck timeout, so we check the Git tags as a workaround.
810
livecheck do
9-
url :homepage
10-
regex(/href=.*?wumpus[._-]v?(\d+(?:\.\d+)+)\.t/i)
11+
url :head
12+
regex(/^v?(\d+(?:\.\d+)+)$/i)
1113
end
1214

1315
bottle do
@@ -21,6 +23,11 @@ class Wumpus < Formula
2123
sha256 cellar: :any_skip_relocation, x86_64_linux: "63f9a87dd8a82fc0bf2969cedfca5dd336e0e3575d6792bf3d8e19e6f3506332"
2224
end
2325

26+
head do
27+
url "https://gitlab.com/esr/wumpus.git", branch: "master"
28+
depends_on "asciidoctor" => :build
29+
end
30+
2431
# checksum got changed and no response from upstream, https://gitlab.com/esr/wumpus/-/issues/2
2532
deprecate! date: "2025-09-12", because: :does_not_build
2633
disable! date: "2026-09-12", because: :does_not_build

0 commit comments

Comments
 (0)