-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: changed hl formula to use pre-built binary installation only
- Loading branch information
Showing
6 changed files
with
842 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,53 @@ | ||
class Hl < Formula | ||
desc "Log viewer for JSON and logfmt logs" | ||
homepage "https://github.com/pamburus/hl" | ||
url "https://github.com/pamburus/hl/archive/refs/tags/v0.29.2.tar.gz" | ||
sha256 "f8bf6f6f1917e7cdcb90b1b645a2380a37e021b8fea6b1bed6c1d4fb38689eed" | ||
version "0.29.2" | ||
license "MIT" | ||
head "https://github.com/pamburus/hl.git", branch: "master" | ||
|
||
bottle do | ||
root_url "https://github.com/pamburus/homebrew-tap/releases/download/hl-0.29.2" | ||
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a465d69acdea1c4c6d9a0e19ec1e2074b1dee3cf3066e00fd95058da8718dca0" | ||
sha256 cellar: :any_skip_relocation, ventura: "e27ddc5de15c4712f5e16c166e34aca84cb8d9fda20900ac42dfd9632ff8e9bb" | ||
sha256 cellar: :any_skip_relocation, x86_64_linux: "98544dda6d7f99086caa32c4872478afaf4f6b5a2cc02514ea89dd121aecd877" | ||
on_macos do | ||
if Hardware::CPU.intel? | ||
url "https://github.com/pamburus/hl/releases/download/v0.29.2/hl-macos-x86_64.tar.gz" | ||
sha256 "a5ce909baad2ba125deccb5426e891d6e47def1756ae871a219e337c9fcbf094" | ||
|
||
def install | ||
bin.install "hl" | ||
generate_completions_from_executable(bin/"hl", "--shell-completions") | ||
end | ||
end | ||
if Hardware::CPU.arm? | ||
url "https://github.com/pamburus/hl/releases/download/v0.29.2/hl-macos-arm64.tar.gz" | ||
sha256 "638748cdd8f344db9e51ed486b863956139a9581b42d8c6ecd15c22176865cb9" | ||
|
||
def install | ||
bin.install "hl" | ||
generate_completions_from_executable(bin/"hl", "--shell-completions") | ||
end | ||
end | ||
end | ||
|
||
depends_on "rust" => :build | ||
on_linux do | ||
if Hardware::CPU.intel? | ||
url "https://github.com/pamburus/hl/releases/download/v0.29.2/hl-linux-x86_64-musl.tar.gz" | ||
sha256 "7637f4b0616b810a4883ab7f29cded16c1099fcbb3ba767f2e1ae7f82f9fa237" | ||
|
||
def install | ||
bin.install "hl" | ||
generate_completions_from_executable(bin/"hl", "--shell-completions") | ||
end | ||
end | ||
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? | ||
url "https://github.com/pamburus/hl/releases/download/v0.29.2/hl-linux-arm64-musl.tar.gz" | ||
sha256 "c30affd547b5bc33ac8d7f2d9b3f3728af29026d27409e64fb33ba7912874012" | ||
|
||
def install | ||
system "cargo", "install", *std_cargo_args | ||
generate_completions_from_executable(bin/"hl", "--shell-completions") | ||
def install | ||
bin.install "hl" | ||
generate_completions_from_executable(bin/"hl", "--shell-completions") | ||
end | ||
end | ||
end | ||
|
||
test do | ||
system "true" | ||
system "#{bin}/hl", "--version" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
## Print help | ||
help: | ||
@echo "$$(tput setaf 2)Usage$$(tput sgr0)";sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## /---/;td" -e"s/:.*//;G;s/\\n## /===/;s/\\n//g;p;}" ${MAKEFILE_LIST}|awk -F === -v n=$$(tput cols) -v i=4 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf" '$$(tput setaf 2)make$$(tput sgr0)' %s%s%s\t",a,$$1,z;m=split($$2,w,"---");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;}printf"%*s%s\n",-i," ",w[j];}}' | column -ts $$'\t' | ||
.PHONY: help | ||
|
||
# Variables | ||
tapctl := bin/tapctl.py $(if $(verbose),--verbose) | ||
|
||
## Synchronize formulas | ||
sync: | ||
@$(tapctl) sync | ||
.PHONY: sync | ||
|
||
## Synchronize formulas with force | ||
sync-force: | ||
@$(tapctl) sync --force | ||
.PHONY: sync-force |
Oops, something went wrong.