44 lines
1.7 KiB
Ruby
44 lines
1.7 KiB
Ruby
class Liquibase < Formula
|
|
desc "Library for database change tracking"
|
|
homepage "https://www.liquibase.org/"
|
|
url "https://github.com/liquibase/liquibase/releases/download/v4.16.1/liquibase-4.16.1.tar.gz"
|
|
sha256 "2f9787ee381a6bd1b712fada516481543b806587448d14540ccb79b53a996540"
|
|
license "Apache-2.0"
|
|
|
|
livecheck do
|
|
url "https://www.liquibase.org/download"
|
|
regex(/href=.*?liquibase[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "6e9eca48690a54b2fdcf16736819da4da9cfb87f0fc3efbfaf8bdf2fd91801ee"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6e9eca48690a54b2fdcf16736819da4da9cfb87f0fc3efbfaf8bdf2fd91801ee"
|
|
sha256 cellar: :any_skip_relocation, monterey: "c063178576202321005d8c2972d078fdf6edaf7fdf3df0a51801fee8a189316d"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "c063178576202321005d8c2972d078fdf6edaf7fdf3df0a51801fee8a189316d"
|
|
sha256 cellar: :any_skip_relocation, catalina: "c063178576202321005d8c2972d078fdf6edaf7fdf3df0a51801fee8a189316d"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "6e9eca48690a54b2fdcf16736819da4da9cfb87f0fc3efbfaf8bdf2fd91801ee"
|
|
end
|
|
|
|
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", Language::Java.overridable_java_home_env
|
|
(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
|