Skip to content
This repository
branch: master
Mike McQuaid February 22, 2014
file 32 lines (26 sloc) 0.898 kb
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
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
Something went wrong with that request. Please try again.