aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGaëtan Lehmann2015-04-22 15:46:14 +0200
committerMike McQuaid2015-04-22 21:07:23 +0100
commit4dba1f9cff0ceee9045e6cc29d8f915c4e25c267 (patch)
treec04105717077ba0cc88e58c87d03a354b83dd7ac /Library
parent290cd8e172cd5ba673dd7da38805ac2c481d82d4 (diff)
downloadhomebrew-4dba1f9cff0ceee9045e6cc29d8f915c4e25c267.tar.bz2
cmake: install bash-completion.
Closes #38939. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/cmake.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index f9682e40a..8e56ff301 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -44,6 +44,12 @@ class Cmake < Formula
sha1 "cd5c22acf6dd69046d6cb6a3920d84ea66bdf62a"
end
+ patch do
+ # fix for older bash-completion versions
+ url "http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff_plain;h=2ecf168f"
+ sha256 "147854010874cd68289e3ca203399d5c149287167bca0b67f9c5677f0ee22eb8"
+ end
+
def install
if build.with? "docs"
ENV.prepend_create_path "PYTHONPATH", buildpath+"sphinx/lib/python2.7/site-packages"
@@ -77,6 +83,10 @@ class Cmake < Formula
system "./bootstrap", *args
system "make"
system "make", "install"
+
+ cd "Auxiliary/bash-completion/" do
+ bash_completion.install "ctest", "cmake", "cpack"
+ end
end
test do