# -*- 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 144222 2016-01-05 00:41:40Z mojca@macports.org $ PortSystem 1.0 PortGroup perl5 1.0 name metar version 0.2 revision 1 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 rmd160 28644bc6b2507352236b2e2cf8e0975724678b77 \ sha256 194b17dc559f91c45847b5fdecceb0d8f71b97ce77b989a728a7416406edfdfa perl5.branches 5.22 depends_lib-append port:p${perl5.major}-libwww-perl worksrcdir ${name} use_configure no build {} destroot.destdir DEST_DIR=${destroot}${prefix}/bin post-patch { reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|g" ${worksrcpath}/${name}.pl } 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}