61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
14 lines
344 B
Ruby
14 lines
344 B
Ruby
require 'formula'
|
|
|
|
class Tree <Formula
|
|
@url='ftp://mama.indstate.edu/linux/tree/tree-1.5.2.2.tgz'
|
|
@homepage='http://mama.indstate.edu/users/ice/tree/'
|
|
@md5='a7731a898e2c0d7e422a57a84ffbb06c'
|
|
|
|
def install
|
|
system "#{ENV.cc} #{ENV['CFLAGS']} -o tree tree.c strverscmp.c"
|
|
|
|
bin.install "tree"
|
|
man1.install "man/tree.1"
|
|
end
|
|
end
|