From 4dba1f9cff0ceee9045e6cc29d8f915c4e25c267 Mon Sep 17 00:00:00 2001 From: Gaëtan Lehmann Date: Wed, 22 Apr 2015 15:46:14 +0200 Subject: cmake: install bash-completion. Closes #38939. Signed-off-by: Mike McQuaid --- Library/Formula/cmake.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3