homebrew-core/Formula/fleet-db.rb
Mark McGranaghan 359aa0ecd2 New formula for FleetDB 0.2.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Rename per Homebrew convention
2010-07-16 10:38:48 -07:00

23 lines
507 B
Ruby

require 'formula'
class FleetDb <Formula
url 'http://fleetdb.s3.amazonaws.com/fleetdb-standalone-0.2.0.jar'
version '0.2.0'
homepage 'http://fleetdb.org'
md5 'e7c0b9dd61650300e82da46bab6ee560'
def install
prefix.mkpath
prefix.install Dir['*']
(bin+'fleetdb-server').write <<-SCRIPT
#!/bin/sh
java -cp #{prefix}/fleetdb-standalone-0.2.0.jar fleetdb.server $@
SCRIPT
end
def caveats; <<-CAVAETS
To start a FleetDB server:
fleetdb-server -f /path/to/data.fdb
CAVAETS
end
end