2015-03-14 05:22:54 +00:00
|
|
|
class OneMl < Formula
|
|
|
|
homepage "https://www.mpi-sws.org/~rossberg/1ml/"
|
|
|
|
url "https://www.mpi-sws.org/~rossberg/1ml/1ml-0.1.zip"
|
|
|
|
sha256 "64c40c497f48355811fc198a2f515d46c1bb5031957b87f6a297822b07bb9c9a"
|
2015-03-18 00:31:14 +00:00
|
|
|
revision 1
|
2015-03-14 05:22:54 +00:00
|
|
|
|
2015-03-16 00:45:15 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-18 15:17:00 +00:00
|
|
|
sha256 "cc73f66afbba3987c55fcf9f1f285c8597c81390dcead47a65023e6d44aa6b02" => :yosemite
|
|
|
|
sha256 "8697e17bf008608f3f81b8b561ec8ed82e3cdf9b06850a88c213b06f87b2abba" => :mavericks
|
|
|
|
sha256 "d9cc9f66611ddf1d255a3090886d84f76ecd90c82fc1b6833a9c736f372dc484" => :mountain_lion
|
2015-03-16 00:45:15 +00:00
|
|
|
end
|
|
|
|
|
2015-03-14 05:22:54 +00:00
|
|
|
depends_on "objective-caml" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "1ml"
|
2015-03-18 00:31:14 +00:00
|
|
|
(share/"one-ml/stdlib").install Dir.glob("*.1ml")
|
2015-03-14 05:22:54 +00:00
|
|
|
doc.install "README.txt"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-03-18 00:31:14 +00:00
|
|
|
system "#{bin}/1ml", "#{share}/one-ml/stdlib/prelude.1ml", "#{share}/one-ml/stdlib/paper.1ml"
|
2015-03-14 05:22:54 +00:00
|
|
|
end
|
|
|
|
end
|