blob: 7dece6913ca02fd1be69c148db82ff6521e5f0f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
require 'formula'
class Monotone < Formula
homepage 'http://monotone.ca/'
url 'http://www.monotone.ca/downloads/1.0/monotone-1.0.tar.bz2'
sha1 'aac556bb26d92910b74b65450a0be6c5045e2052'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'botan'
depends_on 'libidn'
depends_on 'lua'
depends_on 'pcre'
fails_with_llvm "linker fails"
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.
boost = Formula.factory('boost')
unless boost.installed?
# Add header location to CPPFLAGS
boost.brew { ENV.append "CXXFLAGS", "-I"+Dir.pwd }
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|