aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tree.rb
diff options
context:
space:
mode:
authorAlexis Hildebrandt2014-04-24 14:05:10 +0200
committerAdam Vandenberg2014-04-24 07:37:21 -0700
commitc68c82888266ef5bb7d98fb3d32cc9e73fa34f78 (patch)
tree9c612df6f7d372ef1f81af66837163350fc29a19 /Library/Formula/tree.rb
parentd6c9f1ce73f7fb24cf685199a7a18e7e5d31598d (diff)
downloadhomebrew-c68c82888266ef5bb7d98fb3d32cc9e73fa34f78.tar.bz2
tree 1.7.0
with additional clean-up
Diffstat (limited to 'Library/Formula/tree.rb')
-rw-r--r--Library/Formula/tree.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/tree.rb b/Library/Formula/tree.rb
index 754cc834d..3c6d6c753 100644
--- a/Library/Formula/tree.rb
+++ b/Library/Formula/tree.rb
@@ -2,8 +2,8 @@ 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'
+ url 'http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz'
+ sha1 '35bd212606e6c5d60f4d5062f4a59bb7b7b25949'
bottle do
cellar :any
@@ -13,15 +13,13 @@ class Tree < Formula
end
def install
- ENV.append 'CFLAGS', '-fomit-frame-pointer'
- objs = 'tree.o unix.o html.o xml.o hash.o color.o strverscmp.o'
+ ENV.append 'CFLAGS', '-fomit-frame-pointer', '-no-cpp-precomp'
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "OBJS", "\\1 strverscmp.o"
+ s.change_make_var! "MANDIR", man1
+ end
system "make", "prefix=#{prefix}",
- "MANDIR=#{man1}",
- "CC=#{ENV.cc}",
- "CFLAGS=#{ENV.cflags}",
- "LDFLAGS=#{ENV.ldflags}",
- "OBJS=#{objs}",
"install"
end