homebrew-core/Formula/mosml.rb

33 lines
1.6 KiB
Ruby

class Mosml < Formula
desc "Moscow ML"
homepage "https://mosml.org/"
url "https://github.com/kfl/mosml/archive/ver-2.10.1.tar.gz"
sha256 "fed5393668b88d69475b070999b1fd34e902591345de7f09b236824b92e4a78f"
license "GPL-2.0"
bottle do
sha256 arm64_big_sur: "0163ff06ef4997b1ab8eb1e55463475fc78f89ad4dd795d7ff4caeaca932a901"
sha256 big_sur: "96fae7154e49e57180eee17d8d90580a0e2d024f2f0b7510cfcc83d59f0449be"
sha256 catalina: "d39293549810bf64ade65bcbcb969abf1c76d0812c2d9e8c2ffd8329d2d2a34b"
sha256 mojave: "f1a7484f284f194ece9c3bc25a99b8f38312ff504b207a57337b7de7f4e46755"
sha256 high_sierra: "7a888abd233069f837cf9aba4021baa71387a4b720bc53323d40a963433b566a"
sha256 sierra: "297c05c55f2784f3b934a2fdb3ec2f91d8b11a06453c8649c1f6562cefdc089e"
sha256 el_capitan: "5dae62ca2034ba70844d684111cec58561895eac39db3177d439747512206002"
sha256 yosemite: "3a0289ba1b1a56cf3c2a598ccbee9b1739c7c35628a173dd00bd2f20fead6703"
sha256 cellar: :any_skip_relocation, x86_64_linux: "42bf79793655431b313d4c547e7c9b6867b2f1695035005a15b8da6c0b25c416"
end
depends_on "gmp"
def install
cd "src" do
system "make", "PREFIX=#{prefix}", "CC=#{ENV.cc}", "world"
system "make", "PREFIX=#{prefix}", "CC=#{ENV.cc}", "install"
end
end
test do
system "#{bin}/mosml", "-P full"
end
end