diff --git a/Casks/font/font-o/font-open-dyslexic.rb b/Casks/font/font-o/font-open-dyslexic.rb deleted file mode 100644 index e55f3b7d5cb57..0000000000000 --- a/Casks/font/font-o/font-open-dyslexic.rb +++ /dev/null @@ -1,24 +0,0 @@ -cask "font-open-dyslexic" do - version "20160623-Stable" - sha256 "06e6e219bbf5fe4999921f94a34e61d7d4b961fea19fdd80290bbea08cc42e8c" - - url "https://forge.hackers.town/antijingoist/open-dyslexic/archive/#{version}.tar.gz" - name "OpenDyslexic" - homepage "https://forge.hackers.town/antijingoist/open-dyslexic" - - livecheck do - url "https://forge.hackers.town/antijingoist/open-dyslexic.git" - end - - font "open-dyslexic/otf/OpenDyslexic-Bold.otf" - font "open-dyslexic/otf/OpenDyslexic-BoldItalic.otf" - font "open-dyslexic/otf/OpenDyslexic-Italic.otf" - font "open-dyslexic/otf/OpenDyslexic-Regular.otf" - font "open-dyslexic/otf/OpenDyslexicAlta-Bold.otf" - font "open-dyslexic/otf/OpenDyslexicAlta-BoldItalic.otf" - font "open-dyslexic/otf/OpenDyslexicAlta-Italic.otf" - font "open-dyslexic/otf/OpenDyslexicAlta-Regular.otf" - font "open-dyslexic/otf/OpenDyslexicMono-Regular.otf" - - # No zap stanza required -end diff --git a/Casks/font/font-o/font-open-dyslexic-nerd-font.rb b/Casks/font/font-o/font-opendyslexic-nerd-font.rb similarity index 97% rename from Casks/font/font-o/font-open-dyslexic-nerd-font.rb rename to Casks/font/font-o/font-opendyslexic-nerd-font.rb index 0c35f77d214c3..49ca601eff25f 100644 --- a/Casks/font/font-o/font-open-dyslexic-nerd-font.rb +++ b/Casks/font/font-o/font-opendyslexic-nerd-font.rb @@ -1,4 +1,4 @@ -cask "font-open-dyslexic-nerd-font" do +cask "font-opendyslexic-nerd-font" do version "3.4.0" sha256 "d864d31b449a005ef187296b3caed675ab6e7077ea756fba105eda543ed1c895" diff --git a/Casks/font/font-o/font-opendyslexic.rb b/Casks/font/font-o/font-opendyslexic.rb new file mode 100644 index 0000000000000..f36d2b72f8be9 --- /dev/null +++ b/Casks/font/font-o/font-opendyslexic.rb @@ -0,0 +1,37 @@ +cask "font-opendyslexic" do + version "20160623-Stable" + sha256 "f07db722dabcdc359abca2fbb0a0e77a6b2a997db0fe694df30da32f7ec15c96" + + url "https://forge.hackers.town/antijingoist/opendyslexic/archive/#{version}.tar.gz" + name "OpenDyslexic" + homepage "https://forge.hackers.town/antijingoist/opendyslexic" + + # Upstream has switched from the YYYYMMDD-Stable version format to versions + # like v0.0.1 but these newer versions are marked as pre-release. The older, + # stable tags don't have corresponding releases, so there is no "latest" + # release. We have to check the Git tags for now but we'll have to switch to + # checking the "latest" release once there is a newer stable version, + # otherwise the date-based versions will always be treated as newer (as + # a number like 20160623 will remain higher). + livecheck do + url "https://forge.hackers.town/antijingoist/opendyslexic.git" + regex(/^v?(\d+(?:\.\d+)+|\d+(?:\.\d+)*[._-]Stable)$/i) + # url "https://forge.hackers.town/api/v1/repos/antijingoist/opendyslexic/releases/latest" + # regex(/^v?(\d+(?:\.\d+)+)$/i) + # strategy :json do |json, regex| + # json["tag_name"]&.[](regex, 1) + # end + end + + font "opendyslexic/otf/OpenDyslexic-Bold.otf" + font "opendyslexic/otf/OpenDyslexic-BoldItalic.otf" + font "opendyslexic/otf/OpenDyslexic-Italic.otf" + font "opendyslexic/otf/OpenDyslexic-Regular.otf" + font "opendyslexic/otf/OpenDyslexicAlta-Bold.otf" + font "opendyslexic/otf/OpenDyslexicAlta-BoldItalic.otf" + font "opendyslexic/otf/OpenDyslexicAlta-Italic.otf" + font "opendyslexic/otf/OpenDyslexicAlta-Regular.otf" + font "opendyslexic/otf/OpenDyslexicMono-Regular.otf" + + # No zap stanza required +end diff --git a/cask_renames.json b/cask_renames.json index c3ab21dee108c..17ab20c8d1320 100644 --- a/cask_renames.json +++ b/cask_renames.json @@ -69,6 +69,8 @@ "font-maple": "font-maple-mono", "font-monaspace-nerd-font": "font-monaspice-nerd-font", "font-mplus-nerd-font": "font-m+-nerd-font", + "font-open-dyslexic": "font-opendyslexic", + "font-open-dyslexic-nerd-font": "font-opendyslexic-nerd-font", "font-rounded-m+": "font-rounded-mplus", "font-smoothing-adjuster": "fontsmoothingadjuster", "fontforge": "fontforge-app",