# -*- 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 111504 2013-09-24 04:34:48Z ryandesign@macports.org $

PortSystem          1.0

name                metar
version             0.2
categories          science
platforms           darwin linux
maintainers         gmail.com:fernando.iazeolla
license             GPL-2+
supported_archs     noarch

description         a simple command line metar and taf.

long_description    ${description}

homepage            http://github.com/elboza/metar
master_sites        http://www.autistici.org/0xFE/software/releases/metar/

checksums           md5    c694636e3f402423b8de39eab3e6beec \
                    sha1    4e8401f89a3db0434505633d9244e324b953daea \
                    rmd160  28644bc6b2507352236b2e2cf8e0975724678b77

worksrcdir          ${name}

use_configure       no

build {}

destroot.destdir    DEST_DIR=${destroot}${prefix}/bin

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

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
