File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ class Lavat < Formula
2
+ desc "Lava lamp simulation using metaballs in the terminal"
3
+ homepage "https://github.com/AngelJumbo/lavat"
4
+ url "https://github.com/AngelJumbo/lavat/archive/refs/tags/v2.1.0.tar.gz"
5
+ sha256 "07b11ce4d15354d8fbb85b60955c74d52d72946d509ec7dda02498adc71e2df4"
6
+ license "MIT"
7
+ head "https://github.com/AngelJumbo/lavat.git" , branch : "main"
8
+
9
+ bottle do
10
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "38711addd8f972b79986ae0bbaa31468cf7d90ce859835bf7a48e25a97c5b93e"
11
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "fa92f862f00dff1a0d2e8d0c54ae9b3ca03e3318b84926fc191159a3705ea13a"
12
+ sha256 cellar : :any_skip_relocation , arm64_ventura : "aa35b73d1492a19eafc5bbd3302a1077edaa9b278e693d9794bc277e3612ec48"
13
+ sha256 cellar : :any_skip_relocation , sonoma : "2e47c15c73dd362b47bf2cbf6a41a331f74d2e52d66a8ce400799f22cb832457"
14
+ sha256 cellar : :any_skip_relocation , ventura : "374fe07d517384128561390cb971d836add8956932030f29062df39e97f3e23e"
15
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "25c91db37d725ae7e134e65cc7151e104e57dc0fd0adf2b431feb1593bb00a9b"
16
+ end
17
+
18
+ def install
19
+ system "make" # `make install` doesn't work on macOS
20
+ bin . install "lavat"
21
+ end
22
+
23
+ test do
24
+ # GUI app
25
+ assert_match "Usage: lavat [OPTIONS]" , shell_output ( "#{ bin } /lavat -h" )
26
+
27
+ require "pty"
28
+
29
+ PTY . spawn ( bin /"lavat" ) do |_r , _w , pid |
30
+ sleep 5
31
+ ensure
32
+ Process . kill ( "TERM" , pid )
33
+ end
34
+ end
35
+ end
You can’t perform that action at this time.
0 commit comments