require 'formula' class MidnightCommander < Formula homepage 'http://www.midnight-commander.org/' url 'http://www.midnight-commander.org/downloads/mc-4.8.6.tar.bz2', :using => CurlUnsafeDownloadStrategy sha256 '17034d16cf5e86ed15e0f5de95238afb0a8c6069b1f0a29397042451c1b75877' depends_on 'pkg-config' => :build depends_on 'glib' depends_on 's-lang' def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--without-x", "--with-screen=slang" system "make install" end end