homebrew-core/Formula/leiningen.rb

35 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Leiningen < Formula
2013-03-02 09:18:43 +00:00
homepage 'https://github.com/technomancy/leiningen'
url 'https://github.com/technomancy/leiningen/archive/2.3.3.tar.gz'
sha1 'af420542bbe6496a810355efedba00c9ba827ab2'
2012-04-19 02:37:43 +00:00
head 'https://github.com/technomancy/leiningen.git'
2013-08-07 04:18:22 +00:00
resource 'jar' do
url 'https://leiningen.s3.amazonaws.com/downloads/leiningen-2.3.3-standalone.jar'
sha1 'bd14a59581eb0799200f3a6f30534d685c6ad095'
2013-08-07 04:18:22 +00:00
end
def install
2013-08-07 04:18:22 +00:00
libexec.install resource('jar')
# bin/lein autoinstalls and autoupdates, which doesn't work too well for us
inreplace "bin/lein-pkg" do |s|
2013-08-12 06:06:24 +00:00
s.change_make_var! 'LEIN_JAR', libexec/"leiningen-#{version}-standalone.jar"
end
2013-08-07 04:18:22 +00:00
bin.install "bin/lein-pkg" => 'lein'
2013-05-03 18:03:31 +00:00
bash_completion.install 'bash_completion.bash' => 'lein-completion.bash'
zsh_completion.install 'zsh_completion.zsh' => '_lein'
end
2010-07-18 22:11:41 +00:00
def caveats; <<-EOS.undent
Dependencies will be installed to:
2010-07-18 22:11:41 +00:00
$HOME/.m2/repository
To play around with Clojure run `lein repl` or `lein help`.
2010-07-18 22:11:41 +00:00
EOS
end
end