Skip to content

Commit 531b1b0

Browse files
authored
Merge pull request Homebrew#206380 from ankane/martin
martin 0.15.0 (new formula)
2 parents a89584f + fa456ce commit 531b1b0

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/m/martin.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Martin < Formula
2+
desc "Blazing fast tile server, tile generation, and mbtiles tooling"
3+
homepage "https://martin.maplibre.org"
4+
url "https://github.com/maplibre/martin/archive/refs/tags/v0.15.0.tar.gz"
5+
sha256 "1308d9f0d83f3b645875380aa784949ff9b56847a60384751e656291e60111f5"
6+
license any_of: ["Apache-2.0", "MIT"]
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "aa78b7697adbf2c7cad5f1cd2cb7dfa070fb241c950ef61fe2e947f293154429"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "29e5b6b7ef944ef3a02ef7882a4b52aa053f5ed91fe3a9a106e16f227372d8ba"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "7944e7a446b7400d4e9b22c2b2fb3a44442b15b8355e7ae5dd7b715cd68abc20"
12+
sha256 cellar: :any_skip_relocation, sonoma: "4bc131c8c10971a4b96a7ccab010755887e76c1de2ce70e4b4f76867efa4117f"
13+
sha256 cellar: :any_skip_relocation, ventura: "f1f8a0f1024a24c0fc41c625da2cfb12848ab1bb0edb758e88abf1c3a55b8366"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "3ca011be64c545a210d401aef700a3181f06fe34ce280d0cd5aa70f895f8703d"
15+
end
16+
17+
depends_on "node" => :build
18+
depends_on "rust" => :build
19+
20+
def install
21+
system "cargo", "install", *std_cargo_args(path: "martin")
22+
system "cargo", "install", *std_cargo_args(path: "mbtiles")
23+
pkgshare.install "tests/fixtures/mbtiles"
24+
end
25+
26+
test do
27+
mbtiles = pkgshare/"mbtiles/world_cities.mbtiles"
28+
port = free_port
29+
fork do
30+
exec bin/"martin", mbtiles, "-l", "127.0.0.1:#{port}"
31+
end
32+
sleep 3
33+
output = shell_output("curl -s 127.0.0.1:#{port}")
34+
assert_match "Martin server is running.", output
35+
36+
system bin/"mbtiles", "summary", mbtiles
37+
end
38+
end

0 commit comments

Comments
 (0)