2010-11-12 11:02:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pari < Formula
|
2010-11-12 11:02:18 +00:00
|
|
|
homepage 'http://pari.math.u-bordeaux.fr/'
|
2014-04-09 14:57:17 +00:00
|
|
|
url 'http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.5.tar.gz'
|
|
|
|
sha1 '77637f935ee4a3b78e7015cef00146bd2f7e96bc'
|
2012-02-19 23:01:53 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2013-05-13 16:26:13 +00:00
|
|
|
depends_on :x11
|
2010-11-12 11:02:18 +00:00
|
|
|
|
|
|
|
def install
|
2014-02-26 05:11:55 +00:00
|
|
|
readline = Formula["readline"].opt_prefix
|
2012-02-19 23:01:53 +00:00
|
|
|
system "./Configure", "--prefix=#{prefix}",
|
2012-11-30 21:45:01 +00:00
|
|
|
"--without-gmp",
|
2014-02-26 05:11:55 +00:00
|
|
|
"--with-readline=#{readline}"
|
2011-11-23 16:37:32 +00:00
|
|
|
# make needs to be done in two steps
|
|
|
|
system "make all"
|
2010-11-12 11:02:18 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|