homebrew-core/Formula/basex.rb

22 lines
426 B
Ruby
Raw Normal View History

require 'formula'
class Basex < Formula
homepage 'http://basex.org'
url 'http://files.basex.org/releases/7.3/BaseX73.zip'
version '7.3'
sha1 'f996b953c08a3a0bdce0985e0f939d4854216413'
def install
rm Dir['bin/*.bat']
rm_rf "repo"
rm_rf "data"
rm_rf "etc"
libexec.install Dir['*']
bin.install_symlink Dir["#{libexec}/bin/*"]
end
def test
system "#{bin}/basex", "'1 to 10'"
end
end