diff options
| author | fuJiin | 2011-03-26 22:58:54 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-14 09:16:05 -0700 |
| commit | 6b5da968295bcad517e263f553774e59bf7eebfc (patch) | |
| tree | e3b7cccc9bd4dfc4cea538ee6db5d8759fd089bd /Library/Formula | |
| parent | e640506f60aa6cbe7776368a8b0e6415f6f1b539 (diff) | |
| download | homebrew-6b5da968295bcad517e263f553774e59bf7eebfc.tar.bz2 | |
cake 0.6.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cake.rb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Library/Formula/cake.rb b/Library/Formula/cake.rb new file mode 100644 index 000000000..3967fb0b4 --- /dev/null +++ b/Library/Formula/cake.rb @@ -0,0 +1,43 @@ +require 'formula' + +$cake_version = "0.6.2" + +# Downloads executable +class CakeExecutable < Formula + url "http://releases.clojure-cake.org/cake" + md5 "d5533fc60a264d5db47f9801882a45c1" + version $cake_version +end + +# Cake jars, installs executable +class Cake < Formula + url "http://releases.clojure-cake.org/jars/cake-#{$cake_version}.jar" + head "git://github.com/ninjudd/cake.git", :using => :git + homepage "http://github.com/ninjudd/cake" + md5 "2785a2614267e636b5ef889bda0a15e6" + + def install + if ARGV.build_head? + bin.install "bin/cake" # only need executable if HEAD + else + libexec.install "cake-#{$cake_version}.jar" => "cake.jar" + + # extract bake.jar + libexec.cd do + system "jar xf cake.jar bake.jar" + end + + # get executable + CakeExecutable.new.brew do + bin.install "cake" + end + end + end + + def caveats; <<-EOS.undent + Using snapshot version. Standalone jar and dependencies will be installed to: + $HOME/.m2/repository + the first time cake is run. + EOS + end if ARGV.build_head? +end |
