aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-01 17:57:38 -0700
committerAdam Vandenberg2010-04-14 11:35:10 -0700
commitf6bee937cee11681c2639cb6efe22179770e5b45 (patch)
treeae99606fef59f410408d6a3daf2dd41be54978c3 /Library/Formula
parentc6e8ec10455e9c21aae8fb6f7aceea58b8eff23e (diff)
downloadhomebrew-f6bee937cee11681c2639cb6efe22179770e5b45.tar.bz2
bazaar - use a standalone build
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.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bazaar.rb23
1 files changed, 14 insertions, 9 deletions
diff --git a/Library/Formula/bazaar.rb b/Library/Formula/bazaar.rb
index 38ec2931f..a83bbb771 100644
--- a/Library/Formula/bazaar.rb
+++ b/Library/Formula/bazaar.rb
@@ -8,18 +8,23 @@ class Bazaar <Formula
aka :bzr
def install
- ENV.minimal_optimization
- inreplace 'setup.py', 'man/man1', 'share/man/man1'
- system "python", "setup.py", "build"
- system "python", "setup.py", "install", "--prefix=#{prefix}"
- end
+ # 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']
- def caveats; <<-EOS
-Really Bazaar should be installed by easy_install or pip, but currently this
-doesn't work properly. As a result you need to set PYTHONPATH:
+ bin.mkpath
+ ln_s libexec+'bzr', bin+'bzr'
+ end
- export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python2.6/site-packages
+ 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