log4shib 2.0.0

This commit is contained in:
Caleb Xu 2019-07-09 17:55:52 -04:00 committed by Chongyu Zhu
parent 9add7251ff
commit 49c76c3448
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -1,8 +1,8 @@
class Log4shib < Formula
desc "Forked version of log4cpp for the Shibboleth project"
homepage "https://wiki.shibboleth.net/confluence/display/OpenSAML/log4shib"
url "https://shibboleth.net/downloads/log4shib/1.0.9/log4shib-1.0.9.tar.gz"
sha256 "b34cc90f50962cc245a238b472f72852732d32a9caf9a10e0244d0e70a311d6d"
url "https://shibboleth.net/downloads/log4shib/2.0.0/log4shib-2.0.0.tar.gz"
sha256 "d066e2f208bdf3ce28e279307ce7e23ed9c5226f6afde288cd429a0a46792222"
bottle do
cellar :any
@ -17,10 +17,12 @@ class Log4shib < Formula
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make", "install"
(pkgshare/"test").install %w[tests/log4shib.init tests/testConfig.cpp tests/testConfig.log4shib.properties]
end
test do
assert_equal "-L#{HOMEBREW_PREFIX}/Cellar/log4shib/1.0.9/lib -llog4shib",
shell_output("#{bin}/log4shib-config --libs").chomp
cp_r (pkgshare/"test").children, testpath
system ENV.cxx, "-I#{include}", "-L#{lib}", "-llog4shib", "testConfig.cpp", "-o", "test"
system "./test"
end
end