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/'
|
2012-11-11 14:54:03 +00:00
|
|
|
url 'http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.3.tar.gz'
|
|
|
|
sha1 'de79eee7ae017a495dc0c648b6f7d5a4f6c7a522'
|
2012-02-19 23:01:53 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-11-12 11:02:18 +00:00
|
|
|
|
|
|
|
def install
|
2012-11-11 03:12:26 +00:00
|
|
|
readline = Formula.factory 'readline'
|
2012-02-19 23:01:53 +00:00
|
|
|
system "./Configure", "--prefix=#{prefix}",
|
2012-11-30 21:45:01 +00:00
|
|
|
"--without-gmp",
|
2012-02-19 23:01:53 +00:00
|
|
|
"--with-readline-include=#{readline.include}",
|
|
|
|
"--with-readline-lib=#{readline.lib}"
|
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
|