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

PortSystem          1.0
PortGroup           cmake  1.1

name                gdal-grass

# Due to upstream reset of version numbering after split from GDAL source repo,
# do not (re-)publish 1.4.3_0, 2.1.0_0, 2.1.0_1, 2.2.0_0, 2.2.0_1, or 2.2.0_2
version             1.0.3
revision            1
epoch               1

categories          gis
license             MIT
maintainers         {yahoo.com:n_larsson @nilason} {vince @Veence} openmaintainer

description         GRASS Drivers for GDAL and OGR
long_description    This plugin allows GDAL to read GRASS raster and vector files.

homepage            https://github.com/OSGeo/gdal-grass
master_sites        https://download.osgeo.org/gdal-grass/

depends_lib         port:gdal \
                    port:grass

checksums           rmd160  3b5251029254b72215614df2e0690f0e9fa87ffc \
                    sha256  eb000f9b953f3f2dc399e833969a2bc7f8f4637791add43240b69f77f382a71f \
                    size    344478

compiler.cxx_standard  2011

patchfiles-append   patch_gdal_311.diff

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]
