homebrew-core/Formula/datomic.rb
Grant Ellis 24b28b6d67 datomic 0.9.4815.12.
Closes Homebrew/homebrew#31223.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-30 01:12:05 +02: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.4815.12'
sha256 'f40b23351cece3531a1201de22c29d8da8cafe36edd8d83f29633c21ff6a46c5'
version '0.9.4815.12'
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