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-02-19 23:01:53 +00:00
|
|
|
url 'http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.5.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c83314bb993161a60e1e46ae7616072858414354'
|
2012-02-19 23:01:53 +00:00
|
|
|
|
2012-10-04 14:44:19 +00:00
|
|
|
depends_on :x11
|
2012-02-19 23:01:53 +00:00
|
|
|
depends_on 'readline'
|
2010-11-12 11:02:18 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-19 23:01:53 +00:00
|
|
|
readline = Formula.factory 'readline'
|
|
|
|
system "./Configure", "--prefix=#{prefix}",
|
|
|
|
"--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
|