git 2.1.0, fix bug git-subtree Makefile

Closes Homebrew/homebrew#31638.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Denis Denisov 2014-08-16 18:15:15 +03:00 committed by Jack Nagel
parent 8a52c69f60
commit 6af09d0725

View file

@ -2,8 +2,8 @@ require 'formula'
class Git < Formula class Git < Formula
homepage "http://git-scm.com" homepage "http://git-scm.com"
url "https://www.kernel.org/pub/software/scm/git/git-2.0.4.tar.gz" url "https://www.kernel.org/pub/software/scm/git/git-2.1.0.tar.gz"
sha1 "626f317fa1ceba416a7a83e0d5c177cdbd2a54aa" sha1 "e22564e152e3242bc4fcfcc7eb05fde7a4c83e04"
head "https://github.com/git/git.git", :shallow => false head "https://github.com/git/git.git", :shallow => false
@ -14,13 +14,13 @@ class Git < Formula
end end
resource "man" do resource "man" do
url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.0.4.tar.gz" url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.1.0.tar.gz"
sha1 "a0fc316a08f55216ff5c83cb5b31cb9ed7d5b258" sha1 "044bd50fa51f436a6e93bf7ba2361b60b1f56e45"
end end
resource "html" do resource "html" do
url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.0.4.tar.gz" url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.1.0.tar.gz"
sha1 "25f5d2614cf4bc6cb031cc627be0e06aeff66f50" sha1 "5eb777145a2f084b601b025eb427c2f079fad0e6"
end end
option 'with-blk-sha1', 'Compile with the block-optimized SHA1 implementation' option 'with-blk-sha1', 'Compile with the block-optimized SHA1 implementation'
@ -37,6 +37,10 @@ class Git < Formula
depends_on 'go' => :build if build.with? 'persistent-https' depends_on 'go' => :build if build.with? 'persistent-https'
depends_on 'subversion' => 'perl' if build.with? 'brewed-svn' depends_on 'subversion' => 'perl' if build.with? 'brewed-svn'
# This patch fixes Makefile bug contrib/subtree
# http://thread.gmane.org/gmane.comp.version-control.git/255347
patch :DATA
def install def install
# If these things are installed, tell Git build system to not use them # If these things are installed, tell Git build system to not use them
ENV['NO_FINK'] = '1' ENV['NO_FINK'] = '1'
@ -146,3 +150,22 @@ class Git < Formula
end end
end end
end end
__END__
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -1,3 +1,5 @@
+all::
+
-include ../../config.mak.autogen
-include ../../config.mak
@@ -34,7 +36,7 @@ GIT_SUBTREE_XML := git-subtree.xml
GIT_SUBTREE_TXT := git-subtree.txt
GIT_SUBTREE_HTML := git-subtree.html
-all: $(GIT_SUBTREE)
+all:: $(GIT_SUBTREE)
$(GIT_SUBTREE): $(GIT_SUBTREE_SH)
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' $< >$@