aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qt5.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb
index ab1a41967..8d400e03a 100644
--- a/Library/Formula/qt5.rb
+++ b/Library/Formula/qt5.rb
@@ -35,6 +35,7 @@ class Qt5 < Formula
option :universal
option "with-docs", "Build documentation"
+ option "with-examples", "Build examples"
option "developer", "Build and link with developer options"
depends_on "pkg-config" => :build
@@ -48,10 +49,11 @@ class Qt5 < Formula
"-system-zlib",
"-qt-libpng", "-qt-libjpeg",
"-confirm-license", "-opensource",
- "-nomake", "examples",
"-nomake", "tests",
"-release"]
+ args << "-nomake" << "examples" if build.without? "examples"
+
# https://bugreports.qt-project.org/browse/QTBUG-34382
args << "-no-xcb"