aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/basex.rb
blob: 66ae61f459d0eaf8504d79c8a9d62988b78647c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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