diff options
| author | Baptiste Fontaine | 2014-11-13 19:44:24 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-01 15:30:54 +0000 |
| commit | 58adb103ce2546bc5537162a05d46a685f3c23c7 (patch) | |
| tree | fa6a37fc33ee85b035269908a69bfa72b566d7f0 /Library/Formula | |
| parent | 5b6d2dca03bef65f3ae7d639e9096b9e7f87ee4e (diff) | |
| download | homebrew-58adb103ce2546bc5537162a05d46a685f3c23c7.tar.bz2 | |
src 0.18
Closes #34165.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/src.rb | 22 |
1 files changed, 22 insertions, 0 deletions
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 |
