aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-19 11:12:30 -0500
committerJack Nagel2014-03-19 11:12:30 -0500
commit8183d2d70218527e5fc89d6f90cc9fbd26b72a29 (patch)
tree514b0851f32daf28f2e05b5b5e0777afe2a6c40a /Library
parent6de53b080f0475d400ff0b1a5867f09f12f2f0fe (diff)
downloadhomebrew-8183d2d70218527e5fc89d6f90cc9fbd26b72a29.tar.bz2
tor: use Homebrew openssl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tor.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/Library/Formula/tor.rb b/Library/Formula/tor.rb
index ea005ad0f..2cc524587 100644
--- a/Library/Formula/tor.rb
+++ b/Library/Formula/tor.rb
@@ -11,10 +11,8 @@ class Tor < Formula
sha1 '80f4697dfc0473bf5ec642b074cee4ce95fd0fa6'
end
- option "with-brewed-openssl", "Build with Homebrew's OpenSSL instead of the system version" if MacOS.version > :leopard
-
depends_on 'libevent'
- depends_on 'openssl' if build.with?('brewed-openssl') || MacOS.version < :snow_leopard
+ depends_on 'openssl'
def install
# Fix the path to the control cookie.
@@ -23,14 +21,9 @@ class Tor < Formula
'TOR_COOKIE="/var/lib/tor/data/control_auth_cookie"',
'TOR_COOKIE="$HOME/.tor/control_auth_cookie"'
- args = %W[
- --disable-dependency-tracking
- --prefix=#{prefix}
- ]
-
- args << "-with-ssl=#{Formula["openssl"].opt_prefix}" if build.with?("brewed-openssl") || MacOS.version < :snow_leopard
-
- system "./configure", *args
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-openssl-dir=#{Formula["openssl"].opt_prefix}"
system "make install"
bin.install "contrib/tor-ctrl.sh" => "tor-ctrl"