Skip to content

Commit 092ff63

Browse files
committed
martin 0.15.0 (new formula)
1 parent 2b8f8fe commit 092ff63

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/m/martin.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
depends_on "node" => :build
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args(path: "martin")
13+
system "cargo", "install", *std_cargo_args(path: "mbtiles")
14+
pkgshare.install "tests/fixtures/mbtiles"
15+
end
16+
17+
test do
18+
mbtiles = pkgshare/"mbtiles/world_cities.mbtiles"
19+
port = free_port
20+
fork do
21+
exec bin/"martin", mbtiles, "-l", "127.0.0.1:#{port}"
22+
end
23+
sleep 3
24+
output = shell_output("curl -s 127.0.0.1:#{port}")
25+
assert_match "Martin server is running.", output
26+
27+
system bin/"mbtiles", "summary", mbtiles
28+
end
29+
end

0 commit comments

Comments
 (0)