2010-08-28 01:51:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gmtl <Formula
|
2011-03-05 21:03:41 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ggt/Generic%20Math%20Template%20Library/0.6.1/gmtl-0.6.1.tar.gz'
|
2010-08-28 01:51:58 +00:00
|
|
|
homepage 'http://ggt.sourceforge.net/'
|
2011-03-05 21:03:41 +00:00
|
|
|
md5 '1391af2c5ea050dda7735855ea5bb4c1'
|
|
|
|
head 'https://ggt.svn.sourceforge.net/svnroot/ggt/trunk/'
|
2010-08-28 01:51:58 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'scons' => :build
|
2010-08-28 01:51:58 +00:00
|
|
|
|
2011-03-05 21:03:41 +00:00
|
|
|
# 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
|
|
|
|
|
2010-08-28 01:51:58 +00:00
|
|
|
def install
|
|
|
|
system "scons", "install", "prefix=#{prefix}"
|
|
|
|
end
|
|
|
|
end
|