Skip to content

Commit

Permalink
various casks (#): migrate
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <patrick@linnane.io>
  • Loading branch information
p-linnane committed May 6, 2024
1 parent dafcd6d commit 19640a4
Show file tree
Hide file tree
Showing 5 changed files with 1,119 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Casks/font/0/font-0xproto-nerd-font.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cask "font-0xproto-nerd-font" do

Check failure on line 1 in Casks/font/0/font-0xproto-nerd-font.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-13)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto-nerd-font.rb'

Check failure on line 1 in Casks/font/0/font-0xproto-nerd-font.rb

View workflow job for this annotation

GitHub Actions / test font-0xproto-nerd-font (macos-13, intel)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto-nerd-font.rb'

Check failure on line 1 in Casks/font/0/font-0xproto-nerd-font.rb

View workflow job for this annotation

GitHub Actions / test font-0xproto-nerd-font (macos-14, arm)

Cask should be located in '/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto-nerd-font.rb'
version "3.2.1"
sha256 "103f8dff0b6c06687a08cbe91bd446e03935ac6dbc0ba6f426967b45e3edd3b6"

url "https://github.com/ryanoasis/nerd-fonts/releases/download/v#{version}/0xProto.zip"
name "0xProto Nerd Font (0xProto)"
desc "Developer targeted fonts with a high number of glyphs"
homepage "https://github.com/ryanoasis/nerd-fonts"

livecheck do
url :url
strategy :github_latest
end

font "0xProtoNerdFont-Regular.ttf"
font "0xProtoNerdFontMono-Regular.ttf"
font "0xProtoNerdFontPropo-Regular.ttf"

# No zap stanza required
end
14 changes: 14 additions & 0 deletions Casks/font/0/font-0xproto.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cask "font-0xproto" do

Check failure on line 1 in Casks/font/0/font-0xproto.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-13)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto.rb'

Check failure on line 1 in Casks/font/0/font-0xproto.rb

View workflow job for this annotation

GitHub Actions / test font-0xproto (macos-13, intel)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto.rb'

Check failure on line 1 in Casks/font/0/font-0xproto.rb

View workflow job for this annotation

GitHub Actions / test font-0xproto (macos-14, arm)

Cask should be located in '/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-0xproto.rb'
version "2.000"
sha256 "ef69ffaa0f7ebab546081aa9b551b34db12f832627b75cb420164a07d9c6b4d0"

url "https://github.com/0xType/0xProto/releases/download/#{version}/0xProto_#{version.dots_to_underscores}.zip"
name "0xProto"
desc "Programming font focused on source code legibility"
homepage "https://github.com/0xType/0xProto"

font "fonts/0xProto-Regular.otf"
font "fonts/0xProto-Italic.otf"

# No zap stanza required
end
26 changes: 26 additions & 0 deletions Casks/font/3/font-3270-nerd-font.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "font-3270-nerd-font" do

Check failure on line 1 in Casks/font/3/font-3270-nerd-font.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-13)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270-nerd-font.rb'

Check failure on line 1 in Casks/font/3/font-3270-nerd-font.rb

View workflow job for this annotation

GitHub Actions / test font-3270-nerd-font (macos-13, intel)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270-nerd-font.rb'

Check failure on line 1 in Casks/font/3/font-3270-nerd-font.rb

View workflow job for this annotation

GitHub Actions / test font-3270-nerd-font (macos-14, arm)

Cask should be located in '/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270-nerd-font.rb'
version "3.2.1"
sha256 "0e7cffe10575de3d80df920065ea6f320e86cd515ddd16beed817d284ba44afc"

url "https://github.com/ryanoasis/nerd-fonts/releases/download/v#{version}/3270.zip"
name "3270 Nerd Font (IBM 3270)"
desc "Developer targeted fonts with a high number of glyphs"
homepage "https://github.com/ryanoasis/nerd-fonts"

livecheck do
url :url
strategy :github_latest
end

font "3270NerdFont-Condensed.ttf"
font "3270NerdFont-Regular.ttf"
font "3270NerdFont-SemiCondensed.ttf"
font "3270NerdFontMono-Condensed.ttf"
font "3270NerdFontMono-Regular.ttf"
font "3270NerdFontMono-SemiCondensed.ttf"
font "3270NerdFontPropo-Condensed.ttf"
font "3270NerdFontPropo-Regular.ttf"
font "3270NerdFontPropo-SemiCondensed.ttf"

# No zap stanza required
end
31 changes: 31 additions & 0 deletions Casks/font/3/font-3270.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "font-3270" do

Check failure on line 1 in Casks/font/3/font-3270.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-13)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270.rb'

Check failure on line 1 in Casks/font/3/font-3270.rb

View workflow job for this annotation

GitHub Actions / test font-3270 (macos-13, intel)

Cask should be located in '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270.rb'

Check failure on line 1 in Casks/font/3/font-3270.rb

View workflow job for this annotation

GitHub Actions / test font-3270 (macos-14, arm)

Cask should be located in '/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/f/font-3270.rb'
version "3.0.1,d916271"
sha256 "623fb815b16d6c4940b5014a21c5474ef6cddb02c325d03f153341b676b4cffa"

url "https://github.com/rbanffy/3270font/releases/download/v#{version.csv.first}/3270_fonts_#{version.csv.second}.zip"
name "IBM 3270"
desc "Derived from the x3270 font"
homepage "https://github.com/rbanffy/3270font"

livecheck do
url "https://github.com/rbanffy/3270font/releases/latest"
regex(%r{v?(\d+(?:\.\d+)+)/3270[._-]fonts[._-](.*)\.zip}i)
strategy :github_releases do |json, regex|
json.first["assets"].map do |asset|
match = asset["browser_download_url"].match(regex)
next if match.blank?

"#{match[1]},#{match[2]}"
end
end
end

font "3270-Regular.otf"
font "3270-Regular.ttf"
font "3270Condensed-Regular.otf"
font "3270Condensed-Regular.ttf"
font "3270SemiCondensed-Regular.otf"
font "3270SemiCondensed-Regular.ttf"

# No zap stanza required
end

0 comments on commit 19640a4

Please sign in to comment.