2023-10-12 07:37:03 +03:00
|
|
|
#
|
|
|
|
# ATTENTION: This is an autogenerated file. See original at
|
2023-11-24 05:14:32 +03:00
|
|
|
# https://github.com/maplibre/martin/blob/main/.github/files/homebrew.martin.rb.j2
|
2023-10-12 07:37:03 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
class Martin < Formula
|
|
|
|
current_version="{{ version }}"
|
|
|
|
|
|
|
|
desc "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support, plus an mbtiles tool"
|
|
|
|
homepage "https://github.com/maplibre/martin"
|
|
|
|
|
|
|
|
on_macos do
|
|
|
|
on_arm do
|
2023-11-20 10:49:53 +03:00
|
|
|
sha256 "{{ macos_arm_sha256 }}"
|
|
|
|
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-aarch64-apple-darwin.tar.gz"
|
2023-10-12 07:37:03 +03:00
|
|
|
end
|
|
|
|
on_intel do
|
|
|
|
sha256 "{{ macos_intel_sha256 }}"
|
2023-11-20 10:49:53 +03:00
|
|
|
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-x86_64-apple-darwin.tar.gz"
|
2023-10-12 07:37:03 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
on_linux do
|
|
|
|
on_arm do
|
|
|
|
sha256 "{{ linux_arm_sha256 }}"
|
2023-11-20 10:49:53 +03:00
|
|
|
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-aarch64-unknown-linux-musl.tar.gz"
|
2023-10-12 07:37:03 +03:00
|
|
|
end
|
|
|
|
on_intel do
|
|
|
|
sha256 "{{ linux_intel_sha256 }}"
|
2023-11-20 10:49:53 +03:00
|
|
|
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-x86_64-unknown-linux-musl.tar.gz"
|
2023-10-12 07:37:03 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
version "#{current_version}"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "martin"
|
2024-01-11 19:55:28 +03:00
|
|
|
bin.install "martin-cp"
|
2023-10-12 07:37:03 +03:00
|
|
|
bin.install "mbtiles"
|
|
|
|
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`
|
2024-01-11 19:55:28 +03:00
|
|
|
`#{bin}/martin-cp --version`
|
2023-10-12 07:37:03 +03:00
|
|
|
`#{bin}/mbtiles --version`
|
|
|
|
end
|
|
|
|
end
|