aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"