# -*- 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 123037 2014-08-04 01:46:19Z khindenburg@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 md5 c694636e3f402423b8de39eab3e6beec \ sha1 4e8401f89a3db0434505633d9244e324b953daea \ rmd160 28644bc6b2507352236b2e2cf8e0975724678b77 depends_lib-append port:p${perl5.default_branch}-libwww-perl worksrcdir ${name} use_configure no build {} destroot.destdir DEST_DIR=${destroot}${prefix}/bin pre-destroot { reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${perl5.default_branch}|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}