# -*- 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
# $Id: Portfile 119604 2014-05-02 09:12:57Z ryandesign@macports.org $

PortSystem          1.0

name                gshhg-gmt
version             2.3.0
categories          science
platforms           darwin
supported_archs     noarch
maintainers         eprofs.de:florian \
                    takeshi
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 gmt4 or 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           md5     9d9725810027830fe01e73c6cb4fb890 \
                    sha1    eb62a0a9bceee4297055be18b8727b603cd0e9cb \
                    rmd160  2dc51b2525122f6027e8e5d0093965c996de4315

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]+)}
