prest 0.1.4 (new formula)

Closes #10847.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
This commit is contained in:
Avelino 2017-03-10 09:10:11 -03:00 committed by Baptiste Fontaine
parent 2d6a6cbade
commit 69d0981695

19
Formula/prest.rb Normal file
View file

@ -0,0 +1,19 @@
class Prest < Formula
desc "Serve a RESTful API from any PostgreSQL database"
homepage "https://github.com/nuveo/prest"
url "https://github.com/nuveo/prest/archive/v0.1.4.tar.gz"
sha256 "8d1a38e1ea45ebf7bffb34258ba2db5c404a58139597b6a8439bcaaeec12084e"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/nuveo").mkpath
ln_s buildpath, buildpath/"src/github.com/nuveo/prest"
system "go", "build", "-o", bin/"prest"
end
test do
system "#{bin}/prest", "version"
end
end