aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorsand2013-06-26 03:01:26 +0200
committerAdam Vandenberg2013-09-15 20:00:47 -0700
commit69a835c976e65505d1f32e92bde0edb82d73a0df (patch)
treeef278315b892377b669c220b2ccc63f7514dd3e5 /Library/Formula
parentf5d735f591d5a53a9f63745c4edb868192d5a163 (diff)
downloadhomebrew-69a835c976e65505d1f32e92bde0edb82d73a0df.tar.bz2
tor: add option to build against Homebrew's OpenSSL
Closes #20793. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tor.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/tor.rb b/Library/Formula/tor.rb
index 4ada6a923..dc6c5cdf7 100644
--- a/Library/Formula/tor.rb
+++ b/Library/Formula/tor.rb
@@ -5,10 +5,20 @@ class Tor < Formula
url 'https://www.torproject.org/dist/tor-0.2.3.25.tar.gz'
sha1 'ef02e5b0eb44ab1a5d6108c39bd4e28918de79dc'
+ option "with-brewed-openssl", "Build with Homebrew's OpenSSL instead of the system version"
+
depends_on 'libevent'
+ depends_on 'openssl' if build.with? 'brewed-openssl'
def install
- system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ ]
+
+ args << "-with-ssl=#{Formulary.factory('openssl').opt_prefix}" if build.with? 'brewed-openssl'
+
+ system "./configure", *args
system "make install"
end