7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
26 lines
818 B
Ruby
26 lines
818 B
Ruby
require 'formula'
|
|
|
|
class Zsh <Formula
|
|
url 'http://downloads.sourceforge.net/project/zsh/zsh-dev/4.3.10/zsh-4.3.10.tar.gz'
|
|
homepage 'http://www.zsh.org/'
|
|
md5 '031efc8c8efb9778ffa8afbcd75f0152'
|
|
|
|
depends_on 'gdbm' => :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
|