2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
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'
|
2009-11-30 13:57:36 +00:00
|
|
|
homepage 'http://www.cmake.org/'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-07-28 01:28:46 +00:00
|
|
|
# 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)"
|
|
|
|
|
2009-08-07 14:41:43 +00:00
|
|
|
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"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-11-30 13:57:36 +00:00
|
|
|
end
|