# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           legacysupport 1.1

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

github.setup        uber h3 4.4.1 v
revision            0
categories          gis devel
license             Apache-2
maintainers         {acm.org:cardi @cardi} openmaintainer

description         Hexagonal hierarchical geospatial indexing system
long_description    H3 is a geospatial indexing system using \
                    a hexagonal grid that can be (approximately) \
                    subdivided into finer and finer hexagonal grids, \
                    combining the benefits of a hexagonal grid with \
                    S2's hierarchical subdivisions.

homepage            https://h3geo.org

checksums           rmd160  f05a55cfb58440e2b0993f012b5fbf75856ecaf7 \
                    sha256  9df719eb878f218c203e424dc5ffca9b98eca4d78ba83928773987649ead404d \
                    size    18337226
github.tarball_from archive

# h3Index.c:133:17: error: invalid suffix "b00001000" on integer constant
compiler.blacklist-append \
                    *gcc-4.*

test.run            yes
test.cmd            ctest
