Skip to content

Commit cfdc407

Browse files
authored
Merge pull request Homebrew#201395 from Homebrew/tuisky
tuisky 0.1.5 (new formula)
2 parents 864efb9 + f22975b commit cfdc407

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3105,6 +3105,7 @@ tt
31053105
ttdl
31063106
ttyd
31073107
ttyplot
3108+
tuisky
31083109
tup
31093110
twine
31103111
txr

Formula/t/tuisky.rb

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
class Tuisky < Formula
2+
desc "TUI client for bluesky"
3+
homepage "https://github.com/sugyan/tuisky"
4+
url "https://github.com/sugyan/tuisky/archive/refs/tags/v0.1.5.tar.gz"
5+
sha256 "bd777120b20618c72c6dfe064ca29f7de21e1314fae9be8550f3c527aec5dea7"
6+
license "MIT"
7+
head "https://github.com/sugyan/tuisky.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "fdd3cd4bae5e615c5998482164dd60d6b4af71090877a5fc8ce502baf026c507"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "abe534534245333207c7bcbc7cfeb9437c43e6f416aad2aac5052e587778b3ac"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "6c5334e7ab773d0a0c86e876cd8c5e9e9790a9db7aeaef43560832292f43ad1c"
13+
sha256 cellar: :any_skip_relocation, sonoma: "86aef90f8d8d4fab7abde6b5f82ccef66db610b6f382e6ee2c3bf269ea213509"
14+
sha256 cellar: :any_skip_relocation, ventura: "3450e4c9b5066717095354391061520c60fa89f3da742f5349540a84b7d9b940"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "e40debfffda75edcd330e3e46de47bf17073dc8e07dcb4a0ae0443a8118c1deb"
16+
end
17+
18+
depends_on "pkgconf" => :build
19+
depends_on "rust" => :build
20+
21+
on_linux do
22+
depends_on "openssl@3"
23+
end
24+
25+
def install
26+
system "cargo", "install", *std_cargo_args
27+
28+
pkgetc.install "config/example.config.toml" => "config.toml"
29+
end
30+
31+
test do
32+
assert_match version.to_s, shell_output("#{bin}/tuisky --version")
33+
34+
# Fails in Linux CI with `No such device or address (os error 6)`
35+
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]
36+
37+
begin
38+
output_log = testpath/"output.log"
39+
pid = spawn bin/"tuisky", [:out, :err] => output_log.to_s
40+
sleep 1
41+
assert_match "https://bsky.social", output_log.read
42+
ensure
43+
Process.kill("TERM", pid)
44+
Process.wait(pid)
45+
end
46+
end
47+
end

0 commit comments

Comments
 (0)