From 58adb103ce2546bc5537162a05d46a685f3c23c7 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Thu, 13 Nov 2014 19:44:24 +0100 Subject: src 0.18 Closes #34165. Signed-off-by: Mike McQuaid --- Library/Formula/src.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Library/Formula/src.rb (limited to 'Library/Formula') diff --git a/Library/Formula/src.rb b/Library/Formula/src.rb new file mode 100644 index 000000000..6e6df8224 --- /dev/null +++ b/Library/Formula/src.rb @@ -0,0 +1,22 @@ +class Src < Formula + homepage "http://www.catb.org/~esr/src/" + url "http://www.catb.org/~esr/src/src-0.18.tar.gz" + sha1 "d4234bb6c56073204836ab23d18f36c1a732dd2c" + + # test is failing on Mountain Lion + depends_on :macos => :mavericks + + def install + # OSX doesn't provide a /usr/bin/python2. Upstream has been notified but + # cannot fix the issue. See: + # https://github.com/Homebrew/homebrew/pull/34165#discussion_r22342214 + inreplace "src", "#!/usr/bin/env python2", "#!/usr/bin/env python" + system "make", "install", "prefix=#{prefix}" + end + + test do + (testpath/"test.txt").write "foo" + system "#{bin}/src", "commit", "-m", "hello", "test.txt" + system "#{bin}/src", "status", "test.txt" + end +end -- cgit v1.2.3