homebrew-core/Formula/pony-stable.rb

36 lines
1.4 KiB
Ruby

class PonyStable < Formula
desc "Dependency manager for the Pony language"
homepage "https://github.com/ponylang/pony-stable"
url "https://github.com/ponylang/pony-stable/archive/0.2.2.tar.gz"
sha256 "8fca5f0f600e695d648200a7492c5d8cea82581f4e4e138f0bb621911d9e4c13"
license "BSD-2-Clause"
head "https://github.com/ponylang/pony-stable.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, big_sur: "6989c2d99d5b71bbabcc3728f218c195c06ab03363a54a1e8493cb7715d518f5"
sha256 cellar: :any_skip_relocation, catalina: "1375ab1923d90e07e05071bad1effb66aef547bd6d9fd98a40afbdb65596471e"
sha256 cellar: :any_skip_relocation, mojave: "1375ab1923d90e07e05071bad1effb66aef547bd6d9fd98a40afbdb65596471e"
sha256 cellar: :any_skip_relocation, high_sierra: "caf0c823ba581ab0e669d0372c06d1cb74262f05334814a5f49370659aa030d1"
end
# "Stable is no longer being developed. It's been replaced by Corral
# (https://github.com/ponylang/corral)."
disable! date: "2022-07-31", because: :repo_archived
depends_on "ponyc"
def install
system "make", "prefix=#{prefix}", "install"
end
test do
(testpath/"test/main.pony").write <<~EOS
actor Main
new create(env: Env) =>
env.out.print("Hello World!")
EOS
system "#{bin}/stable", "env", "ponyc", "test"
assert_equal "Hello World!", shell_output("./test1").chomp
end
end