4d682f2db4
Better tests are certainly welcome, but keep in mind that the source is not available to `brew test`. If `make check` is necessary it should be done as part of the build. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
44 lines
1.3 KiB
Ruby
44 lines
1.3 KiB
Ruby
require 'formula'
|
|
|
|
class Zsh < Formula
|
|
homepage 'http://www.zsh.org/'
|
|
url 'http://sourceforge.net/projects/zsh/files/zsh-dev/4.3.16/zsh-4.3.16.tar.gz'
|
|
md5 '95fc26c6f163178484860d31de98ac13'
|
|
|
|
depends_on 'gdbm'
|
|
depends_on 'libiconv'
|
|
depends_on 'pcre'
|
|
|
|
skip_clean :all
|
|
|
|
def install
|
|
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
|