Compare commits

...

5 Commits
master ... main

Author SHA1 Message Date
Alpha Chen e8c45992d5
bqn
2 years ago
Alpha Chen 4e33effff5
fennel-ls
2 years ago
Alpha Chen 99768e30f4 add (c)lox from Crafting Interpreters
2 years ago
Alpha Chen c128f49113 add spyglass cask
2 years ago
Alpha Chen 39bb54da5b add my exa fork
3 years ago

@ -0,0 +1,15 @@
cask "spyglass" do
version "2022.7.1"
sha256 "2439251758d3b0c664c16e214663f4ceeb16ffa92c2bcc0c8393e0bac119a949"
# The tag name includes the full year, but the download URL elides the first two digits
url "https://github.com/a5huynh/spyglass/releases/download/v#{version}/Spyglass_#{version.sub(/^20/, "")}_x64.dmg"
name "Spyglass"
desc "A personal search engine that indexes what you want, exposing it to you in a simple & fast interface"
homepage "https://github.com/a5huynh/spyglass"
app "Spyglass.app"
# livecheck do
# end
end

@ -0,0 +1,10 @@
class Bqn < Formula
desc "An APL for your flying saucer"
homepage "https://mlochbaum.github.io/BQN/"
head "https://github.com/dzaima/CBQN.git"
def install
system "make"
bin.install "bqn"
end
end

@ -0,0 +1,61 @@
class Exa < Formula
desc "Modern replacement for 'ls'"
homepage "https://the.exa.website"
sha256 "ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c"
license "MIT"
head "https://github.com/kejadlen/exa.git", branch: "main"
livecheck do
url :stable
strategy :github_latest
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_monterey: "6d0565b8b078c0af60f359c273f8fb2b5bd4832f66f9ba2cce6ac1e6a3a6782c"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2b9cc70621644245ce1ab1b682e28efae4b8acdbf3bf4da9cf91ddbd786b8787"
sha256 cellar: :any_skip_relocation, monterey: "116ebfabdd5f5a06725dcd563c1bb05f723b3543f5204985a3f7dc7089a5d765"
sha256 cellar: :any_skip_relocation, big_sur: "d0c809ae7a8d3a43e0c907854b46725f5ad6bb14fa40a9857ff4e74f15c0b961"
sha256 cellar: :any_skip_relocation, catalina: "dc183942b94bac912f4e0a6ca5c8859fa755a95de2808bd978dde3911690f0ae"
sha256 cellar: :any_skip_relocation, mojave: "62fac977958ef8a9856e7a28fceac53d4f6e327e11764d1a077fb34ac83aced0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "fad8013ab85b04c039c1b1be716bd621370dfcf810e3eb714e53711701b9aa45"
end
depends_on "pandoc" => :build
depends_on "rust" => :build
uses_from_macos "zlib"
on_linux do
depends_on "libgit2"
end
def install
system "cargo", "install", *std_cargo_args
if build.head?
bash_completion.install "completions/bash/exa"
zsh_completion.install "completions/zsh/_exa"
fish_completion.install "completions/fish/exa.fish"
else
# Remove after >0.10.1 build
bash_completion.install "completions/completions.bash" => "exa"
zsh_completion.install "completions/completions.zsh" => "_exa"
fish_completion.install "completions/completions.fish" => "exa.fish"
end
args = %w[
--standalone
--to=man
]
system "pandoc", *args, "man/exa.1.md", "-o", "exa.1"
system "pandoc", *args, "man/exa_colors.5.md", "-o", "exa_colors.5"
man1.install "exa.1"
man5.install "exa_colors.5"
end
test do
(testpath/"test.txt").write("")
assert_match "test.txt", shell_output("#{bin}/exa")
end
end

@ -0,0 +1,14 @@
class FennelLs < Formula
desc "A language server for Fennel"
homepage "https://git.sr.ht/~xerool/fennel-ls"
head "https://git.sr.ht/~xerool/fennel-ls", branch: "main"
# depends_on "cmake" => :build
depends_on "fennel"
depends_on "lua"
def install
system "make"
bin.install "fennel-ls"
end
end

@ -0,0 +1,15 @@
class Lox < Formula
desc "The Lox language from Crafting Interpreters"
homepage "https://craftinginterpreters.com/the-lox-language.html"
license "MIT"
head "https://github.com/munificent/craftinginterpreters.git"
def install
system "make clox"
bin.install "clox"
end
test do
system "lox"
end
end
Loading…
Cancel
Save