solid: use new dsl
This commit is contained in:
parent
efe49a9270
commit
b7a74fc238
1 changed files with 5 additions and 9 deletions
|
@ -1,24 +1,20 @@
|
|||
require 'formula'
|
||||
|
||||
class Solid < Formula
|
||||
url 'http://www.dtecta.com/files/solid-3.5.6.tgz'
|
||||
homepage 'http://www.dtecta.com/'
|
||||
url 'http://www.dtecta.com/files/solid-3.5.6.tgz'
|
||||
sha1 'bd0afef7842f826c270cff32fc23994aec0b0d65'
|
||||
|
||||
def options
|
||||
[
|
||||
[ '--enable-doubles', 'Use internal double precision floats' ],
|
||||
[ '--enable-tracer', 'Use rounding error tracer' ]
|
||||
]
|
||||
end
|
||||
option 'enable-doubles', 'Use internal double precision floats'
|
||||
option 'enable-tracer', 'Use rounding error tracer'
|
||||
|
||||
def install
|
||||
args = ["--disable-dependency-tracking",
|
||||
"--disable-debug",
|
||||
"--prefix=#{prefix}",
|
||||
"--infodir=#{info}" ]
|
||||
args << '--enable-doubles' if ARGV.include? '--enable-doubles'
|
||||
args << '--enable-tracer' if ARGV.include? '--enable-tracer'
|
||||
args << '--enable-doubles' if build.include? 'enable-doubles'
|
||||
args << '--enable-tracer' if build.include? 'enable-tracer'
|
||||
|
||||
system "./configure", *args
|
||||
|
||||
|
|
Loading…
Reference in a new issue