This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

New formula for libfplll

  • Loading branch information...
1 parent 8b1c4f1 commit 4850325f3183d2b7599b9b3b2628d9cd1edfdddb @laurentbartholdi laurentbartholdi committed Oct 4, 2012
Showing with 21 additions and 0 deletions.
  1. +20 −0 Library/Formula/libfplll.rb
  2. +1 −0 Library/Formula/pari.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Libfplll < Formula
+ homepage 'http://xpujol.net/fplll/'
+ url 'http://xpujol.net/fplll/libfplll-4.0.1.tar.gz'
+ sha1 'ce18f0f0113969172b77b790fb370fcd2d304a32'
+
+ depends_on 'gmp'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make"
+ system "make install"
+ prefix.install "src/dim55_in"
+ end
+
+ def test
+ system "#{bin}/fplll < #{prefix}/dim55_in"
+ end
+end
View
@@ -6,6 +6,7 @@ class Pari < Formula
sha1 'c83314bb993161a60e1e46ae7616072858414354'
depends_on 'readline'
+ depends_on :x11
def install
readline = Formula.factory 'readline'

0 comments on commit 4850325

Please sign in to comment.