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"
|
|
|
|
|
2015-04-18 02:32:55 +00:00
|
|
|
head do
|
|
|
|
url "git://thyrsus.com/repositories/src.git"
|
|
|
|
depends_on "asciidoc" => :build
|
|
|
|
end
|
2014-11-13 18:44:24 +00:00
|
|
|
|
2015-01-01 15:30:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-04-05 05:12:42 +00:00
|
|
|
sha256 "654b13895e6e8e7c1f99a007a17d0c6ab26625e2dd732631016dcaeddd5d942d" => :yosemite
|
|
|
|
sha256 "91d3fd19e7d8189930d72f03ab1b092a1291252b47076c72c1c1988f69d822e5" => :mavericks
|
|
|
|
sha256 "22e3c9dd3842b0d308c56832a04116f7ce8b0a6055a95c4b42c2d3548f02fe5d" => :mountain_lion
|
2015-01-01 15:30:39 +00:00
|
|
|
end
|
|
|
|
|
2015-04-03 02:12:59 +00:00
|
|
|
conflicts_with "srclib", :because => "both install a 'src' binary"
|
|
|
|
|
2015-01-06 02:04:00 +00:00
|
|
|
depends_on "rcs"
|
|
|
|
|
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
|