New formula for FleetDB 0.2.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Rename per Homebrew convention
This commit is contained in:
parent
c0e59c77be
commit
359aa0ecd2
1 changed files with 23 additions and 0 deletions
23
Formula/fleet-db.rb
Normal file
23
Formula/fleet-db.rb
Normal 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
|
Loading…
Reference in a new issue