Skip to content

Commit 7d735e7

Browse files
committed
min-lang 0.46.0 (new formula)
1 parent 86d8b74 commit 7d735e7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Formula/m/min-lang.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class MinLang < Formula
2+
desc "Small but practical concatenative programming language and shell"
3+
homepage "https://min-lang.org"
4+
url "https://github.com/h3rald/min/archive/refs/tags/v0.46.0.tar.gz"
5+
sha256 "017178f88bd923862b64f316098772c1912f2eef9304c1164ba257829f1bbfc2"
6+
license "MIT"
7+
8+
depends_on "nim"
9+
depends_on "openssl@3"
10+
depends_on "pcre"
11+
12+
def install
13+
system "nimble", "build", '--passL:"-lpcre -lssl -lcrypto"'
14+
bin.install "min"
15+
end
16+
17+
test do
18+
testfile = testpath/"test.min"
19+
testfile.write <<~EOS
20+
sys.pwd sys.ls (fs.type "file" ==) filter '> sort
21+
puts!
22+
EOS
23+
assert_match testfile.to_s, shell_output("#{bin}/min test.min")
24+
end
25+
end

0 commit comments

Comments
 (0)