homebrew-core/Formula/monotone.rb

33 lines
949 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Monotone < Formula
homepage 'http://monotone.ca/'
url 'http://www.monotone.ca/downloads/1.0/monotone-1.0.tar.bz2'
2011-03-30 23:33:27 +00:00
sha1 'aac556bb26d92910b74b65450a0be6c5045e2052'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'botan'
depends_on 'libidn'
depends_on 'lua'
depends_on 'pcre'
2011-03-21 21:24:22 +00:00
fails_with_llvm "linker fails"
2011-03-21 21:24:22 +00:00
def install
# Monotone only needs headers from Boost (it's templates all the way down!), so let's avoid
2011-03-30 23:33:27 +00:00
# building boost (which takes approximately forever) if it's not already installed.
# This is suggested in the Monotone installation instructions.
boost = Formula.factory('boost')
2011-03-21 21:24:22 +00:00
unless boost.installed?
2011-03-30 23:33:27 +00:00
# Add header location to CPPFLAGS
boost.brew { ENV.append "CXXFLAGS", "-I"+Dir.pwd }
end
2011-03-21 21:24:22 +00:00
2011-03-30 23:33:27 +00:00
system "./configure", "--disable-dependency-tracking",
2011-03-21 21:24:22 +00:00
"--prefix=#{prefix}"
system "make install"
end
end