From 4dc3a664d8379b3a012e9e773f1e8d5cf8077cc2 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 15 Nov 2014 01:14:47 +0800 Subject: cmake: add options for building gui Closes #34190. Signed-off-by: Mike McQuaid --- Library/Formula/cmake.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula') 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" -- cgit v1.2.3