bzr - Fix building manpage
This commit is contained in:
parent
3342c75999
commit
173a1f1db2
1 changed files with 6 additions and 4 deletions
|
@ -10,6 +10,12 @@ class Bazaar <Formula
|
|||
end
|
||||
|
||||
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"
|
||||
|
||||
if ARGV.include? "--system"
|
||||
ENV.prepend "PATH", "/System/Library/Frameworks/Python.framework/Versions/Current/bin", ":"
|
||||
else
|
||||
|
@ -29,10 +35,6 @@ EOS
|
|||
archs = archs_for_command("python")
|
||||
ENV.minimal_optimization if archs.include? :ppc64 or archs.include? :ppc7400
|
||||
|
||||
# Make the manual before we install (mv) bzrlib
|
||||
system "make man1/bzr.1"
|
||||
man1.install gzip('man1/bzr.1')
|
||||
|
||||
system "make"
|
||||
inreplace "bzr", "#! /usr/bin/env python", "#!/usr/bin/python" if ARGV.include? "--system"
|
||||
libexec.install ['bzr', 'bzrlib']
|
||||
|
|
Loading…
Reference in a new issue