-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmartin.rb
54 lines (46 loc) · 1.74 KB
/
martin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# ATTENTION: This is an autogenerated file. See original at
# https://github.com/maplibre/martin/blob/main/.github/files/homebrew.martin.rb.j2
#
class Martin < Formula
current_version="0.14.1"
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
sha256 "7e630ac8199632c3eb70aa265a5e7ae2655f91979d576277df48b9c5012f106d"
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-aarch64-apple-darwin.tar.gz"
end
on_intel do
sha256 "187965579f4d5dbc43366dba41d426c3ad4f3eaa2dec7a944e4878ac7730d1b7"
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-x86_64-apple-darwin.tar.gz"
end
end
on_linux do
on_arm do
sha256 "3582d174381a3de3199353a547837b87197e0415d51a136eab0a906844014bab"
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-aarch64-unknown-linux-musl.tar.gz"
end
on_intel do
sha256 "a7410d22b171d1c3abecf7db7f852eedfb7d4485d095fec30bba5770023cd6c0"
url "https://github.com/maplibre/martin/releases/download/v#{current_version}/martin-x86_64-unknown-linux-musl.tar.gz"
end
end
version "#{current_version}"
def install
bin.install "martin"
bin.install "martin-cp"
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`
`#{bin}/martin-cp --version`
`#{bin}/mbtiles --version`
end
end