Play: use block form

This commit is contained in:
Adam Vandenberg 2012-03-15 19:48:40 -07:00
parent ebbdf347d6
commit d4467e89e4

View file

@ -8,8 +8,10 @@ class Play < Formula
def install
rm Dir['*.bat'] # remove windows' bat files
libexec.install Dir['*']
inreplace libexec+"play", "$dir/", "$dir/../libexec/"
inreplace libexec+"play", "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
inreplace libexec+"play" do |s|
s.gsub! "$dir/", "$dir/../libexec/"
s.gsub! "dir=`dirname $PRG`", "dir=`dirname $0` && dir=$dir/`dirname $PRG`"
end
bin.install_symlink libexec+'play'
end
end