2023-07-29 07:53:19 +01:00
|
|
|
class Lune < Formula
|
2023-08-02 06:54:36 +01:00
|
|
|
desc "Standalone Luau script runtime"
|
2023-07-29 07:53:19 +01:00
|
|
|
homepage "https://lune-org.github.io/docs"
|
2023-08-24 13:19:44 +01:00
|
|
|
url "https://github.com/filiptibell/lune/archive/refs/tags/v0.7.7.tar.gz"
|
|
|
|
sha256 "f6311720ede916d520a427c04be469cd59cb2359a4ca7bc4b8abedaa8c3691ed"
|
2023-07-29 07:53:19 +01:00
|
|
|
license "MPL-2.0"
|
|
|
|
|
2023-08-02 06:54:36 +01:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
2023-07-29 07:53:19 +01:00
|
|
|
def install
|
2023-08-04 18:35:26 +01:00
|
|
|
system "cargo", "install", "--all-features", *std_cargo_args
|
2023-07-29 07:53:19 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2023-08-02 06:54:36 +01:00
|
|
|
(testpath/"test.lua").write("print(2 + 2)")
|
2023-08-04 18:35:26 +01:00
|
|
|
assert_equal "4", shell_output("#{bin}/lune test.lua").chomp
|
2023-07-29 07:53:19 +01:00
|
|
|
end
|
2023-07-29 18:58:27 +01:00
|
|
|
end
|