Clean up
Don't need to specify version as url is sufficient. Homebrew installs COPYING and README.md for you. Use Ruby functions where possible not BSD mv.
This commit is contained in:
parent
1f61d964e1
commit
2dbaacec39
1 changed files with 2 additions and 4 deletions
|
@ -1,18 +1,16 @@
|
|||
require 'formula'
|
||||
|
||||
class Leiningen <Formula
|
||||
version '1.0.1'
|
||||
url 'http://github.com/technomancy/leiningen/tarball/1.0.1'
|
||||
homepage 'http://github.com/technomancy/leiningen'
|
||||
md5 'eb287442bb1bcac2de537d00c4d1b1d3'
|
||||
|
||||
def install
|
||||
system "bin/lein self-install"
|
||||
prefix.install %w[bin README.md COPYING NEWS]
|
||||
prefix.install 'bin'
|
||||
|
||||
# Install the lein bash completion file
|
||||
system "mv bash_completion.bash lein-completion.bash"
|
||||
mv 'bash_completion.bash', 'lein-completion.bash'
|
||||
(etc+'bash_completion.d').install 'lein-completion.bash'
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue