2014-11-13 18:44:24 +00:00
|
|
|
class Src < Formula
|
|
|
|
homepage "http://www.catb.org/~esr/src/"
|
2015-04-05 05:02:21 +00:00
|
|
|
url "http://www.catb.org/~esr/src/src-0.19.tar.gz"
|
|
|
|
sha256 "3d9c5c2fe816b3f273aab17520b917a774e90776c766f165efb6ae661378a65c"
|
|
|
|
|
|
|
|
head "git://thyrsus.com/repositories/src.git"
|
2014-11-13 18:44:24 +00:00
|
|
|
|
2015-01-01 15:30:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-06 19:03:31 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "65716b34afa534be339e0a954cc2206398002401" => :yosemite
|
|
|
|
sha1 "0a43a156e56b9dc7b62f8fe9cfc9095aa5d3cf64" => :mavericks
|
|
|
|
sha1 "cd51d4f5714a360549d9548a25c27a508aa9ae1b" => :mountain_lion
|
2015-01-01 15:30:39 +00:00
|
|
|
end
|
|
|
|
|
2015-01-06 02:04:00 +00:00
|
|
|
depends_on "rcs"
|
2015-04-05 05:02:21 +00:00
|
|
|
depends_on "asciidoc" if build.head?
|
2015-01-06 02:04:00 +00:00
|
|
|
|
2014-11-13 18:44:24 +00:00
|
|
|
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"
|
2015-04-05 05:02:21 +00:00
|
|
|
|
|
|
|
if build.head?
|
|
|
|
ENV["XML_CATALOG_FILES"] = HOMEBREW_PREFIX/"etc/xml/catalog"
|
|
|
|
end
|
|
|
|
|
2014-11-13 18:44:24 +00:00
|
|
|
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
|