2009-11-19 03:49:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bazaar < Formula
|
2012-02-12 18:54:28 +00:00
|
|
|
homepage 'http://bazaar-vcs.org/'
|
2013-08-12 14:07:32 +00:00
|
|
|
url 'https://launchpad.net/bzr/2.6/2.6.0/+download/bzr-2.6.0.tar.gz'
|
|
|
|
sha1 '5eb4d0367c6d83396250165da5bb2c8a9f378293'
|
2009-11-19 03:49:34 +00:00
|
|
|
def install
|
2013-12-06 04:33:36 +00:00
|
|
|
ENV.j1 # Builds aren't parallel-safe
|
|
|
|
|
2011-01-21 04:38:53 +00:00
|
|
|
# Make and install man page first
|
|
|
|
system "make man1/bzr.1"
|
|
|
|
man1.install "man1/bzr.1"
|
|
|
|
|
2013-12-06 04:33:36 +00:00
|
|
|
# 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"
|
|
|
|
libexec.install 'bzr', 'bzrlib'
|
2010-01-19 14:41:25 +00:00
|
|
|
|
2013-12-06 04:33:36 +00:00
|
|
|
bin.install_symlink libexec+'bzr'
|
2013-07-18 11:36:26 +00:00
|
|
|
end
|
2009-11-19 03:49:34 +00:00
|
|
|
end
|