Skip to content

Commit 69ecdee

Browse files
committed
adding formulas for 4.0.0 .. 4.1.1
1 parent 3298da6 commit 69ecdee

File tree

4 files changed

+76
-1
lines changed

4 files changed

+76
-1
lines changed

arkscript.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Arkscript < Formula
22
desc "Small, fast, functional and scripting language for C++ projects"
33
homepage "https://arkscript-lang.dev"
4-
url "https://github.com/ArkScript-lang/Ark.git", tag: "v3.5.0"
4+
url "https://github.com/ArkScript-lang/Ark.git", tag: "v4.1.1"
55
license "MPL-2.0"
66
head "https://github.com/ArkScript-lang/Ark.git", branch: "dev"
77

arkscript@v4.0.0.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class ArkscriptAt400 < Formula
2+
desc "Small, fast, functional and scripting language for C++ projects"
3+
homepage "https://arkscript-lang.dev"
4+
url "https://github.com/ArkScript-lang/Ark.git", tag: "v4.0.0"
5+
license "MPL-2.0"
6+
head "https://github.com/ArkScript-lang/Ark.git", branch: "dev"
7+
8+
depends_on "cmake" => :build
9+
10+
def install
11+
system "cmake", "-S", ".", "-B", "build", "-DARK_BUILD_EXE=On", *std_cmake_args
12+
system "cmake", "--build", "build"
13+
system "cmake", "--install", "build"
14+
end
15+
16+
def post_install
17+
ohai "ℹ️ Add ARKSCRIPT_PATH=" + lib + "/Ark/ to your bashrc/zshrc"
18+
end
19+
20+
test do
21+
with_env("DYLD_LIBRARY_PATH" => "$DYLD_LIBRARY_PATH:/opt/homebrew/lib") do
22+
system "#{bin}/arkscript", "--version"
23+
end
24+
end
25+
end

arkscript@v4.1.0.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class ArkscriptAt410 < Formula
2+
desc "Small, fast, functional and scripting language for C++ projects"
3+
homepage "https://arkscript-lang.dev"
4+
url "https://github.com/ArkScript-lang/Ark.git", tag: "v4.1.0"
5+
license "MPL-2.0"
6+
head "https://github.com/ArkScript-lang/Ark.git", branch: "dev"
7+
8+
depends_on "cmake" => :build
9+
10+
def install
11+
system "cmake", "-S", ".", "-B", "build", "-DARK_BUILD_EXE=On", *std_cmake_args
12+
system "cmake", "--build", "build"
13+
system "cmake", "--install", "build"
14+
end
15+
16+
def post_install
17+
ohai "ℹ️ Add ARKSCRIPT_PATH=" + lib + "/Ark/ to your bashrc/zshrc"
18+
end
19+
20+
test do
21+
with_env("DYLD_LIBRARY_PATH" => "$DYLD_LIBRARY_PATH:/opt/homebrew/lib") do
22+
system "#{bin}/arkscript", "--version"
23+
end
24+
end
25+
end

arkscript@v4.1.1.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class ArkscriptAt411 < Formula
2+
desc "Small, fast, functional and scripting language for C++ projects"
3+
homepage "https://arkscript-lang.dev"
4+
url "https://github.com/ArkScript-lang/Ark.git", tag: "v4.1.1"
5+
license "MPL-2.0"
6+
head "https://github.com/ArkScript-lang/Ark.git", branch: "dev"
7+
8+
depends_on "cmake" => :build
9+
10+
def install
11+
system "cmake", "-S", ".", "-B", "build", "-DARK_BUILD_EXE=On", *std_cmake_args
12+
system "cmake", "--build", "build"
13+
system "cmake", "--install", "build"
14+
end
15+
16+
def post_install
17+
ohai "ℹ️ Add ARKSCRIPT_PATH=" + lib + "/Ark/ to your bashrc/zshrc"
18+
end
19+
20+
test do
21+
with_env("DYLD_LIBRARY_PATH" => "$DYLD_LIBRARY_PATH:/opt/homebrew/lib") do
22+
system "#{bin}/arkscript", "--version"
23+
end
24+
end
25+
end

0 commit comments

Comments
 (0)