mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
Instead of installing to a "site-packages" folder, just do a standalone build and link the "bzr" script into bin. This avoids the problem of files getting slotted into the site-packages folder of whatever happens to be the active Python when bzr is installed.
31 lines
667 B
Ruby
31 lines
667 B
Ruby
require 'formula'
|
|
|
|
class Bazaar <Formula
|
|
url 'http://launchpadlibrarian.net/41811693/bzr-2.1.1.tar.gz'
|
|
md5 'ab6b5e0cc449b27abac2b4d717afe09d'
|
|
homepage 'http://bazaar-vcs.org/'
|
|
|
|
aka :bzr
|
|
|
|
def install
|
|
# Make the manual before we install (mv) bzrlib
|
|
system "make man1/bzr.1"
|
|
man1.install gzip('man1/bzr.1')
|
|
|
|
system "make"
|
|
libexec.install ['bzr', 'bzrlib']
|
|
|
|
bin.mkpath
|
|
ln_s libexec+'bzr', bin+'bzr'
|
|
end
|
|
|
|
def caveats
|
|
<<-EOS.undent
|
|
We've built a "standalone" version of bazaar and installed its libraries to:
|
|
#{libexec}
|
|
|
|
We've specifically kept it out of your Python's "site-packages" folder.
|
|
EOS
|
|
end
|
|
end
|