Files
tigerbrew/Library/Formula/plplot.rb
T
Stefan 0e8d6336bc plplot: make java optional
Closes #24441.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-19 20:16:10 -08:00

26 lines
648 B
Ruby

require 'formula'
class Plplot < Formula
homepage 'http://plplot.sourceforge.net'
url 'http://downloads.sourceforge.net/project/plplot/plplot/5.9.10%20Source/plplot-5.9.10.tar.gz'
sha1 '10dbdfe41d71a9f51e4396729c001ed2baea22fe'
# failing wxWidget includes on snow leopard
depends_on :macos => :lion
depends_on 'cmake' => :build
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", "..", *args
system "make"
system "make install"
end
end
end