diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8cb31e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +__arcache__ +iteration.ar +Chloride +.DS_Store \ No newline at end of file diff --git a/Formula/argon.rb b/Formula/argon.rb new file mode 100644 index 0000000..98dff40 --- /dev/null +++ b/Formula/argon.rb @@ -0,0 +1,28 @@ +class Argon < Formula + desc "Interpreter written in C for the Argon Programming Language" + homepage "https://git.wbell.dev/Open-Argon/Chloride" + version "0.0.1" + license "GPL-3.0-only" + head "https://git.wbell.dev/TussockyJoker/Chloride.git", branch: "main" + # license "GNU General Public License v3.0" + + depends_on "cmake" => :build + depends_on "flex" => :build + depends_on "bdw-gc" + depends_on "gmp" + depends_on "mpfr" + depends_on "pkg-config" + + def install + system "cmake", "-S", ".", "-B", "build", + "-DCMAKE_PREFIX_PATH=#{Formula["gmp"].opt_prefix};#{Formula["bdw-gc"].opt_prefix};#{Formula["mpfr"].opt_prefix}", + *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build", "--prefix", prefix + end + + test do + # assert_match "hello world", shell_output("echo \"term.log('hello world')\" | #{bin}/openargon") + system "#{bin}/openargon", "--version" + end +end