18d430980b
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
28 lines
606 B
Ruby
28 lines
606 B
Ruby
require 'formula'
|
|
|
|
class Liquibase < Formula
|
|
homepage 'http://liquibase.org'
|
|
url 'http://downloads.sourceforge.net/project/liquibase/Liquibase%20Core/liquibase-3.0.2-bin.tar.gz'
|
|
sha1 'c48193ea228b07b0c42109692c8ddb4981863044'
|
|
|
|
def install
|
|
rm_f Dir['*.bat']
|
|
|
|
chmod 0755, Dir['liquibase']
|
|
|
|
prefix.install_metafiles
|
|
libexec.install Dir['*']
|
|
bin.install_symlink libexec+'liquibase'
|
|
end
|
|
|
|
def caveats
|
|
<<-EOS.undent
|
|
You should set the environment variable LIQUIBASE_HOME to
|
|
#{libexec}
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/liquibase", "--version"
|
|
end
|
|
end
|