homebrew-core/Formula/tree.rb
Ted Pennings 6dea12900b tree: a test
Closes Homebrew/homebrew#25936.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-16 09:57:31 +00:00

24 lines
666 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'
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