Skip to content

Commit

Permalink
libtommath 1.0
Browse files Browse the repository at this point in the history
Closes #11639.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Mar 27, 2017
1 parent cb79fc2 commit bd04bd8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/libtommath.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Libtommath < Formula
desc "C library for number theoretic multiple-precision integers"
homepage "http://www.libtom.net/LibTomMath/"
url "https://github.com/libtom/libtommath/releases/download/v0.42.0/ltm-0.42.0.tar.bz2"
mirror "https://distfiles.macports.org/libtommath/ltm-0.42.0.tar.bz2"
sha256 "7b5c258304c34ac5901cfddb9f809b9b3b8ac7d04f700cf006ac766a923eb217"
url "https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz"
sha256 "993a7df9ee091fca430cdde3263df57d88ef62af8103903214da49fc51bbb56c"
head "https://github.com/libtom/libtommath.git"

bottle do
Expand All @@ -20,7 +19,13 @@ def install
ENV["DESTDIR"] = prefix

system "make"
system "make", "test_standalone"
include.install Dir["tommath*.h"]
lib.install "libtommath.a"
pkgshare.install "test"
end

test do
system pkgshare/"test"
end
end

0 comments on commit bd04bd8

Please sign in to comment.