From eae6d2ebf6c5161df2f2c4f0e42207f0641e2f3d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 14 May 2014 13:34:40 -0700 Subject: monotone 1.1 --- Library/Formula/monotone.rb | 51 +++++++++++++++------------------------------ 1 file changed, 17 insertions(+), 34 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/monotone.rb b/Library/Formula/monotone.rb index 77fa37095..22d15f431 100644 --- a/Library/Formula/monotone.rb +++ b/Library/Formula/monotone.rb @@ -1,49 +1,32 @@ -require 'formula' +require "formula" class Monotone < Formula - homepage 'http://monotone.ca/' - url 'http://www.monotone.ca/downloads/1.0/monotone-1.0.tar.bz2' - sha1 'aac556bb26d92910b74b65450a0be6c5045e2052' + homepage "http://monotone.ca/" + url "http://www.monotone.ca/downloads/1.1/monotone-1.1.tar.bz2" + sha1 "2b97559b252decaee3a374b81bf714cf33441ba3" - depends_on 'pkg-config' => :build - depends_on 'gettext' - depends_on 'libidn' - depends_on 'lua' - depends_on 'pcre' - - # http://botan.randombit.net/ - resource 'botan' do - url 'http://files.randombit.net/botan/v1.8/Botan-1.8.13.tbz' - sha1 '66cda9e05001e4a298cbb0095b9a3f6d11c4ef53' + bottle do end + depends_on "pkg-config" => :build + depends_on "gettext" + depends_on "libidn" + depends_on "lua" + depends_on "pcre" + depends_on "botan" + # Monotone only needs headers, not any built libraries + depends_on "boost" => :build + fails_with :llvm do build 2334 cause "linker fails" end def install - botan18_prefix = libexec+'botan18' - resource('botan').stage do - args = ["--prefix=#{botan18_prefix}"] - args << "--cpu=#{Hardware::CPU.arch_64_bit}" if MacOS.prefer_64_bit? - system "./configure.py", *args - system "make", "CXX=#{ENV.cxx}", "install" - end - - ENV['botan_CFLAGS'] = "-I#{botan18_prefix}/include" - ENV['botan_LIBS'] = "-L#{botan18_prefix}/lib -lbotan" - - # Monotone only needs headers from Boost, so avoid building the libraries. - # This is suggested in the Monotone installation instructions. + botan = Formula["botan"] - boost_prefix = buildpath/'boost' - boost = Formula['boost149'] - boost.brew do - boost_prefix.install Dir['*'] - # Add header location to CPPFLAGS - ENV.append 'CPPFLAGS', "-I#{boost_prefix}" - end + ENV["botan_CFLAGS"] = "-I#{botan.opt_include}/botan-1.10" + ENV["botan_LIBS"] = "-L#{botan.opt_lib} -lbotan-1.10" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" -- cgit v1.2.3