aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorThomas Kahle2015-03-25 17:26:58 +0100
committerMike McQuaid2015-04-09 13:39:22 +0100
commitbe711ca527fea36d85863a865e59df64a0b9700e (patch)
treeabbc6d5c046d15b83449f2e92670da01bda5600c /Library
parentb4a19db7c64debd661ba94aff5af81ba5ae08e2a (diff)
downloadhomebrew-be711ca527fea36d85863a865e59df64a0b9700e.tar.bz2
ntl: add gmp option.
Closes #38065. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ntl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/ntl.rb b/Library/Formula/ntl.rb
index fc4e4812e..d83448d4c 100644
--- a/Library/Formula/ntl.rb
+++ b/Library/Formula/ntl.rb
@@ -5,6 +5,8 @@ class Ntl < Formula
url "http://www.shoup.net/ntl/ntl-6.2.1.tar.gz"
sha1 "3b9ab3bedb0b2e9b5ee322d60745be5caf1c743f"
+ depends_on "gmp" => :optional
+
bottle do
cellar :any
sha1 "b55331990e2df310d694d5ae67dc3a55d6f18fd1" => :mavericks
@@ -13,8 +15,10 @@ class Ntl < Formula
end
def install
+ args = ["PREFIX=#{prefix}"]
+ args << "NTL_GMP_LIP=on" if build.with? "gmp"
cd "src" do
- system "./configure", "PREFIX=#{prefix}"
+ system "./configure", *args
system "make"
system "make", "check"
system "make", "install"