34 lines
1.4 KiB
Ruby
34 lines
1.4 KiB
Ruby
class CrystalIcr < Formula
|
|
desc "Interactive console for Crystal programming language"
|
|
homepage "https://github.com/crystal-community/icr"
|
|
url "https://github.com/crystal-community/icr/archive/v0.9.0.tar.gz"
|
|
sha256 "2530293e94b60d69919a79b49e83270f1462058499ad37a762233df8d6e5992c"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 arm64_ventura: "a7d8abeeb9c8fc24d04a94fc93744c4c8136c8c72dacf16dcb78f8fd5bd14ddf"
|
|
sha256 arm64_monterey: "0c38a89034238cb822d76c5d61b1ecd57aa960356a6aabdf7f9e44fc5d8ba29a"
|
|
sha256 arm64_big_sur: "d98e57c4a69bfe60a4d30b304f11b04bd946d5b922325fd20aaa1895f6a392c8"
|
|
sha256 ventura: "50ff1cc9f734f1fa2bcb8b3443f57702c985231a520268f32285c9b1a2842092"
|
|
sha256 monterey: "eae95948e77fbb4ae9c57358096b0fd394075af88dec1c5ceb5cd8108fbd7da0"
|
|
sha256 big_sur: "8daaa1313d4bde47396ed4f6e0801e937b128b64cc4eb7528325cb27404dd765"
|
|
sha256 catalina: "4d419018a1b470514b9ee5833dd8062fa56b954ed8ae255a2062554368f0185f"
|
|
sha256 mojave: "19ad5e81e9f9405ebbbf8ed882e77a9e4c0d32965ebda9012126bcc6dfaa2542"
|
|
sha256 x86_64_linux: "4fba4ea7063d8267fdbb37778f48b020386edc1e7be0268f5dcb42a5b948753c"
|
|
end
|
|
|
|
depends_on "crystal"
|
|
depends_on "libevent"
|
|
depends_on "libyaml"
|
|
depends_on "openssl@1.1"
|
|
depends_on "readline"
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
assert_match "icr version #{version}", shell_output("#{bin}/icr -v")
|
|
end
|
|
end
|