2013-12-04 21:16:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Yacas < Formula
|
|
|
|
homepage 'http://yacas.sourceforge.net'
|
2014-02-10 04:42:29 +00:00
|
|
|
url 'http://yacas.sourceforge.net/backups/yacas-1.3.4.tar.gz'
|
|
|
|
sha1 'b0918e7f1e697fde48f09055528dacbf7513b931'
|
2013-12-04 21:16:19 +00:00
|
|
|
|
|
|
|
option "with-server", "Build the network server version"
|
|
|
|
|
|
|
|
def install
|
2014-02-10 04:42:29 +00:00
|
|
|
args = [ "--disable-silent-rules",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
]
|
|
|
|
|
2013-12-04 21:16:19 +00:00
|
|
|
args << "--enable-server" if build.with? "server"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2014-02-10 04:42:29 +00:00
|
|
|
system "make", "install"
|
|
|
|
system "make", "test"
|
2013-12-04 21:16:19 +00:00
|
|
|
end
|
|
|
|
end
|