Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install zsh HEAD from git through Homebrew
diff --git a/Library/Formula/zsh.rb b/Library/Formula/zsh.rb
index e7e67a5..4dff75e 100644
--- a/Library/Formula/zsh.rb
+++ b/Library/Formula/zsh.rb
@@ -5,8 +5,11 @@ class Zsh < Formula
mirror "http://www.zsh.org/pub/zsh-5.0.8.tar.bz2"
sha256 "8079cf08cb8beff22f84b56bd72bb6e6962ff4718d816f3d83a633b4c9e17d23"
+ head "https://github.com/zsh-users/zsh.git"
+
bottle do
revision 1
+ cellar :any
sha256 "0b25363741f6511290d28d56f620ccfda25c1e7938d255f35336bef1c0355e94" => :yosemite
sha256 "afb1a3bc447b2ba5a8b2a4f30d33750a5195cb08412213a9dc48dc9b7bb4308a" => :mavericks
sha256 "c68dff49299b118989c53654f668733afe191cdb2bcd965eca849f331ddc68d6" => :mountain_lion
@@ -16,13 +19,14 @@ class Zsh < Formula
deprecated_option "disable-etcdir" => "without-etcdir"
+ depends_on "autoconf"
depends_on "gdbm"
depends_on "pcre"
# zsh 5.0.8 broke du tab-completion for files, but this has been fixed in
# bug #35467. We ship our own version of the patch to avoid CHANGELOG conflict.
# http://sourceforge.net/p/zsh/code/ci/806f73a0b3d3959d5af12ce97e0258b4d4fe7d76/
- patch :DATA
+ # patch :DATA
def install
args = %W[
@@ -37,6 +41,7 @@ class Zsh < Formula
--enable-multibyte
--enable-pcre
--enable-zsh-secure-free
+ --enable-zsh-debug
--with-tcsetpgrp
]
@@ -46,14 +51,17 @@ class Zsh < Formula
args << "--enable-etcdir=/etc"
end
+ system "autoreconf"
system "./configure", *args
# Do not version installation directories.
inreplace ["Makefile", "Src/Makefile"],
"$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)"
- system "make", "install"
- system "make", "install.info"
+ system "make", "install.bin"
+ system "make", "install.modules"
+ system "make", "install.fns"
+ # system "make", "install.info"
end
def caveats; <<-EOS.undent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.