patchutils 0.3.4
Closes Homebrew/homebrew#39493. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
ac7df66742
commit
bce70d1d13
1 changed files with 11 additions and 10 deletions
|
@ -1,7 +1,14 @@
|
|||
class Patchutils < Formula
|
||||
homepage "http://cyberelk.net/tim/software/patchutils/"
|
||||
url "http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz"
|
||||
sha1 "89d3f8a454bacede1b9a112b3a13701ed876fcc1"
|
||||
url "http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.4.tar.xz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/p/patchutils/patchutils_0.3.4.orig.tar.xz"
|
||||
sha256 "cf55d4db83ead41188f5b6be16f60f6b76a87d5db1c42f5459d596e81dabe876"
|
||||
|
||||
head do
|
||||
url "https://github.com/twaugh/patchutils.git"
|
||||
depends_on "automake" => :build
|
||||
depends_on "autoconf" => :build
|
||||
end
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -10,19 +17,13 @@ class Patchutils < Formula
|
|||
sha1 "56c838384a5712786d2a424a57ce69b168e1f66e" => :mountain_lion
|
||||
end
|
||||
|
||||
# Fix 'filterdiff --exclude-from-file...' crashes
|
||||
# https://fedorahosted.org/patchutils/ticket/30
|
||||
patch do
|
||||
url "https://fedorahosted.org/patchutils/raw-attachment/ticket/30/0001-Provide-NULL-pointer-to-getline-to-avoid-realloc-ing.patch"
|
||||
sha1 "e787c8df1501feea5c895cdf9e8e01441035bdcf"
|
||||
end
|
||||
|
||||
def install
|
||||
system "./bootstrap" if build.head?
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match /a\/libexec\/NOOP/, shell_output("#{bin}/lsdiff #{test_fixtures("test.diff")}")
|
||||
assert_match %r{a\/libexec\/NOOP}, shell_output("#{bin}/lsdiff #{test_fixtures("test.diff")}")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue