require 'formula' class Zsh :optional skip_clean :all def install system "./configure", "--disable-debug", "--prefix=#{prefix}", "--disable-dependency-tracking", # don't version stuff in Homebrew, we already do that! "--enable-fndir=#{share}/zsh/functions", "--enable-scriptdir=#{share}/zsh/scripts" # Again, don't version installation directories inreplace ["Makefile", "Src/Makefile"], "$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)" system "make install" end end