aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/liquibase.rb
blob: b354dac2f6d5c03825d6cb6f18d19852088dbb6e (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
require 'formula'

class Liquibase < Formula
  url 'https://github.com/downloads/liquibase/liquibase/liquibase-2.0.3-bin.tar.gz'
  homepage 'http://liquibase.org'
  md5 '460a4bba1fd6a9c4bd44016f3af9728d'

  def install
    rm_f Dir['*.bat']

    chmod 0755, Dir['liquibase']

    prefix.install "LICENSE.txt"
    libexec.install Dir['*']

    bin.mkpath
    ln_s libexec+('liquibase'), bin
  end

  def caveats
    <<-EOS.undent
      You should set the environment variable LIQUIBASE_HOME to
        #{libexec}
    EOS
  end
end