From 0e8d6336bcd3ec5b4ed6223ba9439962c7a0c080 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 19 Nov 2013 13:44:12 +0100 Subject: plplot: make java optional Closes #24441. Signed-off-by: Adam Vandenberg --- Library/Formula/plplot.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula/plplot.rb') diff --git a/Library/Formula/plplot.rb b/Library/Formula/plplot.rb index fd4a57942..c56e136b7 100644 --- a/Library/Formula/plplot.rb +++ b/Library/Formula/plplot.rb @@ -11,9 +11,13 @@ class Plplot < Formula depends_on 'pkg-config' => :build depends_on 'pango' + option 'with-java' + def install + args = std_cmake_args + args << '-DENABLE_java=OFF' unless build.with? 'java' mkdir "plplot-build" do - system "cmake", "..", *std_cmake_args + system "cmake", "..", *args system "make" system "make install" end -- cgit v1.2.3