2014-11-08 00:11:06 +00:00
|
|
|
require "formula"
|
2013-07-27 02:02:32 +00:00
|
|
|
|
|
|
|
class Analog < Formula
|
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.
|
|
|
|
#homepage "http://analog.cx"
|
|
|
|
url "https://mirrors.kernel.org/debian/pool/main/a/analog/analog_6.0.orig.tar.gz"
|
|
|
|
sha1 "17ad601f84e73c940883fb9b9e805879aac37493"
|
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}",
|
2014-07-08 14:43:10 +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
|