File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments