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

class Gmtl <Formula
  url 'http://downloads.sourceforge.net/project/ggt/Generic%20Math%20Template%20Library/0.6.1/gmtl-0.6.1.tar.gz'
  homepage 'http://ggt.sourceforge.net/'
  md5 '1391af2c5ea050dda7735855ea5bb4c1'
  head 'https://ggt.svn.sourceforge.net/svnroot/ggt/trunk/'

  depends_on 'scons' => :build

  # Build assumes that Python is a framework, which isn't always true. See:
  # https://sourceforge.net/tracker/?func=detail&aid=3172856&group_id=43735&atid=437247
  def patches
    "https://gist.github.com/raw/811405/fix-gmtl-build.diff"
  end

  def install
    system "scons", "install", "prefix=#{prefix}"
  end
end