From a60e7d54fbf01f3641ca618a18917c73c65ab274 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 30 Mar 2011 16:33:27 -0700 Subject: [PATCH] monotone - fix sha1 and clean formula --- Formula/monotone.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Formula/monotone.rb b/Formula/monotone.rb index c267cb967c..7dece6913c 100644 --- a/Formula/monotone.rb +++ b/Formula/monotone.rb @@ -3,7 +3,7 @@ require 'formula' class Monotone < Formula homepage 'http://monotone.ca/' url 'http://www.monotone.ca/downloads/1.0/monotone-1.0.tar.bz2' - sha1 '7f82e1c1e852005b7f7de93c8892e371869ea418' + sha1 'aac556bb26d92910b74b65450a0be6c5045e2052' depends_on 'pkg-config' => :build depends_on 'gettext' @@ -16,18 +16,16 @@ class Monotone < Formula def install # Monotone only needs headers from Boost (it's templates all the way down!), so let's avoid - # building boost (which takes approximately forever) if it's not already installed. This is - # suggested in the Monotone installation instructions. + # building boost (which takes approximately forever) if it's not already installed. + # This is suggested in the Monotone installation instructions. boost = Formula.factory('boost') unless boost.installed? - # a formula's stage method is private, so we cannot call boost.stage - boost.brew do - ENV.append "CXXFLAGS", "-I"+Dir.pwd - end + # Add header location to CPPFLAGS + boost.brew { ENV.append "CXXFLAGS", "-I"+Dir.pwd } end - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end