From a68610b098eb8974f5fc8f43c17119c8efbc9e47 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 2 May 2012 13:56:50 -0500 Subject: monotone: fix installation without pre-installed Boost Signed-off-by: Jack Nagel --- Library/Formula/monotone.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/monotone.rb b/Library/Formula/monotone.rb index cb5183cc8..79af0fc6f 100644 --- a/Library/Formula/monotone.rb +++ b/Library/Formula/monotone.rb @@ -39,10 +39,14 @@ class Monotone < Formula # 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", -- cgit v1.2.3