2011-08-20 11:29:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Liquibase < Formula
|
|
|
|
homepage 'http://liquibase.org'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/liquibase/Liquibase%20Core/liquibase-3.1.1-bin.tar.gz'
|
2014-01-17 08:03:50 +00:00
|
|
|
sha1 '48af02bd837eab401236963c5868fc4dae5dfbee'
|
2011-08-20 11:29:41 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
rm_f Dir['*.bat']
|
|
|
|
|
|
|
|
chmod 0755, Dir['liquibase']
|
|
|
|
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install_metafiles
|
2011-08-20 11:29:41 +00:00
|
|
|
libexec.install Dir['*']
|
2012-02-13 01:15:53 +00:00
|
|
|
bin.install_symlink libexec+'liquibase'
|
2011-08-20 11:29:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
You should set the environment variable LIQUIBASE_HOME to
|
|
|
|
#{libexec}
|
|
|
|
EOS
|
|
|
|
end
|
2013-07-13 12:47:25 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/liquibase", "--version"
|
|
|
|
end
|
2011-08-20 11:29:41 +00:00
|
|
|
end
|