aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:12:26 +0000
committerMike McQuaid2014-01-04 13:35:44 +0000
commitadf660cceaf7fae9745c9d81b64c511e65fb88f7 (patch)
treebfe91fd7a0bb55656877b99bd9a35aa0a3b64d45 /Library/Formula
parent6502706b91304bfcd2613c89173d2fe2975b93f4 (diff)
downloadhomebrew-adf660cceaf7fae9745c9d81b64c511e65fb88f7.tar.bz2
open-babel: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/open-babel.rb17
1 files changed, 4 insertions, 13 deletions
diff --git a/Library/Formula/open-babel.rb b/Library/Formula/open-babel.rb
index e78bf359d..52b1fe950 100644
--- a/Library/Formula/open-babel.rb
+++ b/Library/Formula/open-babel.rb
@@ -29,14 +29,7 @@ class OpenBabel < Formula
args << "-DCAIRO_INCLUDE_DIRS='#{HOMEBREW_PREFIX}/include/cairo'" if build.with? 'cairo'
args << "-DCAIRO_LIBRARIES='#{HOMEBREW_PREFIX}/lib/libcairo.dylib'" if build.with? 'cairo'
- python do
- args << "-DPYTHON_BINDINGS=ON"
- # For Xcode-only systems, the headers of system's python are inside of Xcode:
- args << "-DPYTHON_INCLUDE_DIR='#{python.incdir}'"
- # Cmake picks up the system's python dylib, even if we have a brewed one:
- args << "-DPYTHON_LIBRARY='#{python.libdir}/lib#{python.xy}.dylib'"
- args << "-DPYTHON_PACKAGES_PATH='#{python.site_packages}'"
- end
+ args << "-DPYTHON_BINDINGS=ON" if build.with? 'python'
args << '..'
@@ -46,15 +39,13 @@ class OpenBabel < Formula
system "make install"
end
- python do
- python.site_packages.install lib/'openbabel.py', lib/'pybel.py', lib/'_openbabel.so'
+ if build.with? 'python'
+ (lib+'python2.7/site-packages').install lib/'openbabel.py', lib/'pybel.py', lib/'_openbabel.so'
end
end
def caveats
- s = ''
- s += python.standard_caveats if python
- s += <<-EOS.undent
+ <<-EOS.undent
Java libraries are installed to #{HOMEBREW_PREFIX}/lib so this path should be
included in the CLASSPATH environment variable.
EOS