tomcat-native 1.2.10

Closes #7448.

Signed-off-by: Uladzislau Shablinski <vladshablinsky@gmail.com>
This commit is contained in:
Thierry Moisan 2016-12-01 11:44:07 -05:00 committed by Uladzislau Shablinski
parent 4368c8c136
commit 85ab16fcc9

View file

@ -1,9 +1,9 @@
class TomcatNative < Formula
desc "Lets Tomcat use some native resources for performance"
homepage "https://tomcat.apache.org/native-doc/"
url "https://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-connectors/native/1.2.8/source/tomcat-native-1.2.8-src.tar.gz"
mirror "https://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.8/source/tomcat-native-1.2.8-src.tar.gz"
sha256 "408ece0b027c8967b3aa85533c5fca642827e235b1857d28df918a4eab861d30"
url "https://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-connectors/native/1.2.10/source/tomcat-native-1.2.10-src.tar.gz"
mirror "https://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.10/source/tomcat-native-1.2.10-src.tar.gz"
sha256 "553a796f1efb9d52a22a24636baca45ae265327f2a2d2f3169436b4012df9c35"
bottle do
cellar :any
@ -18,17 +18,12 @@ class TomcatNative < Formula
depends_on "tomcat" => :recommended
depends_on :java => "1.7+"
depends_on "openssl"
depends_on "apr" => :optional
depends_on "apr"
def install
cd "native" do
if build.with? "apr"
apr_path = Formula["apr"].opt_prefix
else
apr_path = "#{MacOS.sdk_path}/usr"
end
system "./configure", "--prefix=#{prefix}",
"--with-apr=#{apr_path}",
"--with-apr=#{Formula["apr"].opt_prefix}",
"--with-java-home=#{ENV["JAVA_HOME"]}",
"--with-ssl=#{Formula["openssl"].opt_prefix}"