2010-02-12 19:16:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Monotone <Formula
|
2010-12-21 03:42:41 +00:00
|
|
|
url 'http://www.monotone.ca/downloads/0.99.1/monotone-0.99.1.tar.gz'
|
2010-02-12 19:16:26 +00:00
|
|
|
homepage 'http://www.monotone.ca/'
|
2010-12-21 03:42:41 +00:00
|
|
|
sha1 'e74ba571b358f6b76370f882d15ddbd1edd9f37e'
|
2010-02-12 19:16:26 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-02-12 19:16:26 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'botan'
|
|
|
|
depends_on 'libidn'
|
|
|
|
depends_on 'lua'
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
2010-06-16 18:50:36 +00:00
|
|
|
fails_with_llvm "linker fails"
|
2010-12-21 03:42:41 +00:00
|
|
|
|
|
|
|
def install_body
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
# 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')
|
|
|
|
if boost.installed?
|
|
|
|
install_body
|
|
|
|
else
|
|
|
|
monotone_dir = Dir.pwd
|
|
|
|
# a formula's stage method is private, so we cannot call boost.stage
|
|
|
|
boost.brew do
|
|
|
|
boost_dir = Dir.pwd
|
|
|
|
ENV.append "CXXFLAGS", "-I"+boost_dir
|
|
|
|
Dir.chdir monotone_dir
|
|
|
|
install_body
|
|
|
|
end
|
|
|
|
end
|
2010-02-12 19:16:26 +00:00
|
|
|
end
|
|
|
|
end
|