aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-09-02 13:16:52 -0700
committerCharlie Sharpsteen2011-09-02 13:18:56 -0700
commit6fcbc40af30917da918d0a2f7a5248a25ffc8cc9 (patch)
treed79eff0595ee112ac89bec4474fcaea339cca26b /Library/Formula
parentfa3eeeeb9746829955d4a1abe9f7e38910312bc8 (diff)
downloadhomebrew-6fcbc40af30917da918d0a2f7a5248a25ffc8cc9.tar.bz2
STar: Remove symlinks conflicting with OS X tar
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/star.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/star.rb b/Library/Formula/star.rb
index 37ab12350..19dbe52a9 100644
--- a/Library/Formula/star.rb
+++ b/Library/Formula/star.rb
@@ -10,5 +10,10 @@ class Star < Formula
def install
system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "MANDIR=share/man"
system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "MANDIR=share/man", "install"
+
+ # Remove symlinks that override built-in utilities
+ Dir.chdir bin do
+ Pathname.glob(%w[gnutar tar]) {|p| p.unlink}
+ end
end
end