# -*- 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                libtcd
version             2.2.7-r2
categories          science
platforms           darwin
maintainers         {dstrubbe @dstrubbe} openmaintainer
license             public-domain

description         API for using Tide Constituent Database files

long_description    libtcd provides a software API for reading and writing \
                    Tide Constituent Database (TCD) files.

homepage            http://www.flaterco.com/xtide/
master_sites        ftp://ftp.flaterco.com/xtide/
use_bzip2           yes

checksums           rmd160  0160b9af26aa22e2cbf74fc5ae05493238cd2eb6 \
                    sha256  aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94

worksrcdir          ${name}-[lindex [split ${version} -] 0]

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        ${name}.html \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       ${homepage}files.html
livecheck.regex     ${name}-(\[0-9.r-\]+)${extract.suffix}