homebrew-core/Formula/bazaar.rb

35 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Bazaar < Formula
desc "Human-friendly source code management (or 'version control')"
2015-07-19 09:59:52 +00:00
homepage "http://bazaar.canonical.com/"
url "https://launchpad.net/bzr/2.6/2.6.0/+download/bzr-2.6.0.tar.gz"
sha256 "0994797182eb828867eee81cccc79480bd2946c99304266bc427b902cf91dab0"
2014-12-06 18:07:33 +00:00
bottle do
cellar :any
sha1 "13eb87ddde4c81d02a54ba014712fa5d152b3f3c" => :yosemite
sha1 "79a3661c5a85e6041cbabb12fb237263dee1eaa9" => :mavericks
sha1 "d13db375fa4c2edf0119ffefbb995e4da59c7681" => :mountain_lion
end
def install
ENV.j1 # Builds aren't parallel-safe
2011-01-21 04:38:53 +00:00
# Make and install man page first
2015-07-19 09:59:52 +00:00
system "make", "man1/bzr.1"
2011-01-21 04:38:53 +00:00
man1.install "man1/bzr.1"
# Put system Python first in path
ENV.prepend_path "PATH", "/System/Library/Frameworks/Python.framework/Versions/Current/bin"
system "make"
inreplace "bzr", "#! /usr/bin/env python", "#!/usr/bin/python"
2015-07-19 09:59:52 +00:00
libexec.install "bzr", "bzrlib"
bin.install_symlink libexec+"bzr"
end
2015-07-19 09:59:52 +00:00
test do
system bin/"bzr", "init-repo", "test"
end
end