# -*- 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 119603 2014-05-02 09:08:05Z ryandesign@macports.org $

PortSystem          1.0

name                dcw-gmt
version             1.1.1
categories          science
platforms           darwin
supported_archs     noarch
maintainers         eprofs.de:florian \
                    takeshi
license             LGPL-3
description         Digital Chart of the World (DCW) for GMT 5
long_description    DCW-GMT is an enhancement to the \
    original 1:1,000,000 scale vector basemap of the world \
    available from the Princeton University Digital Map and \
    Geospatial Information Center and from GeoCommunity at \
    http://data.geocomm.com/readme/dcw/dcw.html. To read \
    and process the data you should install GMT, the Generic \
    Mapping Tools (port gmt5).

homepage            http://www.soest.hawaii.edu/pwessel/dcw/index.html
master_sites        http://www.soest.hawaii.edu/pwessel/dcw \
                    ftp://ftp.soest.hawaii.edu/dcw
checksums           md5     f37787b207006708d7385722066817c7 \
                    sha1    deca85f21426604c8574a18d16c931a1fd9ae27b \
                    rmd160  660098d06283f93ad6cc7b5c5c49ca4d90b15d7d

use_configure       no
build {}

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

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