mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
8f020aa6f6
Closes: - #616 - #618
27 lines
701 B
Ruby
27 lines
701 B
Ruby
class Martin < Formula
|
|
current_version="0.8.1"
|
|
|
|
desc "PostGIS Mapbox Vector Tiles server"
|
|
homepage "https://github.com/urbica/martin"
|
|
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-Darwin-x86_64.tar.gz"
|
|
sha256 "554171bc4761c1852f0d6509b16af00d67f2d2b7d78ad20d9f819beb5d967e8a"
|
|
version "#{current_version}"
|
|
|
|
depends_on "openssl@3"
|
|
|
|
def install
|
|
bin.install "martin"
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
Martin requires a database connection string.
|
|
It can be passed as a command-line argument or as a DATABASE_URL environment variable.
|
|
martin postgres://postgres@localhost/db
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
`#{bin}/martin --version`
|
|
end
|
|
end
|