summaryrefslogtreecommitdiff
path: root/homebrew/osm2pgsql/.beer
blob: 32f46aa00f16ebd1183b2f62e8a6a7db5787f05d (plain)
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
{
    "name": "Osm2pgsql",
    "description": "OpenStreetMap data to PostgreSQL converter",
    "url": "https://github.com/openstreetmap/osm2pgsql/archive/0.96.0.tar.gz",
    "mirror": null,
    "homepage": "https://wiki.openstreetmap.org/wiki/Osm2pgsql",
    "depends": [
        {
            "depend": "cmake",
            "build-depend": true
        },
        {
            "depend": "boost",
            "build-depend": false
        },
        {
            "depend": "geos",
            "build-depend": false
        },
        {
            "depend": "lua",
            "build-depend": false
        },
        {
            "depend": "postgresql",
            "build-depend": false
        },
        {
            "depend": "proj",
            "build-depend": false
        }
    ],
    "resource": [],
    "conflicts": [],
    "patches": [],
    "install": [
        "lua_version = Formula[\"lua\"].version.to_s.match(/\\d\\.\\d/)",
        "inreplace \"cmake/FindLua.cmake\", \"LUA_VERSIONS5 5.3 5.2 5.1 5.0\",",
        "\"LUA_VERSIONS5 #{lua_version}\"",
        "ENV.append_to_cflags \"-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H\"",
        "mkdir \"build\" do",
        "system \"cmake\", \"..\", *std_cmake_args",
        "system \"make\", \"install\""
    ],
    "version": "0.96.0",
    "file": "osm2pgsql.rb"
}