require 'formula' class Unison < Formula homepage 'http://www.cis.upenn.edu/~bcpierce/unison/' url 'http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/unison-2.48.3.tar.gz' sha1 '74f1c087ee49dc1db4680ad779280f7333d5c968' bottle do cellar :any sha1 "05c2f2b41d9cf864901577829fb71e05fe66d25b" => :yosemite sha1 "681d82f73649d0580acfbce2a6ce66f32ad6da9c" => :mavericks sha1 "0d83d72a11c558eec59ae9aa20476165dc56cb85" => :mountain_lion end depends_on 'objective-caml' => :build def install ENV.j1 ENV.delete "CFLAGS" # ocamlopt reads CFLAGS but doesn't understand common options ENV.delete "NAME" # https://github.com/Homebrew/homebrew/issues/28642 system "make ./mkProjectInfo" system "make UISTYLE=text" bin.install 'unison' end end