aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/plplot.rb
blob: 0952dca04d57cf53b43127afe815044a2f4a392b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Plplot < Formula
  homepage 'http://plplot.sourceforge.net'
  url 'http://downloads.sourceforge.net/project/plplot/plplot/5.9.9%20Source/plplot-5.9.9.tar.gz'
  sha1 '3df8fc21723e14af62fea4098e4ef019e1b52a54'

  depends_on 'cmake' => :build
  depends_on 'pkg-config' => :build
  depends_on 'pango'

  def install
    mkdir "plplot-build" do
      system "cmake", "..", *std_cmake_args
      system "make"
      system "make install"
    end
  end
end