File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-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+ bottle do
9+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "0db2b3c8020378b8c8a1391a13ddb5be2a628c4c4972e7cad5aa4e000afc25f6"
10+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "6850bd70569c2cd871520c8eb5738a5d3d4f4be1d1a0358bdde55c79e7372c39"
11+ sha256 cellar : :any_skip_relocation , arm64_ventura : "884d6e69189dced3348d6dbb74c7c5cc133744bd2515afa983b8247831055ef2"
12+ sha256 cellar : :any_skip_relocation , sonoma : "c7d24ecc393322fe0071e5a3ae8d8955193d48b0087708e6c7644fa818ae9349"
13+ sha256 cellar : :any_skip_relocation , ventura : "af00f9aa936f24a34a6b244c215f817e35d983c2be1f506905aa97ed3f021528"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "149396da00c29749fd20745146885f0f4ff7833934f76160507aa171b7fef16c"
15+ end
16+
17+ uses_from_macos "ncurses"
18+
19+ def install
20+ system "./configure" , *std_configure_args
21+ system "make" , "install"
22+ end
23+
24+ test do
25+ require "pty"
26+
27+ PTY . spawn ( bin /"smenu" , "--version" ) do |r , _w , _pid |
28+ r . winsize = [ 80 , 60 ]
29+
30+ begin
31+ assert_match version . to_s , r . read
32+ rescue Errno ::EIO
33+ # GNU/Linux raises EIO when read is done on closed pty
34+ end
35+ end
36+ end
37+ end
You can’t perform that action at this time.
0 commit comments