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

class Grace < Formula
  homepage 'http://plasma-gate.weizmann.ac.il/Grace/'
  url 'ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/grace-5.1.23.tar.gz'
  sha1 '0bd9cd6e76c97210658098f3533b5cf6c037d0bd'

  depends_on :x11
  depends_on 'pdflib-lite'
  depends_on 'jpeg'
  depends_on 'fftw'
  depends_on 'lesstif'

  def install
    ENV.O1 # https://github.com/Homebrew/homebrew/issues/27840#issuecomment-38536704
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}",
                          "--enable-grace-home=#{prefix}"

    system "make install"
  end
end