class Vimpc < Formula desc "Ncurses based mpd client with vi like key bindings" homepage "http://sourceforge.net/projects/vimpc/" url "https://downloads.sourceforge.net/project/vimpc/Release%200.09.1/vimpc-0.09.1.tar.gz" sha256 "082fa9974e01bf563335ebf950b2f9bc129c0d05c0c15499f7827e8418306031" head do url "https://github.com/boysetsfrog/vimpc.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build end depends_on "pkg-config" => :build depends_on "boost" => :build unless MacOS.version >= :mavericks depends_on "taglib" depends_on "libmpdclient" depends_on "pcre" def install system "./autogen.sh" if build.head? system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" end test do system "#{bin}/vimpc", "-v" end end