prest 0.1.4 (new formula)
Closes #10847. Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
This commit is contained in:
parent
2d6a6cbade
commit
69d0981695
1 changed files with 19 additions and 0 deletions
19
Formula/prest.rb
Normal file
19
Formula/prest.rb
Normal 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
|
Loading…
Reference in a new issue