File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments