32 lines
844 B
Ruby
32 lines
844 B
Ruby
class Liquibase < Formula
|
|
desc "Library for database change tracking"
|
|
homepage "https://www.liquibase.org/"
|
|
url "https://github.com/liquibase/liquibase/releases/download/v4.3.2/liquibase-4.3.2.tar.gz"
|
|
sha256 "b1cfd6e0dfa97756e12e2c902ea9b48f6a3f46f893f222b3059703d06443aaa1"
|
|
license "Apache-2.0"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
rm_f Dir["*.bat"]
|
|
chmod 0755, "liquibase"
|
|
prefix.install_metafiles
|
|
libexec.install Dir["*"]
|
|
(bin/"liquibase").write_env_script libexec/"liquibase", JAVA_HOME: Formula["openjdk"].opt_prefix
|
|
(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
|