homebrew-core/Formula/zsh.rb

31 lines
855 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Zsh < Formula
url 'http://downloads.sourceforge.net/project/zsh/zsh-dev/4.3.12/zsh-4.3.12.tar.gz'
homepage 'http://www.zsh.org/'
md5 '46ae7be975779b9b0ea24e8b30479a8b'
2010-04-21 03:47:36 +00:00
depends_on 'gdbm' => :optional
skip_clean :all
def install
2011-08-04 01:43:36 +00:00
system "./configure", "--prefix=#{prefix}",
# 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
def caveats; <<-EOS.undent
In order to use this build of zsh as your login shell,
it must be added to /etc/shells.
EOS
end
end