homebrew-core/Formula/zsh.rb

45 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Zsh < Formula
homepage 'http://www.zsh.org/'
2012-01-20 19:24:25 +00:00
url 'http://sourceforge.net/projects/zsh/files/zsh-dev/4.3.17/zsh-4.3.17.tar.gz'
md5 '9074077945550d6684ebe18b3b167d52'
depends_on 'gdbm'
depends_on 'libiconv'
depends_on 'pcre'
2010-04-21 03:47:36 +00:00
skip_clean :all
def install
2011-08-04 01:43:36 +00:00
system "./configure", "--prefix=#{prefix}",
"--disable-etcdir",
"--enable-fndir=#{share}/zsh/functions",
"--enable-site-fndir=#{share}/zsh/site-functions",
"--enable-scriptdir=#{share}/zsh/scripts",
"--enable-site-scriptdir=#{share}/zsh/site-scripts",
"--enable-cap",
"--enable-function-subdirs",
"--enable-maildir-support",
"--enable-multibyte",
"--enable-pcre",
"--enable-zsh-secure-free",
"--with-tcsetpgrp"
# Do not version installation directories.
inreplace ["Makefile", "Src/Makefile"],
"$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)"
system "make install"
end
def test
system "#{bin}/zsh --version"
end
def caveats; <<-EOS.undent
To use this build of Zsh as your login shell, add it to /etc/shells.
EOS
end
end