2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-31 11:18:17 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tree < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://mama.indstate.edu/users/ice/tree/'
|
2012-02-10 02:27:01 +00:00
|
|
|
url 'http://mama.indstate.edu/users/ice/tree/src/tree-1.6.0.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '350f851f68859a011668362dd0e7ee81fd1b713a'
|
2009-08-31 11:18:17 +00:00
|
|
|
|
2014-02-22 22:43:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "de86a6212934b258c2f64f6ae3460e8b729fc357" => :mavericks
|
|
|
|
sha1 "59991b24b9b236236bd2aa3eaa6050be48ee106f" => :mountain_lion
|
|
|
|
sha1 "3e30b09d1e08c017bb7f7e07150f9c9a7b009d2a" => :lion
|
|
|
|
end
|
|
|
|
|
2009-08-31 11:18:17 +00:00
|
|
|
def install
|
2012-02-10 02:27:01 +00:00
|
|
|
ENV.append 'CFLAGS', '-fomit-frame-pointer'
|
|
|
|
objs = 'tree.o unix.o html.o xml.o hash.o color.o strverscmp.o'
|
2009-09-21 18:52:47 +00:00
|
|
|
|
2012-02-10 02:27:01 +00:00
|
|
|
system "make", "prefix=#{prefix}",
|
|
|
|
"MANDIR=#{man1}",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"LDFLAGS=#{ENV.ldflags}",
|
|
|
|
"OBJS=#{objs}",
|
|
|
|
"install"
|
2009-08-31 11:18:17 +00:00
|
|
|
end
|
2014-01-16 01:33:28 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/tree", prefix
|
|
|
|
end
|
2009-08-31 11:18:17 +00:00
|
|
|
end
|