2013-07-27 02:02:32 +00:00
|
|
|
class Analog < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Logfile analyzer"
|
2014-11-08 00:11:06 +00:00
|
|
|
homepage "https://tracker.debian.org/pkg/analog"
|
|
|
|
# The previous long-time homepage and url are stone-cold dead. Using Debian instead.
|
2015-08-03 12:55:31 +00:00
|
|
|
# homepage "http://analog.cx"
|
2014-11-08 00:11:06 +00:00
|
|
|
url "https://mirrors.kernel.org/debian/pool/main/a/analog/analog_6.0.orig.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "31c0e2bedd0968f9d4657db233b20427d8c497be98194daf19d6f859d7f6fcca"
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2013-07-27 02:02:32 +00:00
|
|
|
|
2014-07-08 18:08:29 +00:00
|
|
|
bottle do
|
2014-11-08 01:46:34 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "499ddf1e97314126055e0f695f2af7e4a5325839" => :yosemite
|
|
|
|
sha1 "0b74be8dfd6706d330c65a9407d99470ac5c9ccf" => :mavericks
|
|
|
|
sha1 "4c9f29b3324e2229ec4c7dc8be46b638507d23ee" => :mountain_lion
|
2014-07-08 18:08:29 +00:00
|
|
|
end
|
|
|
|
|
2014-11-08 00:11:06 +00:00
|
|
|
depends_on "gd"
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "libpng"
|
2013-07-27 02:02:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
2015-08-03 12:55:31 +00:00
|
|
|
"DEFS='-DLANGDIR=\"#{share/"analog/lang/"}\"' -DHAVE_ZLIB",
|
2013-07-27 02:02:32 +00:00
|
|
|
"LIBS=-lz",
|
|
|
|
"OS=OSX"
|
|
|
|
bin.install "analog"
|
2014-11-08 00:11:06 +00:00
|
|
|
(share/"analog").install "examples", "how-to", "images", "lang"
|
|
|
|
(share/"analog").install "analog.cfg" => "analog.cfg-dist"
|
2013-07-27 02:02:32 +00:00
|
|
|
man1.install "analog.man" => "analog.1"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-07-27 02:02:32 +00:00
|
|
|
system "\"#{bin}/analog\" > /dev/null"
|
|
|
|
end
|
|
|
|
end
|