Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cyme 1.7.0 (new formula) #175701

Merged
merged 2 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ cyclonedx-gomod
cyclonedx-python
cycode
cyctl
cyme
cypher-shell
cyrus-sasl
cython
Expand Down
27 changes: 27 additions & 0 deletions Formula/c/cyme.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class Cyme < Formula
desc "List system USB buses and devices"
homepage "https://github.com/tuna-f1sh/cyme"
url "https://github.com/tuna-f1sh/cyme/archive/refs/tags/v1.7.0.tar.gz"
sha256 "63ca7c5f473cbefb1fd07ba9b4f9693268d80560a778a001d82fab68bbd1552a"
license "GPL-3.0-or-later"
head "https://github.com/tuna-f1sh/cyme.git", branch: "main"

depends_on "rust" => :build
depends_on "libusb"
carlocab marked this conversation as resolved.
Show resolved Hide resolved

def install
system "cargo", "install", *std_cargo_args
man1.install "doc/cyme.1"
bash_completion.install "doc/cyme.bash"
zsh_completion.install "doc/_cyme"
fish_completion.install "doc/cyme.fish"
end

test do
# Test fails on headless CI
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

output = JSON.parse(shell_output("#{bin}/cyme --tree --json"))
assert_predicate output["buses"], :present?
end
end
Loading