Skip to content

Commit

Permalink
Use boost-python instead of boost => with-python
Browse files Browse the repository at this point in the history
Boost.Python support in Homebrew is moving from the boost formula to a
new boost-python formula. This commit updates formulas that were using
boost --with-python to use boost-python instead.

This should not be committed to master until Homebrew/legacy-homebrew#30957 is
accepted.

Closes #1080.
  • Loading branch information
tdsmith committed Aug 30, 2014
1 parent 7c82b23 commit 6b73ff2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion gal-sim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class GalSim < Formula

depends_on "scons" => :build
depends_on "fftw"
depends_on "boost" => 'with-python'
depends_on "boost"
depends_on "boost-python"
depends_on "tmv-cpp"

# pyfits should come from pip
Expand Down
6 changes: 4 additions & 2 deletions graph-tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class GraphTool < Formula
depends_on 'cairomm' => 'c++11' if build.with? 'cairo'

if build.with? 'python3'
depends_on 'boost' => ['c++11', 'with-python3']
depends_on 'boost' => 'c++11'
depends_on 'boost-python' => 'with-python3'
depends_on 'py3cairo' if build.with? 'cairo'
depends_on 'matplotlib' => 'with-python3'
depends_on 'numpy' => 'with-python3'
depends_on 'scipy' => 'with-python3'
else
depends_on 'boost' => ['c++11', 'with-python']
depends_on 'boost' => 'c++11'
depends_on 'boost-python'
depends_on 'py2cairo' if build.with? 'cairo'
depends_on 'matplotlib'
depends_on 'numpy'
Expand Down
2 changes: 1 addition & 1 deletion madlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class Madlib < Formula
head "https://github.com/madlib/madlib.git", :branch => "master"

boost_opts = []
boost_opts << "with-python" if build.with? :python
boost_opts << "c++11" if MacOS.version < :mavericks
depends_on "boost" => boost_opts
depends_on "boost-python" if build.with? "python"
depends_on "cmake" => :build
depends_on "postgresql" => ['with-python']
depends_on :python => :optional
Expand Down
3 changes: 2 additions & 1 deletion openimageio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class Openimageio < Formula
depends_on 'opencolorio'
depends_on 'ilmbase'
depends_on 'openexr'
depends_on 'boost' => 'with-python'
depends_on 'boost'
depends_on 'boost-python'
depends_on 'libtiff'
depends_on 'jpeg'
depends_on 'openjpeg'
Expand Down
3 changes: 2 additions & 1 deletion pykep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class Pykep < Formula
head "https://github.com/esa/pykep.git"

depends_on "cmake" => :build
depends_on "boost" => "with-python"
depends_on "boost"
depends_on "boost-python"
depends_on :python

def install
Expand Down
4 changes: 2 additions & 2 deletions vigra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Vigra < Formula
# vigra python bindings requires boost-python
# see http://packages.ubuntu.com/saucy/python-vigra
if build.with? "python"
boostwith = ["with-python"]
boostwith = []
boostwith << "c++11" if build.cxx11?
depends_on "boost" => boostwith
depends_on "boost-python" => boostwith
end

def install
Expand Down

0 comments on commit 6b73ff2

Please sign in to comment.