Skip to content

Commit 85a4240

Browse files
Zoobdudedaeho-ro
authored andcommitted
msedit 1.2.0 (new formula)
1 parent ed7ba5b commit 85a4240

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/m/msedit.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class Msedit < Formula
2+
desc "Simple text editor with clickable interface"
3+
homepage "https://github.com/microsoft/edit"
4+
url "https://github.com/microsoft/edit/archive/refs/tags/v1.2.0.tar.gz"
5+
sha256 "e4ba6ff1bfecfeff2492306f5850c714bf50ffdb3cc3bb5be3aa987289f240fe"
6+
license "MIT"
7+
8+
depends_on "rust" => :build
9+
depends_on :macos # due to test failure on linux
10+
11+
def install
12+
ENV["RUSTC_BOOTSTRAP"] = "1"
13+
system "cargo", "install", *std_cargo_args
14+
end
15+
16+
test do
17+
# msedit is a TUI application
18+
assert_match version.to_s, shell_output("#{bin}/edit --version")
19+
end
20+
end

0 commit comments

Comments
 (0)