source: trunk/dports/science/metar/Portfile @ 123037

Last change on this file since 123037 was 123037, checked in by khindenburg@…, 5 years ago

metar: add dependency/replace hardcoded perl bin #40514

  • 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 123037 2014-08-04 01:46:19Z khindenburg@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                metar
8version             0.2
9revision            1
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           md5    c694636e3f402423b8de39eab3e6beec \
24                    sha1    4e8401f89a3db0434505633d9244e324b953daea \
25                    rmd160  28644bc6b2507352236b2e2cf8e0975724678b77
26
27depends_lib-append  port:p${perl5.default_branch}-libwww-perl
28worksrcdir          ${name}
29
30use_configure       no
31
32build {}
33
34destroot.destdir    DEST_DIR=${destroot}${prefix}/bin
35
36pre-destroot {
37    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${perl5.default_branch}|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.