homebrew-core/Formula/basex.rb
Joe Wicentowski b1d0b916e4 basex 9.3
Closes #47367.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
2019-12-01 14:42:05 -05:00

25 lines
623 B
Ruby

class Basex < Formula
desc "Light-weight XML database and XPath/XQuery processor"
homepage "http://basex.org"
url "http://files.basex.org/releases/9.3/BaseX93.zip"
version "9.3"
sha256 "f94c3aa02f8f79b909fcc4fb0c1666fd600b5c7d8c59d007f9529700a326fe71"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm Dir["bin/*.bat"]
rm_rf "repo"
rm_rf "data"
rm_rf "etc"
prefix.install_metafiles
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
assert_equal "1\n2\n3\n4\n5\n6\n7\n8\n9\n10", shell_output("#{bin}/basex '1 to 10'")
end
end