aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cmake.rb
diff options
context:
space:
mode:
authorXu Cheng2014-11-15 01:14:47 +0800
committerMike McQuaid2014-11-14 17:43:56 +0000
commit4dc3a664d8379b3a012e9e773f1e8d5cf8077cc2 (patch)
tree72a1d47b9fa496d45ddf31b752861b1a2a07a61b /Library/Formula/cmake.rb
parent4c15d49fa2977e25e962412d59d7e1b486570731 (diff)
downloadhomebrew-4dc3a664d8379b3a012e9e773f1e8d5cf8077cc2.tar.bz2
cmake: add options for building gui
Closes #34190. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/cmake.rb')
-rw-r--r--Library/Formula/cmake.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index 569700f14..31c3a21b5 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -38,6 +38,8 @@ class Cmake < Formula
option "without-docs", "Don't build man pages"
depends_on :python => :build if MacOS.version <= :snow_leopard && build.with?("docs")
+ depends_on "qt" => :optional
+
resource "sphinx" do
url "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-1.2.3.tar.gz"
sha1 "3a11f130c63b057532ca37fe49c8967d0cbae1d5"
@@ -91,10 +93,13 @@ class Cmake < Formula
--docdir=/share/doc/cmake
--mandir=/share/man
]
+
if build.with? "docs"
args << "--sphinx-man" << "--sphinx-build=#{buildpath}/sphinx/bin/sphinx-build"
end
+ args << "--qt-gui" if build.with? "qt"
+
system "./bootstrap", *args
system "make"
system "make", "install"