From d57cea38cfb5fe340a3b4209d95dd7164fb3466f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 8 May 2014 10:16:27 +0100 Subject: ice: make python bindings optional. Closes #29054. --- Library/Formula/ice.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3