Ticket #40514: metar.diff

File metar.diff, 1.0 KB (added by kurthindenburg (Kurt Hindenburg), 10 years ago)

I believe this is the way macports is handling perl versions now

  • Portfile

    old new  
    22# $Id: Portfile 111504 2013-09-24 04:34:48Z ryandesign@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           perl5 1.0
    56
    67name                metar
    78version             0.2
     9revision            1
    810categories          science
    911platforms           darwin linux
    1012maintainers         gmail.com:fernando.iazeolla
     
    2224                    sha1    4e8401f89a3db0434505633d9244e324b953daea \
    2325                    rmd160  28644bc6b2507352236b2e2cf8e0975724678b77
    2426
     27depends_lib-append  port:p${perl5.default_branch}-libwww-perl
    2528worksrcdir          ${name}
    2629
    2730use_configure       no
     
    3033
    3134destroot.destdir    DEST_DIR=${destroot}${prefix}/bin
    3235
     36pre-destroot {
     37    reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl${perl5.default_branch}|g" ${worksrcpath}/${name}.pl
     38}
     39
    3340post-destroot {
    3441    set docdir ${prefix}/share/doc/${subport}
    3542    xinstall -d ${destroot}${docdir}