source: trunk/dports/science/metar/Portfile

Last change on this file was 154100, checked in by mojca@…, 11 months ago

metar: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 154100 2016-10-20 03:18:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                metar
8version             0.2
9revision            2
10categories          science
11platforms           darwin linux
12maintainers         gmail.com:fernando.iazeolla
13license             GPL-2+
14supported_archs     noarch
15
16description         a simple command line metar and taf.
17
18long_description    ${description}
19
20homepage            http://github.com/elboza/metar
21master_sites        http://www.autistici.org/0xFE/software/releases/metar/
22
23checksums           rmd160  28644bc6b2507352236b2e2cf8e0975724678b77 \
24                    sha256  194b17dc559f91c45847b5fdecceb0d8f71b97ce77b989a728a7416406edfdfa
25
26perl5.branches      5.24
27depends_lib-append  port:p${perl5.major}-libwww-perl
28worksrcdir          ${name}
29
30use_configure       no
31
32build {}
33
34destroot.destdir    DEST_DIR=${destroot}${prefix}/bin
35
36post-patch {
37    reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|g" ${worksrcpath}/${name}.pl
38}
39
40post-destroot {
41    set docdir ${prefix}/share/doc/${subport}
42    xinstall -d ${destroot}${docdir}
43    xinstall -m 644 -W ${worksrcpath} \
44        README.md \
45        ${destroot}${docdir}
46}
47
48livecheck.type      regex
49livecheck.url       [lindex ${master_sites} 0]
50livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.