-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
class ArkscriptAT340 < Formula | ||
desc "Small, fast, functional and scripting language for C++ projects" | ||
homepage "https://arkscript-lang.dev" | ||
url "https://github.com/ArkScript-lang/Ark.git", tag: "v3.5.0" | ||
license "MPL-2.0" | ||
head "https://github.com/ArkScript-lang/Ark.git", branch: "dev" | ||
|
||
depends_on "cmake" => :build | ||
|
||
def install | ||
system "cmake", "-S", ".", "-B", "build", "-DARK_BUILD_EXE=On", *std_cmake_args | ||
system "cmake", "--build", "build" | ||
system "cmake", "--install", "build" | ||
end | ||
|
||
def post_install | ||
ohai "ℹ️ Add ARKSCRIPT_PATH=" + lib + "/Ark/ to your bashrc/zshrc" | ||
end | ||
|
||
test do | ||
with_env("DYLD_LIBRARY_PATH" => "$DYLD_LIBRARY_PATH:/opt/homebrew/lib") do | ||
system "#{bin}/arkscript", "--version" | ||
end | ||
end | ||
end | ||
|
||
Check failure on line 26 in [email protected] GitHub Actions / test-bot (ubuntu-latest)
|