aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-05-08 10:16:27 +0100
committerMike McQuaid2014-05-08 10:16:53 +0100
commitd57cea38cfb5fe340a3b4209d95dd7164fb3466f (patch)
tree818d981f9097b0dc71dc38ca5cae8d902ca45f4c /Library/Formula
parent56d5f66abe8296025bad969f2e39cb93d479a7e4 (diff)
downloadhomebrew-d57cea38cfb5fe340a3b4209d95dd7164fb3466f.tar.bz2
ice: make python bindings optional.
Closes #29054.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ice.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/ice.rb b/Library/Formula/ice.rb
index f1b316a49..8817c2509 100644
--- a/Library/Formula/ice.rb
+++ b/Library/Formula/ice.rb
@@ -10,6 +10,7 @@ class Ice < Formula
depends_on 'berkeley-db'
depends_on 'mcpp'
+ depends_on :python => :optional
# 1. TODO: document the first patch
# 2. Patch to fix build with libc++, reported upstream:
@@ -49,11 +50,13 @@ class Ice < Formula
system "make", "install", *args
end
- args << "install_pythondir=#{lib}/python2.7/site-packages"
- args << "install_libdir=#{lib}/python2.7/site-packages"
- cd "py" do
- system "make", *args
- system "make", "install", *args
+ if build.with? "python"
+ args << "install_pythondir=#{lib}/python2.7/site-packages"
+ args << "install_libdir=#{lib}/python2.7/site-packages"
+ cd "py" do
+ system "make", *args
+ system "make", "install", *args
+ end
end
libexec.install "#{lib}/ImportKey.class"