homebrew-core/Formula/prest.rb

27 lines
872 B
Ruby
Raw Normal View History

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.5.tar.gz"
sha256 "2246ddadb048bc4db207c1691cdfadc39c22dbb2cee8ec88d8d287c245979813"
2017-03-11 14:18:18 +00:00
bottle do
cellar :any_skip_relocation
2017-03-21 18:20:06 +00:00
sha256 "1e60169a9d5672485066e5dad81a93c1f3d87f4b71beb7499d8582fad8cfd593" => :sierra
sha256 "1e79b9bb4d3926186480a501b590d44c636eeac615d1dba0506f78d6f8640084" => :el_capitan
sha256 "bb0d28d02e6a5c1d6b1addf7e25c2d78ff368dc4f6c4f4bf9237176dd9b0d01f" => :yosemite
2017-03-11 14:18:18 +00:00
end
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