From fcbb8ad17324dbd4c4e6434ae27137590413b156 Mon Sep 17 00:00:00 2001 From: Thomas Kahle Date: Wed, 25 Mar 2015 17:26:58 +0100 Subject: [PATCH] ntl: add gmp option. Closes Homebrew/homebrew#38065. Signed-off-by: Mike McQuaid --- Formula/ntl.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/ntl.rb b/Formula/ntl.rb index fc4e4812e8..d83448d4c1 100644 --- a/Formula/ntl.rb +++ b/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"