File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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+ bottle do
9+ sha256 cellar : :any , arm64_sequoia : "55abfc756fcd03084ea6cecc4f55f694127244be085a40fb475c8ea313c1b1ff"
10+ sha256 cellar : :any , arm64_sonoma : "dfce5c1fe83a37626f59fb7f55560d7e6127c29a110602a0c0e2e8ff2469720c"
11+ sha256 cellar : :any , arm64_ventura : "55dd93aee4c6e5b332fb6ef5068f9076ee0188c682aac21f5e3cbc24ee8a263f"
12+ sha256 cellar : :any_skip_relocation , sonoma : "c14a84fc2c375ab64eef59cea18373fb47a154d5946e24c1b32dff772470b99d"
13+ sha256 cellar : :any_skip_relocation , ventura : "1d103d8fdb4f5d04ac85c30966ec14ce719822cc287aff6bda29d2e7944493c2"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "5d41319d9cf4c586dae36e4eed94e93cfc70969a977c592f7d819d9d6d420a7d"
15+ end
16+
17+ depends_on "nim"
18+ depends_on "openssl@3"
19+ depends_on "pcre"
20+
21+ def install
22+ system "nimble" , "build" , '--passL:"-lpcre -lssl -lcrypto"'
23+ bin . install "min"
24+ end
25+
26+ test do
27+ testfile = testpath /"test.min"
28+ testfile . write <<~EOS
29+ sys.pwd sys.ls (fs.type "file" ==) filter '> sort
30+ puts!
31+ EOS
32+ assert_match testfile . to_s , shell_output ( "#{ bin } /min test.min" )
33+ end
34+ end
You can’t perform that action at this time.
0 commit comments