Skip to content

Commit

Permalink
monotone: fix installation without pre-installed Boost
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed May 2, 2012
1 parent 144fe78 commit a68610b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/Formula/monotone.rb
Expand Up @@ -39,10 +39,14 @@ def install
# building boost (which takes approximately forever) if it's not already installed.
# This is suggested in the Monotone installation instructions.

boost_prefix = buildpath/'boost'
boost = Formula.factory('boost')
unless boost.installed?
# Add header location to CPPFLAGS
boost.brew { ENV.append "CPPFLAGS", "-I#{buildpath}" }
boost.brew do
boost_prefix.install Dir['*']
# Add header location to CPPFLAGS
ENV.append 'CPPFLAGS', "-I#{boost_prefix}"
end
end

system "./configure", "--disable-dependency-tracking",
Expand Down

0 comments on commit a68610b

Please sign in to comment.