2010-08-28 01:51:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
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
|
2011-10-06 08:27:45 +00:00
|
|
|
# The SConstruct from gmtl's HEAD doesn't need to be patched
|
2011-03-05 21:03:41 +00:00
|
|
|
def patches
|
2011-10-06 08:27:45 +00:00
|
|
|
"https://gist.github.com/raw/811405/fix-gmtl-build.diff" unless ARGV.build_head?
|
2011-03-05 21:03:41 +00:00
|
|
|
end
|
|
|
|
|
2010-08-28 01:51:58 +00:00
|
|
|
def install
|
|
|
|
system "scons", "install", "prefix=#{prefix}"
|
|
|
|
end
|
|
|
|
end
|