aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-16 21:35:23 -0500
committerJack Nagel2014-03-16 23:09:22 -0500
commitb985aa6e5dc883f02bcf737bb4d29806c623c034 (patch)
tree8fa4c0b39dd0003a2b85e2212f8984d168fa99f9 /Library/Formula
parentbc8b5bcaf7b3d66d5e5b7021065c5cc42e0d65d8 (diff)
downloadhomebrew-b985aa6e5dc883f02bcf737bb4d29806c623c034.tar.bz2
tig: use checksummed patches
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tig.rb28
1 files changed, 17 insertions, 11 deletions
diff --git a/Library/Formula/tig.rb b/Library/Formula/tig.rb
index be3024d5a..bcd9bdc5e 100644
--- a/Library/Formula/tig.rb
+++ b/Library/Formula/tig.rb
@@ -2,8 +2,23 @@ require 'formula'
class Tig < Formula
homepage 'http://jonas.nitro.dk/tig/'
- url 'http://jonas.nitro.dk/tig/releases/tig-1.2.1.tar.gz'
- sha1 '5755bae7342debf94ef33973e0eaff6207e623dc'
+
+ stable do
+ url "http://jonas.nitro.dk/tig/releases/tig-1.2.1.tar.gz"
+ sha1 "5755bae7342debf94ef33973e0eaff6207e623dc"
+
+ # fixes the problem with displaying/searching multibyte characters
+ # upstream pull request: https://github.com/jonas/tig/issues/99
+ patch do
+ url "https://github.com/spin6lock/tig/commit/159eff692b24aa05f766f76922b0f2515fbbf415.diff"
+ sha1 "6c215cebf6719923a5ecc7619af271961e401429"
+ end
+
+ patch do
+ url "https://github.com/spin6lock/tig/commit/70cb91e7d210b92ab012d9819bd20ebe92885bd6.diff"
+ sha1 "5a4bc2a0ceb2ce5de563362f61ea5a825e5bce05"
+ end
+ end
head do
url "https://github.com/jonas/tig.git"
@@ -18,15 +33,6 @@ class Tig < Formula
depends_on "xmlto"
end
- # fixes the problem with displaying/searching multibyte characters
- # upstream pull request: https://github.com/jonas/tig/issues/99
- def patches
- [
- "https://github.com/spin6lock/tig/commit/159eff692b24aa05f766f76922b0f2515fbbf415.diff",
- "https://github.com/spin6lock/tig/commit/70cb91e7d210b92ab012d9819bd20ebe92885bd6.diff"
- ] unless build.head?
- end
-
def install
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"