Skip to content

Commit f32d175

Browse files
committed
font-opendyslexic: rename and update urls
The repository for `font-open-dyslexic` is now `opendyslexic`, so existing URLs using `open-dyslexic` no longer work. This updates the URLs and also renames the cask to align with the upstream naming convention. I've also added an explanatory comment before the `livecheck` block to explain the current version situation. Since upstream has published versions that are marked as pre-release, we have to check releases to identify stable versions but we can't do that yet because the older, stable versions (e.g., 20160623-Stable) don't have corresponding releases. I've added a commented-out implementation for checking the [Forgejo] API to get the latest release, so we can easily switch to that if/when a new stable version appears.
1 parent e6a2406 commit f32d175

File tree

3 files changed

+38
-24
lines changed

3 files changed

+38
-24
lines changed

Casks/font/font-o/font-open-dyslexic.rb

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
cask "font-opendyslexic" do
2+
version "20160623-Stable"
3+
sha256 "f07db722dabcdc359abca2fbb0a0e77a6b2a997db0fe694df30da32f7ec15c96"
4+
5+
url "https://forge.hackers.town/antijingoist/opendyslexic/archive/#{version}.tar.gz"
6+
name "OpenDyslexic"
7+
homepage "https://forge.hackers.town/antijingoist/opendyslexic"
8+
9+
# Upstream has switched from the YYYYMMDD-Stable version format to versions
10+
# like v0.0.1 but these newer versions are marked as pre-release. The older,
11+
# stable tags don't have corresponding releases, so there is no "latest"
12+
# release. We have to check the Git tags for now but we'll have to switch to
13+
# checking the "latest" release once there is a newer stable version,
14+
# otherwise the date-based versions will always be treated as newer (as
15+
# a number like 20160623 will remain higher).
16+
livecheck do
17+
url "https://forge.hackers.town/antijingoist/opendyslexic.git"
18+
regex(/^v?(\d+(?:\.\d+)+|\d+(?:\.\d+)*[._-]Stable)$/i)
19+
# url "https://forge.hackers.town/api/v1/repos/antijingoist/opendyslexic/releases/latest"
20+
# regex(/^v?(\d+(?:\.\d+)+)$/i)
21+
# strategy :json do |json, regex|
22+
# json["tag_name"]&.[](regex, 1)
23+
# end
24+
end
25+
26+
font "opendyslexic/otf/OpenDyslexic-Bold.otf"
27+
font "opendyslexic/otf/OpenDyslexic-BoldItalic.otf"
28+
font "opendyslexic/otf/OpenDyslexic-Italic.otf"
29+
font "opendyslexic/otf/OpenDyslexic-Regular.otf"
30+
font "opendyslexic/otf/OpenDyslexicAlta-Bold.otf"
31+
font "opendyslexic/otf/OpenDyslexicAlta-BoldItalic.otf"
32+
font "opendyslexic/otf/OpenDyslexicAlta-Italic.otf"
33+
font "opendyslexic/otf/OpenDyslexicAlta-Regular.otf"
34+
font "opendyslexic/otf/OpenDyslexicMono-Regular.otf"
35+
36+
# No zap stanza required
37+
end

cask_renames.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"font-maple": "font-maple-mono",
7070
"font-monaspace-nerd-font": "font-monaspice-nerd-font",
7171
"font-mplus-nerd-font": "font-m+-nerd-font",
72+
"font-open-dyslexic": "font-opendyslexic",
7273
"font-rounded-m+": "font-rounded-mplus",
7374
"font-smoothing-adjuster": "fontsmoothingadjuster",
7475
"fontforge": "fontforge-app",

0 commit comments

Comments
 (0)