2009-11-19 03:49:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Bazaar <Formula
|
2010-04-01 11:06:57 +00:00
|
|
|
url 'http://launchpadlibrarian.net/41811693/bzr-2.1.1.tar.gz'
|
|
|
|
md5 'ab6b5e0cc449b27abac2b4d717afe09d'
|
2009-11-19 03:49:34 +00:00
|
|
|
homepage 'http://bazaar-vcs.org/'
|
|
|
|
|
2010-01-20 18:01:51 +00:00
|
|
|
aka :bzr
|
|
|
|
|
2009-11-19 03:49:34 +00:00
|
|
|
def install
|
|
|
|
ENV.minimal_optimization
|
2010-01-24 15:50:18 +00:00
|
|
|
inreplace 'setup.py', 'man/man1', 'share/man/man1'
|
2009-12-15 15:41:53 +00:00
|
|
|
system "python", "setup.py", "build"
|
2009-11-19 03:49:34 +00:00
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
|
|
|
end
|
2010-01-19 14:41:25 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python2.6/site-packages
|
|
|
|
|
|
|
|
EOS
|
|
|
|
end
|
2009-11-19 03:49:34 +00:00
|
|
|
end
|