gmtl: use patch DSL
This commit is contained in:
parent
4f031b4c23
commit
3a68029d29
1 changed files with 10 additions and 9 deletions
|
@ -2,20 +2,21 @@ require 'formula'
|
|||
|
||||
class Gmtl < Formula
|
||||
homepage 'http://ggt.sourceforge.net/'
|
||||
url 'https://downloads.sourceforge.net/project/ggt/Generic%20Math%20Template%20Library/0.6.1/gmtl-0.6.1.tar.gz'
|
||||
sha1 '473a454d17956d3ce3babafdb57f73c0685579fd'
|
||||
|
||||
stable do
|
||||
url "https://downloads.sourceforge.net/project/ggt/Generic%20Math%20Template%20Library/0.6.1/gmtl-0.6.1.tar.gz"
|
||||
sha1 "473a454d17956d3ce3babafdb57f73c0685579fd"
|
||||
|
||||
# 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
|
||||
# The SConstruct from gmtl's HEAD doesn't need to be patched
|
||||
patch :DATA
|
||||
end
|
||||
|
||||
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
|
||||
# The SConstruct from gmtl's HEAD doesn't need to be patched
|
||||
def patches
|
||||
DATA unless build.head?
|
||||
end
|
||||
|
||||
def install
|
||||
scons "install", "prefix=#{prefix}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue