aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-07-28 01:16:16 -0700
committerMisty De Meo2013-07-28 01:17:20 -0700
commit4c9ea3b2dc858b0a25acdca7a02258a90419ff07 (patch)
tree9e4b719902a0b4e53a507dd0634c3046227b094b /Library/Formula
parent5f6f8bc1c1946d8bc7ee179de8e412c6c0eb58af (diff)
downloadhomebrew-4c9ea3b2dc858b0a25acdca7a02258a90419ff07.tar.bz2
leiningen: disable autoinstall/autoupdate
Fixes #21398.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/leiningen.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/leiningen.rb b/Library/Formula/leiningen.rb
index 67bc46dea..3f60b5df7 100644
--- a/Library/Formula/leiningen.rb
+++ b/Library/Formula/leiningen.rb
@@ -1,5 +1,10 @@
require 'formula'
+class LeiningenJar < Formula
+ url 'https://leiningen.s3.amazonaws.com/downloads/leiningen-2.2.0-standalone.jar', :using => :nounzip
+ sha1 '694c01251f71954e9d1d7003b42dee1b3a393191'
+end
+
class Leiningen < Formula
homepage 'https://github.com/technomancy/leiningen'
url 'https://github.com/technomancy/leiningen/archive/2.2.0.tar.gz'
@@ -8,14 +13,18 @@ class Leiningen < Formula
head 'https://github.com/technomancy/leiningen.git'
def install
- bin.install "bin/lein"
- system "#{bin}/lein", "self-install"
+ 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'
bash_completion.install 'bash_completion.bash' => 'lein-completion.bash'
zsh_completion.install 'zsh_completion.zsh' => '_lein'
end
def caveats; <<-EOS.undent
- Standalone jar and dependencies installed to:
+ Dependencies will be installed to:
$HOME/.m2/repository
EOS
end