Datomic 0.8.4159

Closes Homebrew/homebrew#22718.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Adam Stankiewicz 2013-09-21 01:00:54 +02:00 committed by Adam Vandenberg
parent 2a723b025e
commit d56df12b0c
1 changed files with 30 additions and 0 deletions

30
Formula/datomic.rb Normal file
View File

@ -0,0 +1,30 @@
require 'formula'
class Datomic < Formula
homepage 'http://www.datomic.com/'
url "http://downloads.datomic.com/0.8.4159/datomic-free-0.8.4159.zip"
sha1 '594e228cf984289cfb10b2174df9378b4ef6df95'
def write_libexec_alias *script_names
script_names.each do |script_name|
alias_name = script_name == 'datomic' ? 'datomic' : "datomic-#{script_name}"
(bin + alias_name).write <<-EOS.undent
#!/bin/bash
cd #{libexec} && exec "bin/#{script_name}" "$@"
EOS
end
end
def install
libexec.install Dir['*']
write_libexec_alias 'datomic', 'transactor', 'repl', 'repl-jline', 'rest', 'shell'
end
def caveats
<<-EOS.undent
You may need to set JAVA_HOME:
export JAVA_HOME="$(/usr/libexec/java_home)"
All commands have been installed with the prefix 'datomic-'.
EOS
end
end