Skip to content

Commit 6f08315

Browse files
committed
smenu 1.4.0 (new formula)
1 parent 9f8e55e commit 6f08315

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/s/smenu.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class Smenu < Formula
2+
desc "Powerful and versatile CLI selection tool for interactive or scripting use"
3+
homepage "https://github.com/p-gen/smenu"
4+
url "https://github.com/p-gen/smenu/releases/download/v1.4.0/smenu-1.4.0.tar.bz2"
5+
sha256 "9b4e0d8864746175c1b20d75f5411fa013abdaf24af6801f1c5549b6698e195b"
6+
license "MPL-2.0"
7+
8+
uses_from_macos "ncurses"
9+
10+
def install
11+
system "./configure", *std_configure_args
12+
system "make", "install"
13+
end
14+
15+
test do
16+
require "pty"
17+
18+
PTY.spawn(bin/"smenu", "--version") do |r, _w, _pid|
19+
r.winsize = [80, 60]
20+
21+
begin
22+
assert_match version.to_s, r.read
23+
rescue Errno::EIO
24+
# GNU/Linux raises EIO when read is done on closed pty
25+
end
26+
end
27+
end
28+
end

0 commit comments

Comments
 (0)