blob: 6e97fc962f437c8454e654d0942f6830c564d9f2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | class Datomic < Formula
  homepage "http://www.datomic.com/"
  url "https://my.datomic.com/downloads/free/0.9.5153"
  sha256 "acaacf8d08d5594451dfad00782cefccea78a61fce0185f4448890ed9adf886b"
  version "0.9.5153"
  depends_on :java
  def install
    libexec.install Dir["*"]
    (bin/"datomic").write_env_script libexec/"bin/datomic", Language::Java.java_home_env
    %w[transactor repl repl-jline rest shell].each do |file|
      (bin/"datomic-#{file}").write_env_script libexec/"bin/#{file}", Language::Java.java_home_env
    end
  end
  def caveats
    <<-EOS.undent
      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
  test do
    help = pipe_output("#{bin}/datomic-shell", "Shell.help();\n")
    assert_match(/^\* Basics/, help)
  end
end
 |