cmake: 2.8.9

This commit is contained in:
Mike McQuaid committed 2012-08-16 21:14:07 +01:00
1 parent 8b77971411
commit 8bb77e6808
1 file changed
+5 -25
+5 -25
View File
@@ -18,32 +18,17 @@ end
class Cmake < Formula
homepage 'http://www.cmake.org/'
url 'http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz'
sha1 'a74dfc3e0a0d7f857ac5dda03bb99ebf07676da1'
url 'http://www.cmake.org/files/v2.8/cmake-2.8.9.tar.gz'
sha1 'b96663c0757a5edfbddc410aabf7126a92131e2b'
bottle do
version 3
sha1 '64e1a488bc669f7676c99874b8496ac147d1bc70' => :mountainlion
sha1 'bdfb5fcd6743d65f6cfe00b314f9d3f1049e902b' => :lion
sha1 '3a77fc17a7b1d3cceabddcca5c126c6b911c2f90' => :snowleopard
sha1 'ae7e0cf39556ea0a32e7bb7716ac820734ca7918' => :mountainlion
sha1 '6631aaeeafb9209e711508ad72727fbb4b5ab295' => :lion
sha1 'ea52f2a18b00f3404e8bf73c12c3da1d9a39f128' => :snowleopard
end
depends_on NoExpatFramework.new
option 'enable-ninja', 'Enable Ninja build system support'
def patches
[
# Correct FindPkgConfig found variable. Remove for CMake 2.8.9.
"https://github.com/Kitware/CMake/commit/3ea850.patch",
# Workaround DeployQt4 issue. Remove for CMake 2.8.9.
"https://github.com/Kitware/CMake/commit/374b9b.patch",
# Protect the default value of CMAKE_FIND_FRAMEWORK so that it can be
# overridden from the command line. Remove for CMake 2.8.9.
"https://github.com/Kitware/CMake/commit/8b2fb3.patch"
]
end
def install
args = %W[
--prefix=#{prefix}
@@ -54,11 +39,6 @@ class Cmake < Formula
--mandir=/share/man
]
if build.include? "enable-ninja"
args << "--"
args << "-DCMAKE_ENABLE_NINJA=1"
end
system "./bootstrap", *args
system "make"
system "make install"