aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:10:08 +0000
committerMike McQuaid2014-01-04 13:35:48 +0000
commitcebba2699409f67c1f456b353089806885d7ff58 (patch)
tree8cfb027bff0578fa420cc017b86dd0435aaa247f /Library/Formula
parent43b22f4745de5b42856c622aeb2e658cdbf28925 (diff)
downloadhomebrew-cebba2699409f67c1f456b353089806885d7ff58.tar.bz2
xapian: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xapian.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/xapian.rb b/Library/Formula/xapian.rb
index cb3b1bc58..6fc997397 100644
--- a/Library/Formula/xapian.rb
+++ b/Library/Formula/xapian.rb
@@ -52,7 +52,8 @@ class Xapian < Formula
end
if build.with? 'python'
- ENV['PYTHON_LIB'] = python.site_packages
+ (lib+'python2.7/site-packages').mkpath
+ ENV['PYTHON_LIB'] = lib+'python2.7/site-packages'
args << "--with-python"
else
args << "--without-python"
@@ -71,16 +72,12 @@ class Xapian < Formula
end
def caveats
- s = ''
- s += python.standard_caveats if python
if build.include? 'ruby'
- s += <<-EOS.undent
+ <<-EOS.undent
You may need to add the Ruby bindings to your RUBYLIB from:
#{HOMEBREW_PREFIX}/lib/ruby/site_ruby
EOS
end
- return s.empty? ? nil : s
end
-
end