New formula for FleetDB 0.2.0

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Rename per Homebrew convention
This commit is contained in:
Mark McGranaghan 2010-07-15 09:30:23 -07:00 committed by Adam Vandenberg
parent c0e59c77be
commit 359aa0ecd2

23
Formula/fleet-db.rb Normal file
View file

@ -0,0 +1,23 @@
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