aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/plplot.rb
diff options
context:
space:
mode:
authorStefan2014-01-20 02:54:27 +0100
committerMike McQuaid2014-01-29 16:12:26 +0100
commit12b1c67d9238cdb62e1cb0d2df3b71a91291b299 (patch)
tree263879cc9b432683a04c38d51e6a56cb9f641e48 /Library/Formula/plplot.rb
parent7f5c86e8c2c89af3a55c8e60aa2cbeb7f74e8319 (diff)
downloadhomebrew-12b1c67d9238cdb62e1cb0d2df3b71a91291b299.tar.bz2
plplot: disable xcairo if X11 is not installed.
Closes #26041. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/plplot.rb')
-rw-r--r--Library/Formula/plplot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/plplot.rb b/Library/Formula/plplot.rb
index db1e6adc1..4ecdda062 100644
--- a/Library/Formula/plplot.rb
+++ b/Library/Formula/plplot.rb
@@ -8,6 +8,7 @@ class Plplot < Formula
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'pango'
+ depends_on :x11 => :optional
option 'with-java'
@@ -15,6 +16,7 @@ class Plplot < Formula
args = std_cmake_args
args << '-DPLD_wxwidgets=OFF' << '-DENABLE_wxwidgets=OFF'
args << '-DENABLE_java=OFF' unless build.with? 'java'
+ args << '-DPLD_xcairo=OFF' unless MacOS::X11.installed?
mkdir "plplot-build" do
system "cmake", "..", *args
system "make"