# -*- 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

name                gshhg-gmt
version             2.3.7
categories          science
platforms           darwin
supported_archs     noarch
maintainers         {takeshi @tenomoto}
license             LGPL-3
description         Global Self-consistent Hierarchical High-resolution Geography (GSHHG)
long_description    Global Self-consistent Hierarchical \
    High-resolution Geography (GSHHG) is a high-resolution \
    shoreline data set amalgamated from three databases: \
    World Vector Shorelines (WVS), CIA World Data Bank II \
    (WDBII), and Atlas of the Cryosphere (AC). GSHHG contains \
    vector descriptions at five different resolutions of land \
    outlines, lakes, rivers, and political boundaries. To read \
    and process the data you should install GMT, the Generic \
    Mapping Tools (port gmt5).

homepage            http://www.soest.hawaii.edu/pwessel/gshhg/index.html
master_sites        http://www.soest.hawaii.edu/pwessel/gshhg \
                    ftp://ftp.soest.hawaii.edu/gshhg
checksums           rmd160  c8226ce76f7ffeff07d22d6f202c1c1128ac29bd \
                    sha256  9bb1a956fca0718c083bef842e625797535a00ce81f175df08b042c2a92cfe7f

use_configure       no
build {}

destroot {
    file mkdir ${destroot}${prefix}/share/gmt
    copy ${worksrcpath} ${destroot}${prefix}/share/gmt/gshhg
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {(?i)version ([0-9]+\.[0-9]+\.[0-9]+)}