Ticket #31384: pike_Portfile.diff

File pike_Portfile.diff, 2.5 KB (added by michaelld (Michael Dickens), 10 years ago)
  • Portfile

     
    44PortSystem          1.0
    55
    66name                pike
    7 version             7.6.112
    8 revision            6
     7version             7.8.700
    98categories          lang
    10 license             GPL-2
     9license             {GPL-2 LGPL-2 MPL}
    1110platforms           darwin
    1211maintainers         gmx.de:exodusd openmaintainer
    1312
     
    1918                    built-in data types allowing simple and really fast \
    2019                    data manipulation.
    2120
    22 homepage            http://pike.ida.liu.se/
     21homepage            http://pike.lysator.liu.se/
    2322master_sites        ${homepage}pub/pike/all/${version}/
    2423distname            Pike-v${version}
    2524
    26 checksums           md5     3ba03096741d6df839d32a940f4a865c \
    27                     sha1    211050346d8efc01068e8ea7443f4743116a51be \
    28                     rmd160  8983d5bc150beabd1796ff8f05df43e5cf36f467
     25checksums           rmd160  241c6d531ac74a64322ef57bdd7dee306be1e8c3 \
     26                    sha256  b29b294b766bda805fc539e2cb9661bc86c54e3f735271ff760bbe20bff1de19
    2927
    3028patchfiles          patch-Request.pike
    3129
     30use_parallel_build  no
     31
    3232depends_lib         port:bzip2 \
    3333                    port:zlib \
    3434                    port:gmp \
     
    116116    # variants will have been assembled:
    117117    build.args      CONFIGUREARGS="${configure.pre_args} ${configure.args}" \
    118118                    INSTALLARGS="--traditional"
     119
     120    platform darwin {
     121        if {${os.major} >= 12} {
     122
     123            # In 10.8+, the LANG environment variable needs to be set to
     124            # "C" otherwise /usr/bin/sed fails with an error.  Ideally,
     125            # this port's build system would honor the environment variable
     126            # ${SED} throughout; reality is that it does not, so this
     127            # addition is required because /usr/bin/sed will be used.
     128
     129            build.args-append LANG="C"
     130        }
     131    }
    119132}
    120133
    121134test.run            yes
     
    127140post-destroot {
    128141    file delete -force ${destroot}${prefix}/bin/pike.syms
    129142    file delete -force ${destroot}${prefix}/doc/pike
    130     # move manpage to correct location:
    131     move ${destroot}${prefix}/man/man1/pike.1 \
    132         ${destroot}${prefix}/share/man/man1/
    133143    # move documentation to correct location:
    134144    xinstall -d ${destroot}${prefix}/share/doc/pike-${version}
    135145    xinstall -W ${worksrcpath} README COPYING COPYRIGHT ANNOUNCE \