diff options
| author | Stefan | 2013-11-19 13:44:12 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-19 20:16:10 -0800 |
| commit | 0e8d6336bcd3ec5b4ed6223ba9439962c7a0c080 (patch) | |
| tree | 5a44a1627a8922ea5f59140525ce9a46e7096046 /Library/Formula/plplot.rb | |
| parent | 2f541f3e96b1cbaacefae8092710dbf5f42df4f4 (diff) | |
| download | homebrew-0e8d6336bcd3ec5b4ed6223ba9439962c7a0c080.tar.bz2 | |
plplot: make java optional
Closes #24441.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/plplot.rb')
| -rw-r--r-- | Library/Formula/plplot.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
