tor: fix conditionals
This commit is contained in:
parent
1e297d9824
commit
f44b1f4708
1 changed files with 3 additions and 3 deletions
|
@ -11,10 +11,10 @@ class Tor < Formula
|
|||
sha1 'd10cb78e6a41657d970a1ce42105142bcfc315fb'
|
||||
end
|
||||
|
||||
option "with-brewed-openssl", "Build with Homebrew's OpenSSL instead of the system version" if MacOS.version < :snow_leopard
|
||||
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' if build.with?('brewed-openssl') || MacOS.version < :snow_leopard
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
|
@ -22,7 +22,7 @@ class Tor < Formula
|
|||
--prefix=#{prefix}
|
||||
]
|
||||
|
||||
args << "-with-ssl=#{Formulary.factory('openssl').opt_prefix}" if build.with? 'brewed-openssl' || MacOS.version < :snow_leopard
|
||||
args << "-with-ssl=#{Formulary.factory('openssl').opt_prefix}" if build.with?('brewed-openssl') || MacOS.version < :snow_leopard
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue