homebrew-core/Formula/datomic.rb
Lauri Oherd 658ba75603 Datomic 0.9.5067
Closes Homebrew/homebrew#34052.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-11-09 17:10:25 -06:00

35 lines
1 KiB
Ruby

require 'formula'
class Datomic < Formula
homepage 'http://www.datomic.com/'
url 'https://my.datomic.com/downloads/free/0.9.5067'
sha256 'babba5f85070ea656bd9580d89023ce5ca796458292d65211a186197a9ebab0a'
version '0.9.5067'
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-'.
We agreed to the Datomic Free Edition License for you:
http://www.datomic.com/datomic-free-edition-license.html
If this is unacceptable you should uninstall.
EOS
end
end