# -*- 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
maintainers gmail.com:fernando.iazeolla
description a simple command line metar and taf.
long_description ${description}
homepage https://github.com/elboza/metar
master_sites http://www.autistici.org/0xFE/software/releases/metar/
checksums rmd160 28644bc6b2507352236b2e2cf8e0975724678b77 \
sha256 194b17dc559f91c45847b5fdecceb0d8f71b97ce77b989a728a7416406edfdfa
depends_lib-append port:p${perl5.major}-libwww-perl
destroot.destdir DEST_DIR=${destroot}${prefix}/bin
reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|g" ${worksrcpath}/${name}.pl
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}