-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvedic.rb
executable file
·39 lines (32 loc) · 1006 Bytes
/
vedic.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class Vedic < Formula
desc "Simple Sanskrit programming language"
homepage "https://vedic-lang.github.io/"
url "https://github.com/vedic-lang/vedic/archive/refs/tags/v2.0.6.tar.gz"
sha256 "5453386fcebfa48a5f3d39bc832d19edaaaa98d8d36841428ff6a20db0dd0151"
license "MIT"
head "https://github.com/vedic-lang/vedic.git", branch: "main"
livecheck do
url :stable
regex(/release[._-](\d+(?:\.\d+)+)/i)
strategy :github_latest
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args(path: "cli")
end
def caveats
<<~EOS
Vedic-lang is a Sanskrit Programming Language
Documentation here: https://vedic-lang.github.io/
To get started, run:
vedic --help
EOS
end
test do
# hello world in vedic
(testpath/"hello.ved").write <<~EOS
वद("नमस्ते विश्व!");
EOS
assert_match "नमस्ते विश्व!", shell_output("#{bin}/vedic hello.ved")
end
end