2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-06 12:54:29 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Zsh < Formula
|
2011-06-06 22:23:18 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/zsh/zsh-dev/4.3.12/zsh-4.3.12.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.zsh.org/'
|
2011-06-06 22:23:18 +00:00
|
|
|
md5 '46ae7be975779b9b0ea24e8b30479a8b'
|
2009-09-06 12:54:29 +00:00
|
|
|
|
2010-04-21 03:47:36 +00:00
|
|
|
depends_on 'gdbm' => :optional
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean :all
|
|
|
|
|
2009-09-06 12:54:29 +00:00
|
|
|
def install
|
2011-08-04 01:43:36 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2009-09-06 12:54:29 +00:00
|
|
|
# don't version stuff in Homebrew, we already do that!
|
|
|
|
"--enable-fndir=#{share}/zsh/functions",
|
|
|
|
"--enable-scriptdir=#{share}/zsh/scripts"
|
|
|
|
|
2010-02-19 19:19:01 +00:00
|
|
|
# Again, don't version installation directories
|
|
|
|
inreplace ["Makefile", "Src/Makefile"],
|
|
|
|
"$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)"
|
2009-09-06 12:54:29 +00:00
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-06-25 18:58:56 +00:00
|
|
|
|
|
|
|
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
|
2009-09-06 12:54:29 +00:00
|
|
|
end
|