diff options
| author | Adam Vandenberg | 2014-02-25 21:43:09 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:21 -0800 |
| commit | e8f20651a21f0b4349c88d66da3047f1ea2fc084 (patch) | |
| tree | 0efd259552317d75375c744b535eb2dda2f64b93 /Library | |
| parent | 9415a0c122d2bb98f9d1cf7adc52cf2b9b8c40be (diff) | |
| download | homebrew-e8f20651a21f0b4349c88d66da3047f1ea2fc084.tar.bz2 | |
tomcat-native: use Formula[]
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tomcat-native.rb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/tomcat-native.rb b/Library/Formula/tomcat-native.rb index 1b7643622..553f70248 100644 --- a/Library/Formula/tomcat-native.rb +++ b/Library/Formula/tomcat-native.rb @@ -18,7 +18,13 @@ class TomcatNative < Formula --with-apr=#{MacOS.sdk_path}/usr --with-java-home=#{`/usr/libexec/java_home`} ] - args << ((build.with? 'brewed-openssl') ? "--with-ssl=#{Formula.factory('openssl').prefix}" : "--with-ssl=#{MacOS.sdk_path}/usr") + + if build.with? 'brewed-openssl' + args << "--with-ssl=#{Formula["openssl"].prefix}" + else + args << "--with-ssl=#{MacOS.sdk_path}/usr" + end + system "./configure", *args # fixes occasional compiling issue: glibtool: compile: specify a tag with `--tag' args = ["LIBTOOL=glibtool --tag=CC"] @@ -31,10 +37,11 @@ class TomcatNative < Formula end def caveats; <<-EOS.undent - In order for tomcat's APR lifecycle listener to find this library, you'll need to add it to java.library.path. - This can be done by adding the following line to $CATALINA_HOME/bin/setenv.sh + In order for tomcat's APR lifecycle listener to find this library, you'll + need to add it to java.library.path. This can be done by adding this line + to $CATALINA_HOME/bin/setenv.sh - CATALINA_OPTS=\"$CATALINA_OPTS -Djava.library.path=#{lib}\" + CATALINA_OPTS=\"$CATALINA_OPTS -Djava.library.path=#{lib}\" If $CATALINA_HOME/bin/setenv.sh doesn't exist, create it and make it executable. EOS |
