2009-11-22 04:08:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-07-28 08:16:16 +00:00
|
|
|
class LeiningenJar < Formula
|
|
|
|
url 'https://leiningen.s3.amazonaws.com/downloads/leiningen-2.2.0-standalone.jar', :using => :nounzip
|
|
|
|
sha1 '694c01251f71954e9d1d7003b42dee1b3a393191'
|
|
|
|
end
|
|
|
|
|
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'
|
2013-05-30 18:58:41 +00:00
|
|
|
url 'https://github.com/technomancy/leiningen/archive/2.2.0.tar.gz'
|
|
|
|
sha1 '0ca7e4ea68b490171d869bd5cc3912feba8d7ee9'
|
2011-09-17 18:56:16 +00:00
|
|
|
|
2012-04-19 02:37:43 +00:00
|
|
|
head 'https://github.com/technomancy/leiningen.git'
|
2009-11-22 04:08:42 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-28 08:16:16 +00:00
|
|
|
LeiningenJar.new.brew { libexec.install 'leiningen-2.2.0-standalone.jar' }
|
|
|
|
# bin/lein autoinstalls and autoupdates, which doesn't work too well for us
|
|
|
|
inreplace "bin/lein-pkg" do |s|
|
|
|
|
s.change_make_var! 'LEIN_JAR', libexec/'leiningen-2.2.0-standalone.jar'
|
|
|
|
end
|
|
|
|
bin.install "bin/lein-pkg" => 'lein'
|
2013-05-03 18:03:31 +00:00
|
|
|
bash_completion.install 'bash_completion.bash' => 'lein-completion.bash'
|
2013-05-30 18:58:41 +00:00
|
|
|
zsh_completion.install 'zsh_completion.zsh' => '_lein'
|
2009-11-22 04:08:42 +00:00
|
|
|
end
|
2010-07-18 22:11:41 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2013-07-28 08:16:16 +00:00
|
|
|
Dependencies will be installed to:
|
2010-07-18 22:11:41 +00:00
|
|
|
$HOME/.m2/repository
|
|
|
|
EOS
|
|
|
|
end
|
2009-11-22 04:08:42 +00:00
|
|
|
end
|