forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalog.rb
38 lines (33 loc) · 1.15 KB
/
analog.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require "formula"
class Analog < Formula
desc "Logfile analyzer"
homepage "https://tracker.debian.org/pkg/analog"
# The previous long-time homepage and url are stone-cold dead. Using Debian instead.
#homepage "http://analog.cx"
url "https://mirrors.kernel.org/debian/pool/main/a/analog/analog_6.0.orig.tar.gz"
sha1 "17ad601f84e73c940883fb9b9e805879aac37493"
revision 1
bottle do
revision 1
sha1 "499ddf1e97314126055e0f695f2af7e4a5325839" => :yosemite
sha1 "0b74be8dfd6706d330c65a9407d99470ac5c9ccf" => :mavericks
sha1 "4c9f29b3324e2229ec4c7dc8be46b638507d23ee" => :mountain_lion
end
depends_on "gd"
depends_on "jpeg"
depends_on "libpng"
def install
system "make", "CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"DEFS='-DLANGDIR=\"#{share/'analog/lang/'}\"' -DHAVE_ZLIB",
"LIBS=-lz",
"OS=OSX"
bin.install "analog"
(share/"analog").install "examples", "how-to", "images", "lang"
(share/"analog").install "analog.cfg" => "analog.cfg-dist"
man1.install "analog.man" => "analog.1"
end
test do
system "\"#{bin}/analog\" > /dev/null"
end
end