2009-06-04 18:21:19 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
|
|
|
class Cmake <Formula
|
2009-07-28 01:28:46 +00:00
|
|
|
@url='http://www.cmake.org/files/v2.6/cmake-2.6.4.tar.gz'
|
|
|
|
@md5='50f387d0436696c4a68b5512a72c9cde'
|
2009-07-23 02:02:09 +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"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|