26 lines
680 B
Ruby
26 lines
680 B
Ruby
class Liquibase < Formula
|
|
desc "Library for database change tracking"
|
|
homepage "https://www.liquibase.org/"
|
|
url "https://github.com/liquibase/liquibase/releases/download/liquibase-parent-3.5.5/liquibase-3.5.5-bin.tar.gz"
|
|
sha256 "da0df7f6ea7694fb62b1448c3c734644d8d49795ff9bb7417db18bb1da5ff2c6"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
rm_f Dir["*.bat"]
|
|
chmod 0755, "liquibase"
|
|
prefix.install_metafiles
|
|
libexec.install Dir["*"]
|
|
bin.install_symlink libexec/"liquibase"
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
You should set the environment variable LIQUIBASE_HOME to
|
|
#{opt_libexec}
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/liquibase", "--version"
|
|
end
|
|
end
|