aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/datomic.rb
diff options
context:
space:
mode:
authorAdam Stankiewicz2013-09-21 01:00:54 +0200
committerAdam Vandenberg2013-09-22 21:47:31 -0700
commit1f3b90a488b14a1e3cf095a980eee497a1231e66 (patch)
tree7f953a8346177b86bbe13f2440e237d25373ef95 /Library/Formula/datomic.rb
parent4d064d4371cf32e82e835749ce0260d87ada02e7 (diff)
downloadhomebrew-1f3b90a488b14a1e3cf095a980eee497a1231e66.tar.bz2
Datomic 0.8.4159
Closes #22718. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/datomic.rb')
-rw-r--r--Library/Formula/datomic.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/datomic.rb b/Library/Formula/datomic.rb
new file mode 100644
index 000000000..c75a3dd37
--- /dev/null
+++ b/Library/Formula/datomic.rb
@@ -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