aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tree.rb
diff options
context:
space:
mode:
authorBrett Porter2009-08-31 21:18:17 +1000
committerMax Howell2009-08-31 18:07:44 +0100
commit9ab3d894d93c50c2d68e842856760d92cee1bc3d (patch)
tree3cf205bb56f4284e283eee590f0eb0b9c344d698 /Library/Formula/tree.rb
parentc59ce3efd02f6312409d96132d21dc75bd2e7efc (diff)
downloadhomebrew-9ab3d894d93c50c2d68e842856760d92cee1bc3d.tar.bz2
Tree formula
Tree is a recursive directory listing program that produces a depth indented listing of files, which is colorized ala dircolors if the LS_COLORS environment variable is set and output is to tty.
Diffstat (limited to 'Library/Formula/tree.rb')
-rw-r--r--Library/Formula/tree.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/tree.rb b/Library/Formula/tree.rb
new file mode 100644
index 000000000..7964a0184
--- /dev/null
+++ b/Library/Formula/tree.rb
@@ -0,0 +1,13 @@
+require 'brewkit'
+
+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 "gcc #{ENV['CFLAGS']} -o tree tree.c strverscmp.c"
+ bin.install "tree"
+ man1.install "man/tree.1"
+ end
+end