libtommath: added shared library, replaced deprecated test_standalone with test
Closes #72709. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
c20c554904
commit
8224ab0626
|
@ -4,7 +4,7 @@ class Libtommath < Formula
|
|||
url "https://github.com/libtom/libtommath/releases/download/v1.2.0/ltm-1.2.0.tar.xz"
|
||||
sha256 "b7c75eecf680219484055fcedd686064409254ae44bc31a96c5032843c0e18b1"
|
||||
license "Unlicense"
|
||||
revision 1
|
||||
revision 2
|
||||
head "https://github.com/libtom/libtommath.git"
|
||||
|
||||
bottle do
|
||||
|
@ -15,6 +15,8 @@ class Libtommath < Formula
|
|||
sha256 cellar: :any_skip_relocation, high_sierra: "26e39af069485ef58c3517fb765db3a5e8dba0f253aac3d0d5968ff2a35e595b"
|
||||
end
|
||||
|
||||
depends_on "libtool" => :build
|
||||
|
||||
# Fixes mp_set_double being missing on macOS.
|
||||
# This is needed by some dependents in homebrew-core.
|
||||
# NOTE: This patch has been merged upstream but we take a backport
|
||||
|
@ -28,10 +30,8 @@ class Libtommath < Formula
|
|||
def install
|
||||
ENV["DESTDIR"] = prefix
|
||||
|
||||
system "make"
|
||||
system "make", "test_standalone"
|
||||
include.install Dir["tommath*.h"]
|
||||
lib.install "libtommath.a"
|
||||
system "make", "-f", "makefile.shared", "install"
|
||||
system "make", "test"
|
||||
pkgshare.install "test"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue