Use Pathname support for renames.

This commit is contained in:
Adam Vandenberg 2010-02-18 10:05:01 -08:00
parent 7b8f96666d
commit 7490d38e84
6 changed files with 7 additions and 20 deletions

View file

@ -9,7 +9,6 @@ class Bonnie <Formula
def install
system "make"
system "mkdir -p #{prefix}/bin"
system "cp Bonnie #{prefix}/bin/bonnie"
bin.install "Bonnie" => "bonnie"
end
end

View file

@ -10,7 +10,6 @@ class Leiningen <Formula
prefix.install 'bin'
# Install the lein bash completion file
mv 'bash_completion.bash', 'lein-completion.bash'
(etc+'bash_completion.d').install 'lein-completion.bash'
(etc+'bash_completion.d').install 'bash_completion.bash' => 'lein-completion.bash'
end
end

View file

@ -7,8 +7,6 @@ class Linklint <Formula
def install
FileUtils.mv 'READ_ME.txt', 'README'
bin.install 'linklint-2.3.5'
Dir.chdir bin
FileUtils.mv 'linklint-2.3.5', 'linklint'
bin.install 'linklint-2.3.5' => 'linklint'
end
end

View file

@ -7,7 +7,6 @@ class MemcacheTop <Formula
version '0.6'
def install
FileUtils.mv 'memcache-top-v0.6', 'memcache-top'
bin.install 'memcache-top'
bin.install 'memcache-top-v0.6' => 'memcache-top'
end
end

View file

@ -22,9 +22,7 @@ class V8 <Formula
include.install(Dir['include/*'])
lib.install(Dir['libv8.*'])
mv('shell', 'v8')
bin.install('v8')
bin.install 'shell' => 'v8'
system "install_name_tool -change libv8.dylib #{lib}/libv8.dylib #{bin+'v8'}"
end

View file

@ -13,14 +13,8 @@ class Xspin <Formula
end
def install
version='523'
fname = "xspin#{version}.tcl"
inreplace fname, "CELLAR", prefix
FileUtils.mv fname, "xspin"
bin.install "xspin"
inreplace "xspin523.tcl", "CELLAR", prefix
bin.install "xspin523.tcl" => "xspin"
end
end