jbig2dec: update livecheck

The previous livecheck block doesn't work at the moment, because the
first page of https://github.com/ArtifexSoftware/ghostpdl-downloads has
no jbig2dec tarballs right now.

Closes #106004.

Signed-off-by: Sam Ford <1584702+samford@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
mhmdanas 2022-07-17 15:59:00 +03:00 committed by BrewTestBot
parent 00df06b4a4
commit 3900f1512d
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 4 deletions

View File

@ -6,11 +6,11 @@ class Jbig2dec < Formula
license "AGPL-3.0-or-later"
# Not every GhostPDL release contains a jbig2dec archive, so we have to check
# the GitHub releases page instead (which we otherwise avoid). This is
# necessary because the jbig2dec homepage hasn't been updated to link to
# versions after 0.17.
# the GitHub releases page (which we otherwise avoid) instead of the tags.
# We avoid checking the jbig2dec homepage because it has been very slow to
# update in the past when new versions were released.
livecheck do
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases"
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases?q=prerelease%3Afalse"
regex(%r{href=.*?/jbig2dec[._-]v?(\d+(?:\.\d+)+)\.t}i)
strategy :page_match
end