aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-29 21:24:27 -0500
committerJack Nagel2014-03-29 21:24:27 -0500
commit3794ca475e61bfdd29cf12e0ad11b2647b59301e (patch)
tree9d153e72e3fbf24017851a84259c8af6072d9ec9 /Library
parent4bd57c90bb671c33fd3b9dd61e499dd3bfd49ba1 (diff)
downloadhomebrew-3794ca475e61bfdd29cf12e0ad11b2647b59301e.tar.bz2
tomcat-native: use Homebrew openssl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tomcat-native.rb22
1 files changed, 6 insertions, 16 deletions
diff --git a/Library/Formula/tomcat-native.rb b/Library/Formula/tomcat-native.rb
index 553f70248..07973dafd 100644
--- a/Library/Formula/tomcat-native.rb
+++ b/Library/Formula/tomcat-native.rb
@@ -5,27 +5,17 @@ class TomcatNative < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-connectors/native/1.1.29/source/tomcat-native-1.1.29-src.tar.gz'
sha1 '16ce3eaee7a4c26f4a6fdd89eece83501d12b754'
- option 'with-brewed-openssl', 'Build with Homebrew OpenSSL instead of the system version (required for TLSv1.1/TLSv1.2)'
-
depends_on :libtool => :build
depends_on 'tomcat' => :recommended
- depends_on 'openssl' if build.with? 'brewed-openssl'
+ depends_on 'openssl'
def install
- cd "jni/native/" do
- args = %W[
- --prefix=#{prefix}
- --with-apr=#{MacOS.sdk_path}/usr
- --with-java-home=#{`/usr/libexec/java_home`}
- ]
-
- if build.with? 'brewed-openssl'
- args << "--with-ssl=#{Formula["openssl"].prefix}"
- else
- args << "--with-ssl=#{MacOS.sdk_path}/usr"
- end
+ cd "jni/native" do
+ system "./configure", "--prefix=#{prefix}",
+ "--with-apr=#{MacOS.sdk_path}/usr",
+ "--with-java-home=#{`/usr/libexec/java_home`}",
+ "--with-ssl=#{Formula["openssl"].prefix}"
- system "./configure", *args
# fixes occasional compiling issue: glibtool: compile: specify a tag with `--tag'
args = ["LIBTOOL=glibtool --tag=CC"]
# fixes a broken link in mountain lion's apr-1-config (it should be /XcodeDefault.xctoolchain/):