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"
|
2015-11-01 20:24:47 +00:00
|
|
|
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/a/analog/analog_6.0.orig.tar.gz"
|
|
|
|
mirror "https://mirrorservice.org/sites/ftp.debian.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
|
2015-11-01 21:42:26 +00:00
|
|
|
revision 2
|
|
|
|
sha256 "097f11e7f53078e6b248e38fc326cded49b08cdbe75ab61e20ab7b2a6e770256" => :el_capitan
|
|
|
|
sha256 "f2f29ea2dcbb9e0576c72f009d8814b0c7f84efd49d6f005085c876c85fd29b9" => :yosemite
|
|
|
|
sha256 "c9ca1f30d5b71b7653ecbbdb4ad8d9e81e41b2e33a9dc2c8e0a92af7cd48007d" => :mavericks
|
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"
|
2015-11-01 20:24:47 +00:00
|
|
|
|
2013-07-27 02:02:32 +00:00
|
|
|
bin.install "analog"
|
2015-11-01 20:24:47 +00:00
|
|
|
pkgshare.install "examples", "how-to", "images", "lang"
|
|
|
|
pkgshare.install "analog.cfg" => "analog.cfg-dist"
|
|
|
|
(pkgshare/"examples").install "logfile.log"
|
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
|
2015-11-01 20:24:47 +00:00
|
|
|
output = pipe_output("#{bin}/analog #{pkgshare}/examples/logfile.log")
|
|
|
|
assert_match /(United Kingdom)/, output
|
2013-07-27 02:02:32 +00:00
|
|
|
end
|
|
|
|
end
|