homebrew-core/Formula/cmake.rb

26 lines
901 B
Ruby
Raw Normal View History

require 'formula'
class Cmake <Formula
2010-07-15 04:50:29 +00:00
url 'http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz'
md5 '8c967d5264657a798f22ee23976ff0d9'
homepage 'http://www.cmake.org/'
def install
# xmlrpc is a stupid little library, rather than waste our users' time
# just let cmake use its own copy. God knows why something like cmake
# needs an xmlrpc library anyway! It is amazing!
inreplace 'CMakeLists.txt',
"# Mention to the user what system libraries are being used.",
"SET(CMAKE_USE_SYSTEM_XMLRPC 0)"
system "./bootstrap", "--prefix=#{prefix}",
"--system-libs",
"--datadir=/share/cmake",
"--docdir=/share/doc/cmake",
"--mandir=/share/man"
2010-07-15 04:50:29 +00:00
ENV.j1 # There appear to be parallelism issues.
system "make"
system "make install"
end
end