homebrew-core/Formula/liquibase.rb

30 lines
765 B
Ruby

class Liquibase < Formula
desc "Library for database change tracking"
homepage "https://www.liquibase.org/"
url "https://github.com/liquibase/liquibase/releases/download/v3.10.1/liquibase-3.10.1.tar.gz"
sha256 "e54dc5d639fa404ebcc72de647c2009748fa0685566a46abaed9c2a9b88e40e0"
license "Apache-2.0"
bottle :unneeded
def install
rm_f Dir["*.bat"]
chmod 0755, "liquibase"
prefix.install_metafiles
libexec.install Dir["*"]
bin.install_symlink libexec/"liquibase"
(libexec/"lib").install_symlink Dir["#{libexec}/sdk/lib-sdk/slf4j*"]
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