homebrew-core/Formula/tree.rb
2014-02-22 22:44:31 +00:00

31 lines
898 B
Ruby

require 'formula'
class Tree < Formula
homepage 'http://mama.indstate.edu/users/ice/tree/'
url 'http://mama.indstate.edu/users/ice/tree/src/tree-1.6.0.tgz'
sha1 '350f851f68859a011668362dd0e7ee81fd1b713a'
bottle do
cellar :any
sha1 "de86a6212934b258c2f64f6ae3460e8b729fc357" => :mavericks
sha1 "59991b24b9b236236bd2aa3eaa6050be48ee106f" => :mountain_lion
sha1 "3e30b09d1e08c017bb7f7e07150f9c9a7b009d2a" => :lion
end
def install
ENV.append 'CFLAGS', '-fomit-frame-pointer'
objs = 'tree.o unix.o html.o xml.o hash.o color.o strverscmp.o'
system "make", "prefix=#{prefix}",
"MANDIR=#{man1}",
"CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.ldflags}",
"OBJS=#{objs}",
"install"
end
test do
system "#{bin}/tree", prefix
end
end