blob: f3153ffb77b9c0d2984c3786138af2432f3b64cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class Bazaar < Formula
homepage 'http://bazaar-vcs.org/'
url 'https://launchpad.net/bzr/2.6/2.6.0/+download/bzr-2.6.0.tar.gz'
sha1 '5eb4d0367c6d83396250165da5bb2c8a9f378293'
def install
ENV.j1 # Builds aren't parallel-safe
# Make and install man page first
system "make man1/bzr.1"
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"
libexec.install 'bzr', 'bzrlib'
bin.install_symlink libexec+'bzr'
end
end
|