2014-05-10 22:33:19 +00:00
|
|
|
require "formula"
|
2010-11-12 11:02:18 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pari < Formula
|
2014-05-10 22:33:19 +00:00
|
|
|
homepage "http://pari.math.u-bordeaux.fr/"
|
|
|
|
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
|
|
|
|
2014-05-10 22:33:19 +00:00
|
|
|
depends_on "gmp"
|
|
|
|
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
|
2014-05-10 22:33:19 +00:00
|
|
|
gmp = Formula["gmp"].opt_prefix
|
2012-02-19 23:01:53 +00:00
|
|
|
system "./Configure", "--prefix=#{prefix}",
|
2014-05-10 22:33:19 +00:00
|
|
|
"--with-gmp=#{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
|